1pod
To create a modal manager you should create a ModalViewControllerManager
:
var modalManager: ModalViewControllerManager!
self.modalManager = ModalViewControllerManager(parentViewController: {The parent who oresenting the modal controller}})
Then, you can present the modal using the method : presentModal
. This method takes only on parameters, the view controller to display.
The view controller to be displayed should be conform to ModalParentViewControllerProtocol
and implement the method shouldChangeContainerHeight
License: MIT