Latest 0.9.1
Homepage https://github.com/T-Pro/CircularRevealKit
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

CircularRevealKit

CI Status
Version
License
Platform
Carthage Compatible
Swift 5

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 5 with support of Swift 4.2.

Sample

GIF sample

Requirements

Swift 4 and iOS 9+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate CircularRevealKit into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
pod 'CircularRevealKit', '~> 0.9'
end

Then, run the following command:

$ pod install

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:

$ brew update
$ brew install carthage

To integrate CircularRevealKit into your Xcode project using Carthage, specify it in your Cartfile:

github "T-Pro/CircularRevealKit" ~> 0.9

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:

To push your view controller, use:

radialPresent(viewController: viewController)

or

radialPresent(viewController: viewController, duration, startFrame, revealType, completionBlock?)

To close it:

radialDismiss()

To use with view:

view.drawAnimatedCircularMask(startFrame, duration, revealType, completionBlock?)

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Pedro Paulo de Amorim

Based on:

License

CircularRevealKit is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "CircularRevealKit",
    "version": "0.9.1",
    "summary": "Circular reveal animations made easy",
    "homepage": "https://github.com/T-Pro/CircularRevealKit",
    "description": "This library was created to allow developers to implement the material design reveal effect.",
    "screenshots": "https://media.giphy.com/media/3cwSEnIK1GJEs/giphy.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ppamorim": "[email protected]"
    },
    "source": {
        "git": "https://github.com/T-Pro/CircularRevealKit.git",
        "tag": "0.9.1"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "CircularRevealKit/Classes/**/*",
    "frameworks": "UIKit",
    "swift_version": "5.0"
}

Pin It on Pinterest

Share This