Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 1.16 KB

README.md

File metadata and controls

60 lines (47 loc) · 1.16 KB

iOS-BHActionSheet

Demo

Alert Sheet

Popover

Usage

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))

Installation

CocoaPods

Check out Get Started tab on cocoapods.org. To use BaHaActionSheet in your project add the following 'Podfile' to your project

pod 'BaHaActionSheet'

Requirements

  • Xcode 9
  • Swift 4
  • iOS 9.0+

License

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