Ali ABBAS

1pod

DraggableDynamicModal

要创建一个模态管理器,你应该创建一个ModalViewControllerManagervar modalManager: ModalViewControllerManager! self.modalManager = ModalViewControllerManager(parentViewController: {The parent who oresenting the modal controller}})

然后,你可以使用方法:presentModal来显示模态。这个方法只接受一个参数,要显示的视图控制器。

要显示的视图控制器应该遵守ModalParentViewControllerProtocol协议,并实现方法shouldChangeContainerHeight

许可:[MIT](https://open-source.org.cn/licenses/MIT)

  • Objective C