- December 17, 2024
- Mins Read
CatAlertController is a high level manager object that with chaining style for UIAlertController.
CatAlertController is available through CocoaPods and Carthage.
Add the following line to your Podfile:
use_frameworks!
pod ‘CatAlertController’
Add the following line to your Cartfile:
github “ImKcat/CatAlertController”
Here is the alert style sample code in iPhone:
CatAlertController(title: “CatAlertController”,
message: “This is CatAlertController”,
preferredStyle: UIAlertControllerStyle.alert)
.addAction(UIAlertAction(title: “Cancel”, style: UIAlertActionStyle.cancel))
.addAction(UIAlertAction(title: “OK”, style: UIAlertActionStyle.default))
.flash(from: self, delay: 0.3)
Here is the action sheet style sample code in iPad:
// Don’t worry the action sheet style present in iPad, it won’t be crash, take it easy 🙂
CatAlertController(title: “CatAlertController”,
message: “This is CatAlertController”,
preferredStyle: UIAlertControllerStyle.actionSheet)
.addAction(UIAlertAction(title: “Item 1”))
.addAction(UIAlertAction(title: “Item 2”))
.addAction(UIAlertAction(title: “Item 3”))
.addAction(UIAlertAction(title: “Cancel”, style: UIAlertActionStyle.cancel))
.flash(from: self, delay: 1)
A vertical stackview which takes subviews with different widths and adds them to it's rows with paddings, spacings etc.
AudioManager is a Swift package that provides a modular and easy-to-use interface for implementing audio feedback in your applications. It ...