TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Feb 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Mikhail Rakhmanov.
Screen transition animator which decomposes the screen we are transitioning from into a group of rectangles which fade over time thus showing us the new controller.
To run the example project, clone the repo, and run pod install
from the Example directory first.
let animator = RectangleDissolveAnimator()
viewController.transitioningDelegate = animator
There are also some parameters which can be adjusted:
animator.rectanglesVertical = 14 // this determines the height of the rectangle based on screen height
animator.rectanglesHorizontal = 8 // width of the rectangle based on screen width
animator.batchSize = 20 // the amount of rectangles which start fading at the same time
animator.fadeAnimationDuration = 0.3 // fade animation duration
animator.tempo = 1000 // the frequency of each batch start fading
RectangleDissolve is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RectangleDissolve"
Михаил Рахманов, [email protected]
RectangleDissolve is available under the MIT license. See the LICENSE file for more info.