Latest 1.0.1
Homepage https://github.com/ATahhan/ATActionSheet
License MIT
Platforms ios 9.0
Authors

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

Latest podspec

{
    "name": "ATActionSheet",
    "version": "1.0.1",
    "summary": "A lightweight action sheet that slides from the bottom",
    "description": "ATActionSheet can be easily integrated and used. It gives the nice look and feel of a twitter-like action sheet in just a couple of lines.",
    "homepage": "https://github.com/ATahhan/ATActionSheet",
    "license": "MIT",
    "authors": {
        "Ammar Tahhan": "[email protected]"
    },
    "social_media_url": "https://twitter.com/atahhan_",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/ATahhan/ATActionSheet.git",
        "tag": "1.0.1"
    },
    "source_files": "ATActionSheet",
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This