Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 593 Bytes

README.md

File metadata and controls

15 lines (14 loc) · 593 Bytes

ProgressAnimation

Simple circular progress bar animation that is used to show progress to the user.

How to use

//Initialize a new instance of CircularProgressBar
let xPosition = view.center.x
let yPosition = view.center.y
let position = CGPoint(x: xPosition, y: yPosition)
let progresBar = CircularProgressBar(radius: 100, position: position, innerTrackColor: .defaultInnerColor, outerTrackColor: .defaultOuterColor, lineWidth: 20)
//Add to progressBar to views sublayer        
view.layer.addSublayer(progressBar)

Preview