Latest 1.0
Homepage https://github.com/EngrAhsanAli/AADialogs
License MIT
Platforms ios 9.0
Dependencies AAViewAnimator
Authors

Table of Contents

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

AADialogs

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

Latest podspec

{
    "name": "AADialogs",
    "version": "1.0",
    "summary": "AADialogs - An easy way to handle your custom dialogs using storyboard",
    "description": "With AADialogs, you can show your custom dialogs using storyboard view controllers, show with custom animations using AAViewAnimator library. This library is so simple you can call it from in any class or from any view controller to show custom dialog.",
    "homepage": "https://github.com/EngrAhsanAli/AADialogs",
    "screenshots": "https://raw.githubusercontent.com/EngrAhsanAli/AADialogs/master/Screenshots/AADialogs.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ahsan Ali": "[email protected]"
    },
    "source": {
        "git": "https://github.com/EngrAhsanAli/AADialogs.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "AADialogs/Classes/**/*",
    "dependencies": {
        "AAViewAnimator": [
            "~> 1.0"
        ]
    }
}

Pin It on Pinterest

Share This