https://github.com/kf99916/extendedalertcontroller
ExtendedAlertController empowers your UIAlertController.
https://github.com/kf99916/extendedalertcontroller
alert alertview topview uiale
Last synced: 10 months ago
JSON representation
ExtendedAlertController empowers your UIAlertController.
- Host: GitHub
- URL: https://github.com/kf99916/extendedalertcontroller
- Owner: kf99916
- License: mit
- Created: 2020-12-16T09:57:35.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-09T09:13:04.000Z (about 3 years ago)
- Last Synced: 2025-02-17T06:17:38.815Z (11 months ago)
- Topics: alert, alertview, topview, uiale
- Language: Swift
- Homepage:
- Size: 129 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ExtendedAlertController
ExtendedAlertController empowers your UIAlertController. This project is inspired by [AlertViewController](https://github.com/stringcode86/AlertViewController) and [alerts-and-pickers](https://github.com/dillidon/alerts-and-pickers).
[](https://github.com/kf99916/ExtendedAlertController/stargazers)
[](https://github.com/kf99916/ExtendedAlertController/network)
[](https://cocoapods.org/pods/ExtendedAlertController)
[](https://github.com/kf99916/ExtendedAlertController)
[](https://github.com/kf99916/ExtendedAlertController/blob/master/LICENSE)


## Requirements
- iOS 9.0 or higher
- Swift 5
## Installation
### Swift Package Manager
The [Swift Package Manager](https://swift.org/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`.
```swift
dependencies: [
.package(url: "https://github.com/kf99916/ExtendedAlertController")
]
```
### CocoaPods
[CocoaPods](https://cocoapods.org) 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`:
```ruby
pod 'ExtendedAlertController'
```
## Usage
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 add `UIImageView` 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.
## 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](https://itunes.apple.com/app/id1067838748) - by Zheng-Xiang Ke

## Demo
ExtendedAlertControllerDemo is a simple demo app.
## Author
Zheng-Xiang Ke, kf99916@gmail.com
## License
ExtendedAlertController is available under the MIT license. See the LICENSE file for more info.