Skip to content
Swift arc triple progress bar
Branch: master
Clone or download
Latest commit 9534c46 Jun 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ArcaProgressView Update structure. refactoring Jun 15, 2019
SampeArcaProgressBar.xcodeproj Update structure. refactoring Jun 15, 2019
SampeArcaProgressBar Update structure. refactoring Jun 15, 2019
.gitignore Initial commit Jun 14, 2019
LICENSE Initial commit Jun 14, 2019
README.md Update README.md Jun 15, 2019
video.gif Add files via upload Jun 15, 2019

README.md

tripleBar

Swift arc triple progress bar

License Platform

Features

  • UIBezierPath Triple Progress Bar
  • Main arc grow clockwise two another - opposite
  • Custom color, custom central label size
  • Max value for main arc calcilated from percent to number for main label
  • Description labels for each arc

Preview

drawing

Usage sample

Prepare progress bars

let progressBars = ArcaProgressView(frame: CGRect(x: 0, y: 0, width: 330, height: 330))
progressBars.labelSize = 120.0
progressBars.center = self.view.center
self.view.addSubview(progressBars)

Set progress bars values

func sliderSlide(sender: UISlider) {
        progressBars.setProgressOne(to: Double(sender.value/100), withAnimation: false, maxSpeed: 45.0)
        progressBars.setProgressTwo(to: Double(sender.value/100), withAnimation: false)
        progressBars.setProgressThree(to: Double(sender.value/100), withAnimation: false)
    }

Instalation

Simple copy ArcaProgressView.swift to your project.

Author

Anton Umnitsyn, cybertor@gmail.com

License

LinearProgressBar is available under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.