CALayer Animated Progress View
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Custom progress view

Custom progress view using CALayer.

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

How it looks like:


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>