CircularRevealKit
This library was created to allow developers to implement the material design's reveal effect. You can simply use this component to reveal and unvereal a ViewController/View, this component is very small (approx. 40kb), written purely in Swift 3.
Circular reveal animations made easy.
Requirements
Swift 3 and iOS 9+
Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
To integrate CircularRevealKit into your Xcode project using CocoaPods, specify it in your Podfile
:
Then, run the following command:
Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
To integrate CircularRevealKit into your Xcode project using Carthage, specify it in your Cartfile
:
Run carthage update
to build the framework and drag the built CircularRevealKit.framework
into your Xcode project.
How to
You can simply import the library using import CircularRevealKit
, then:
Please assert if your root ViewController is a instance of UINavigationViewController
, otherwise the library will throw a error message.
To push your view controller, use:
To close it:
To use with view: