Skip to content
This repository has been archived by the owner. It is now read-only.
HorizontalProgressView in swift
Ruby Swift C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
HorizontalProgressBar.xcodeproj
HorizontalProgressBar
HorizontalProgressBarTests
screenshots
.gitignore
HorizontalProgressView.podspec
LICENSE
README.md

README.md

HorizontalProgressView

HorizontalProgressView in swift

Installation:

pod 'HorizontalProgressView', :git => 'https://github.com/bphenriques/HorizontalProgressView.git', :tag => '0.9.5'

Usage:

Add UIView in your storyboard and change class to HorizontalGraphBar

You can configure the UIView directly in the storyboard using these IBInspectable variables:

@IBInspectable public var progressValue: Float
@IBInspectable public var progressColor: UIColor

In your UIViewController subclass:

@IBOutlet weak var horizontalBar: HorizontalGraphBar!

//value between 0 and 100
func update(progress: Float) {
  horizontalBar.progressColor = progress < 50 ? LowColor : HighColor
  horizontalBar.progressValue = adhrenceValue
}

Screenshot:

alt tag

I will make this repo public soon. For feedback or suggestions submmit an issue.

You can’t perform that action at this time.