ActionSheetView 1.0.3

ActionSheetView 1.0.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2018
SPMSupports SPM

Maintained by josechagas.



  • By
  • josechagas

ActionSheetView

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 9.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.