AADialogs 1.0

AADialogs 1.0

Maintained by Engr. Ahsan Ali.




  • By
  • Ahsan Ali

Table of Contents

#AADialogs

Swift 4.0 Carthage compatible CocoaPods License MIT Build Status License MIT CocoaPods

##Description

AADialogs - An easy way to handle your custom dialogs using storyboard in iOS.

##Demonstration

To run the example project, clone the repo, and run pod install from the Example directory first.

##Requirements

  • iOS 9.0+
  • Xcode 8.0+
  • Swift 3+

Installation

AADialogs can be installed using CocoaPods, Carthage, or manually.

##CocoaPods

AADialogs is available through CocoaPods. To install CocoaPods, run:

$ gem install cocoapods

Then create a Podfile with the following contents:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
pod 'AADialogs' , '1.0'
end

Finally, run the following command to install it:

$ pod install

##Carthage

To install Carthage, run (using Homebrew):

$ brew update
$ brew install carthage

Then add the following line to your Cartfile:

github "EngrAhsanAli/AADialogs" "master"

Then import the library in all files where you use it:

import AADialogs

##Manual Installation

If you prefer not to use either of the above mentioned dependency managers, you can integrate AADialogs into your project manually by adding the files contained in the Classes folder to your project.

#Getting Started

##Define your dialog as UIViewController

let alertVC = UIStoryboard(name: #storyboard#, bundle: nil).instantiateViewController(withIdentifier: #withId#)

##Show your dialog

alertVC.aa_show_alert()

##Hide your dialog in that view controller

aa_hide_alert(animation: .zoomOut)

##Method signature with custom configuration

You can use following properties:

aa_show_alert(duration: TimeInterval,
springDamping: AAViewDamping,
animation: AAViewAnimators,
blurEffect: UIBlurEffectStyle?,
viewController: UIViewController?,
completion: ((Bool, UIViewController) -> ())?) 

aa_hide_alert(duration: TimeInterval,
springDamping: AAViewDamping,
animation: AAViewAnimators,
completion: (() -> ())?)

#Contributions & License

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

AADialogs uses AAViewAnimator for custom view animations. See AAViewAnimator at https://github.com/EngrAhsanAli/AAViewAnimator

Pull requests are welcome! The best contributions will consist of substitutions or configurations for classes/methods known to block the main thread during a typical app lifecycle.

I would love to know if you are using AADialogs in your app, send an email to Engr. Ahsan Ali