Skip to content

avdyushin/ProgressView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

Releases

No releases published

Packages

No packages published

Languages