TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Feb 2018 |
SwiftSwift Version | 4.0 |
SPMSupports SPM | ✗ |
Maintained by Nattawut Singhchai.
EasyTransition is a simple library for make a transition in iOS.
You can install this library in 2 ways
Copy EasyTransition.swift and UIView+Constraints.swift to your project and give me some beer.
Import and declare EasyTransition:
import EasyTransition
class ViewController: UIViewController {
var transition: EasyTransition?
}
Customise transition and present normally:
let vc = TargetViewController()
transition = EasyTransition(attachedViewController: vc)
transition?.transitionDuration = 0.4
transition?.direction = .Right
transition?.margins = UIEdgeInsets(top: 0, left: 100, bottom: 0, right: 0)
presentViewController(vc, animated: true, completion: nil)
You can also make a direction from a corner:
transition?.direction = [.Top,.Right]
And more on EasyTransitionExample.xcodeproj
Nattawut Singhchai, [email protected]
EasyTransition is available under the MIT license. See the LICENSE file.