ExtendedAlertController empowers your UIAlertController. This project is inspired by AlertViewController and alerts-and-pickers.
- iOS 9.0 or higher
- Swift 5
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 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'
Just import this library and replace UIAlertController
with ExtendedAlertController
and you can:
- Customize the top view in your alert with
.top
or.beyound
layout. For example, you can addUIImageView
into your alert. - Add custom
UIViewController
in your alert. - A syntactic sugar
backgroundColor
to update background color in your alert.
Check out the demo project to get more details.
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
ExtendedAlertControllerDemo is a simple demo app.
Zheng-Xiang Ke, kf99916@gmail.com
ExtendedAlertController is available under the MIT license. See the LICENSE file for more info.