Skip to content

donbytyqi/SimpleProgressBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SimpleProgressBar

A very simple progress bar for iOS.

Installation

Currently, the only way to install it is manually. Simply download SimpleProgressBar.swift file and drag and drop it to your project folder.

Usage

SimpleProgressBar is fairly easy to implement, simply initiliaze it with a frame or use the custom initializer provided.

let progressBar = SimpleProgressBar(progressColor: .red, borderColor: .clear, borderWidth: 1.5)
progressBar.frame = CGRect(x: 256, y: 256, width: 250, height: 40)
progressBar.progress = 0.5
view.addSubview(progressBar)

// Gradient
progressBar.gradient = [UIColor.red, UIColor.black]
progressBar.gradientAngle = .topRightBottomLeft

// Rounded corners
progressBar.roundedCorners = true

About

A very simple progress bar for iOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages