Skip to content

Latest commit

 

History

History
55 lines (29 loc) · 1.57 KB

README.md

File metadata and controls

55 lines (29 loc) · 1.57 KB

DZAObliqueFillAnimatorView

A custom view that has an oblique transparent cut on the top and it can be filled with an animated circle

A demo of the animation:

(Video available here)

Screenshots:

Usage

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

The view supports Interface Builder integration: you just need to drag a UIView and change the class to DZAObliqueFillAnimatorView

From the IB you can change the parameters and colors to match your app style.

From the code you call

[_obliqueView animateOpeningWithDuration:0.5 completion:nil];

or

[_obliqueView animateClosingWithDuration:0.5 completion:nil];

to animate the transition.

Installation

DZAObliqueFillAnimatorView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "DZAObliqueFillAnimatorView"

Author

Davide Di Stefano, dzamirro@gmail.com

License

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