ExtendedAlertController
ExtendedAlertController empowers your UIAlertController. This project is inspired by AlertViewController and alerts-and-pickers.
Requirements
- iOS 9.0 or higher
- Swift 5
Installation
Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
Once you have your Swift package set up, adding ExtendedAlertController as a dependency is as easy as adding it to the dependencies value of your Package.swift.
dependencies: [
    .package(url: "https://github.com/kf99916/ExtendedAlertController")
]CocoaPods
CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate ExtendedAlertController into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'ExtendedAlertController'Usage
Just import this library and replace UIAlertController with ExtendedAlertController and you can:
- Customize the top view in your alert with .topor.beyoundlayout. For example, you can addUIImageViewinto your alert.
- Add custom UIViewControllerin your alert.
- A syntactic sugar backgroundColorto update background color in your alert.
Check out the demo project to get more details.
Apps using ExtendedAlertController
If you are using ExtendedAlertController in your app and want to be listed here, simply create a pull request.
I am always curious who is using my projects :)
Hikingbook - by Zheng-Xiang Ke
Demo
ExtendedAlertControllerDemo is a simple demo app.
Author
Zheng-Xiang Ke, [email protected]
License
ExtendedAlertController is available under the MIT license. See the LICENSE file for more info.




