merichle / RKDialogbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RKDialogbox

Installation

RKDialogbox is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'RKDialogbox'

Usage

First, your should import framework to swift file:

import RKDialogbox

Then use it wherever you need to display the Dialog 😌

example for one buttom mood:

RKDialogbox.oneButton(title: "title",
                      message: "write message here ...",
                      firstButtonTitle: "Done",
                      firstActionCallback: ...,
                      isDismissible: true)

and two buttom mood:

RKDialogbox.twoButton(title: "Title",
                      message: "write message here ...",
                      firstButtonTitle: "OK",
                      secondButtonTitle: "Cancel",
                      isDismissible: true,
                      firstActionCallback: ...,
                      secondActionCallback: ...)

⚠️ All parameters in the methods are optional.

Author

Ramazan Karami (ramazan.karami@gmail.com)

License

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

About

License:MIT License


Languages

Language:Swift 87.8%Language:Ruby 7.6%Language:Objective-C 4.6%