EasyTransition 2.1

EasyTransition 2.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2018
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Nattawut Singhchai.



  • By
  • indevizible

EasyTransition

EasyTransition is a simple library for make a transition in iOS.

example

Live preview

Features

  • [x] Transition from corners
  • [x] Interactive dismissal transition
  • [x] Scalable to background view controller
  • [x] Blur Effect
  • [ ] In-Out transition direction

Limitation

  • This library can be compile with iOS 8.0+ but transition work on iOS 8.3+

Requirements

  • Swift 2+ (use v.1.2)
  • Swift 3 (2.0)
  • iOS 8.3+

Installation

You can install this library in 2 ways

Manually

Copy EasyTransition.swift and UIView+Constraints.swift to your project and give me some beer.

Usage

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

Sources Used

Author

Nattawut Singhchai, [email protected]

License

EasyTransition is available under the MIT license. See the LICENSE file.