Latest 0.9.5
Homepage https://github.com/bphenriques/HorizontalProgressView
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

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.

Latest podspec

{
    "name": "HorizontalProgressView",
    "version": "0.9.5",
    "summary": "Horizontal progress view made in in swift.",
    "description": "Horizontal progress view made in swift. Is easily customizable in the storyboard",
    "homepage": "https://github.com/bphenriques/HorizontalProgressView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "bphenriques": "[email protected]"
    },
    "social_media_url": "https://www.linkedin.com/in/bphenriques",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/bphenriques/HorizontalProgressView.git",
        "tag": "0.9.5"
    },
    "source_files": "HorizontalProgressBar/**/*.{swift}",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This