SimpleTransition 2.2.0

SimpleTransition 2.2.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最新发布2017年9月
SwiftSwift 版本3.0
SPM支持 SPM

mingloan 维护。



  • Mingloan

SimpleTransition

演示

Demo(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 文件。