Skip to content

ATahhan/ATActionSheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATActionSheet

Swift PodVersion Platform: iOS



Requirements

  • iOS 9.0+
  • Xcode 9.3

Installation

Just add this project as a submodule to your project.

or use CocoaPods with Podfile:

pod 'ATActionSheet'

Usage

Programmatically
let actionSheet = ATActionSheet()
        
let addButton = ATAction(title: "Add New Item", image: #imageLiteral(resourceName: "add")) {
    print("Added")
}
let shareButton = ATAction(title: "Share", image: #imageLiteral(resourceName: "action"), style: .default) {
    print("Share")
}
let deleteButton = ATAction(title: "Delete", image: #imageLiteral(resourceName: "trash"), style: .destructive) {
    print("Deleted")
}
        
actionSheet.addActions([addButton, shareButton, deleteButton])
present(actionSheet, animated: true, completion: nil)

Licence

ATActionSheet is released under the MIT license. See LICENSE for details.

Contact me on Twitter

About

Twitter-like lightweight action sheet

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors