CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

SwiftyPresentation 1.0.9

SwiftyPresentation 1.0.9

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Nicolas Renaud.



  • By
  • Nicolas Renaud




Present modal controllers like alerts and slides.

Requirements

  • iOS 9.0+
  • Swift 4

Usage

Simply import SwiftyPresentation.

import SwiftyPresentation

Create the presentation manager you want to use.

var alertPresentationManager = AlertPresentationManager()

Configure the manager and your destination controller.

override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
    if let controller = segue.destination as? MyAlertViewController {
        alertPresentationManager.presentationDirection = .bottom
        alertPresentationManager.dismissDirection = .bottom
        controller.modalPresentationStyle = .custom
        controller.transitioningDelegate = alertPresentationManager
    }
}

License

This code is distributed under the terms and conditions of the MIT license.