khuong291 / KPActionSheet

A replacement of default action sheet, but has very simple usage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KPActionSheet

A replacement of default action sheet, but has very simple usage.

Todo

Add more custom affects and styles.

Installation

CocoaPods

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

pod 'KPActionSheet', git: 'https://github.com/khuong291/KPActionSheet'

Manually

  1. Download and drop needed files in your project.
  2. Congratulations!

Usage

let kpActionSheet = KPActionSheet(items: [
            KPItem(title: "Hello guys 😎", onTap: { 
                print("Hello guys 😎")
            }),
            KPItem(title: "Hello girls πŸ˜‡", onTap: {
                print("Hello girls πŸ˜‡")
            }),
            KPItem(title: "Cancel", type: .Cancel)
        ])
        present(kpActionSheet, animated: true, completion: nil)

Contributor

It would be greatly appreciated when you make a pull-quest πŸ€—

Author

Khuong Pham, dkhuong291@gmail.com

License

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

About

A replacement of default action sheet, but has very simple usage

License:Other


Languages

Language:Swift 87.2%Language:Ruby 6.6%Language:Objective-C 6.2%