TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2017 |
SwiftSwift Version | 4.0 |
SPMSupports SPM | ✗ |
Maintained by Nicolas Renaud.
Present modal controllers like alerts and slides.
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
}
}
This code is distributed under the terms and conditions of the MIT license.