Latest 1.0
Homepage https://github.com/shoaib-akhtar/SBAActionSheetPicker
License MIT
Platforms ios 9.0, requires ARC
Frameworks Foundation, UIKit
Authors

===================================
Easy to use customised action sheet picker inspired by UIAlertController

CocoaPods

SBAActionSheetPicker

Installation

Use CocoaPods.

pod 'SBAActionSheetPicker'

Usage

Create SBAActionSheetPicker controller

let actionSheetPicker = SBAActionSheetPicker.create(.white) as SBAActionSheetPicker

Create SBAAction actions

let action1 = SBAAction.init(title: "Accessibility", image: UIImage.init(named: "accessibility"),color: .black) { (action) in
print("Accessibility")
}

let action2 = SBAAction.init(title: "Acount Balance", image: UIImage.init(named: "account_balance"),color: .black) { (action) in
print("Acount Balance")
}

let action3 = SBAAction.init(title: "Close", image: UIImage.init(named: "close"),color: .black) { (action) in
print("Close")
}

Set SBAAction actions array to SBAActionSheetPicker and prensent it

actionSheetPicker.addActions(actions: [action1,action2,action3])
self.present(actionSheetPicker, animated: false, completion: nil)

Congratulations! You’re done.

License

SBAActionSheetPicker is under MIT. See LICENSE file for more info.

Latest podspec

{
    "name": "SBAActionSheetPicker",
    "version": "1.0",
    "summary": "Easy to use customised action sheet picker inspired by UIAlertController",
    "homepage": "https://github.com/shoaib-akhtar/SBAActionSheetPicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Shoaib Akhtar": "[email protected]"
    },
    "source": {
        "git": "https://github.com/shoaib-akhtar/SBAActionSheetPicker.git",
        "branch": "master",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": "SBAActionSheetPicker/*.swift",
    "resource_bundles": {
        "SBAActionSheetPicker": "SBAActionSheetPicker/*.{lproj,storyboard}"
    },
    "resources": "SBAActionSheetPicker/SBAActionSheetPicker.storyboard",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This