测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最新发布 | 2017年9月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 mingloan 维护。
(https://www.youtube.com/watch?v=bUai3MLJcNA)
要运行示例项目,首先克隆仓库,然后从 Example 目录中运行 pod install
iOS 8.0+
SimpleTransition 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod "SimpleTransition"
// init SimpleTransitionDelegate with presenting and presented view controller
let simpleTransitionDelegate = SimpleTransition(presentingViewController: self, presentedViewController: presentedViewCtl)
// setup delegate with options
simpleTransitionDelegate.setup(
animation,
alignment: alignment,
motion: motion,
presentingViewSize: presentingViewSize)
// assign simpleTransitionDelegate to presented view controller
presentedViewCtl.simpleTransitionDelegate = simpleTransitionDelegate
// call UIKit present method
present(presentedViewCtl, animated: true, completion: nil)
Mingloan, [email protected]
SimpleTransition 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。