Popularity
0.6
Growing
Activity
0.0
Stable
7
3
1

Programming language: Swift
License: MIT License
Tags: UI     Alert & Action Sheet    
Latest version: v0.1.1

CatAlertController alternatives and similar libraries

Based on the "Alert & Action Sheet" category.
Alternatively, view CatAlertController alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of CatAlertController or a related project?

Add another 'Alert & Action Sheet' Library

README

Description

CatAlertController is a high level manager object that with chaining style for UIAlertController.

Requirements

  • Swift 4+
  • iOS 8.0+

Installation

CatAlertController is available through CocoaPods and Carthage.

CocoaPods

Add the following line to your Podfile:

use_frameworks!

pod 'CatAlertController'

Carthage

Add the following line to your Cartfile:

github "ImKcat/CatAlertController"

Usage

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)

License

CatAlertController is available under the MIT license. See the LICENSE file for more info.


*Note that all licence references and agreements mentioned in the CatAlertController README section above are relevant to that project's source code only.