The ProgressBarBubbleView is a UIView subclass, which displays the progress in a bar and in percent within a bubble view. Completely written in Swift.
- Download ProgressBarBubbleView.zip from the last release and extract its content.
- Copy the ProgressBarBubbleView folder into your Xcode Project.
If you are using Autolayout:
private let progressBarBubbleView = ProgressBarBubbleView(bubbleHeight: 40, barHeight: 10)
If you layout your UI via frames:
private let progressBarBubbleView = ProgressBarBubbleView(bubbleHeight: 40, barHeight: 10, width: 300, position: CGPointZero)
Just call the configure method with your results.
let value: Int = 400
let threshold: Int = 600
progressBarBubbleView.configure(value, threshold: threshold)
- textColor
- font
- bubbleBackgroundColor
- progressColors // gradient colors
- thresholdReachedColors // gradient colors
- iOS 8.0+
- Xcode 7.0+
Released under the MIT license. See the LICENSE file for more info.