Skip to content

OneupNetwork/iOS-BHActionSheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.