Easy uses and similar UIAlertController
Basic usage
let actionSheet = BahaActionSheet.bulider()
actionSheet.addAction(Action(ActionData(title: "add to cart"), handler: { (action) in
//Action is tapped
}))
present(actionSheet, animated: true, completion: nil)
Popover view
BahaActionSheet.bulider(sourceView: button)
Also can use point
BahaActionSheet.bulider(point: CGPoint(x: 30,y: 30))
Check out Get Started tab on cocoapods.org. To use BaHaActionSheet in your project add the following 'Podfile' to your project
pod 'BaHaActionSheet'
- Xcode 9
- Swift 4
- iOS 9.0+
BaHaActionSheet is available under the MIT license. See the LICENSE file for more info.