Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 829 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 829 Bytes

CircularRevealAnimator

Screen transition with scaling circle.

Demo

Preview

Usage

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.

Requirement

iOS8.0+

License

The MIT License