CALayer Animated Progress View
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Animations.playground
.gitignore
LICENSE
README.md
animation.gif

README.md

Custom progress view

Custom progress view using CALayer.

This repo contains playground and sources for my blog article: CALayerAnimations

How it looks like:

Usage

To create custom view progress bar you should create custom layer subclassing BaseProgressLayer. Then subclass ProgressView with your layer or even just make a type alias.

class MyLayer: BaseProgressLayer {
    override draw(in ctx: CGContext) {
        // Custom drawing of the progress bar
    }
}

typealias MyProgressView = ProgressView<MyLayer>