Screen transition with scaling circle.
class ViewController: UIViewController {
private var transitioner: Transitioner?
var tapPoint: CGPoint?
override func viewDidLoad() {
super.viewDidLoad()
transitioner = Transitioner(style: .CircularReveal(tapPoint!), viewController: viewController)
}
}
extension ViewController {
@IBAction func buttonTapped(sender: UIButton) {
transitioner = Transitioner(style: .CircularReveal(sender.center), viewController: self)
dismissViewControllerAnimated(true, completion: nil)
}
}
You can see the sample project under the Sample directory.
iOS8.0+
The MIT License