Latest 1.0.3
Homepage https://github.com/josechagas/ActionSheetView
License MIT
Platforms ios 10.0
Authors

Version
License
Platform

A Simple way to manage and use any ViewController as actionsheets.

Here are some screenshots showing some examples of what you can do with ActionSheetView:

Example1 Screenshots

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 10.0+

Installation

ActionSheetView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'ActionSheetView'

Step 1: Creating my ActionSheetViewController

Choose any ViewController you created and implement the protocol ‘ActionSheetView’:

class MyActionSheetVC: UIViewController,ActionSheetView

Step 2: Creating my ActionSheetManager

Create a class that inherit from ‘ASManagerVC’:

class MyASManagerVC: ASManagerVC

IMPORTANT: If your ‘MyASManagerVC’ overrides the method ‘viewWillAppear’ you have to call ‘super.viewWillAppear’.

Step 3: Defining my Delegate

Choose some class and implement the protocol ‘ActionSheetViewDelegate’

class MyDelegate: ActionSheetViewDelegate

Step 3.1: Informing to your ‘ASManagerVC’

Get the instance of your ‘ActionSheetViewDelegate’ and inform to your ‘ASManagerVC’:

override func viewDidLoad() {
    super.viewDidLoad()
    self.delegate = MyDelegate()
}

Step 4: Connect everything on storyboard and interface builder

Create a custom segue from your ‘MyASManagerVC’ to ‘MyActionSheetVC’ of class ‘ASViewSegue’
Choose an identifier and inform it to your ‘MyASManagerVC’, you can do it on interface builder.

Looking for more details?

Take a look on Example project.

Author

josechagas

License

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

Latest podspec

{
    "name": "ActionSheetView",
    "version": "1.0.3",
    "summary": "ActionSheetView they are cool and now you have the possibility to create customized ones.",
    "description": "What do you think about Maps and Uber ActionSheetViews ?! They are good and powerfull because you can add a lot of information with no worries about affecting user experience.nActionSheetView is a library that brings the possiblity to turn any ViewController into a style of an ActionSheetView with some small configurations.",
    "homepage": "https://github.com/josechagas/ActionSheetView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "josechagas": "[email protected]"
    },
    "source": {
        "git": "https://github.com/josechagas/ActionSheetView.git",
        "tag": "1.0.3"
    },
    "platforms": {
        "ios": "10.0"
    },
    "swift_version": "4.2",
    "source_files": "Classes/**/*"
}

Pin It on Pinterest

Share This