Skip to content

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

License

Notifications You must be signed in to change notification settings

Dzamir/DZAObliqueFillAnimatorView

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published