- May 27, 2025
- Mins Read
To run the example project, clone the repo, and run pod install
from the Example directory first.
DottedProgressBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod “DottedProgressBar”
Import library
import DottedProgressBar
Initialize DottedProgressBar
in one line of code
let progressBar = DottedProgressBar(frame: CGRect(x: 50, y: 50, width: 200, height: 20),
numberOfDots: 6,
initialProgress: 1)
view.addSubview(progressBar)
let progressBar = DottedProgressBar()
progressBar.appearance = DottedProgressBar.DottedProgressAppearance(
dotRadius: 8.0,
dotsColor: UIColor.orange.withAlphaComponent(0.5),
dotsProgressColor: UIColor.red,
backColor: UIColor.clear
)
view.addSubview(progressBar)
progressBar.frame = CGRect(x: 50, y: 50, width: 200, height: 20)
progressBar.setNumberOfDots(6, animated: false)
progressBar.setProgress(1, animated: false)
Animations can be called repeatedly because they have theirs own queue. Each animation will wait previous to finish and then will be executed.
self.setProgress(4, animated: true)
self.setNumberOfDots(8, animated: true)
Customize duration of animations and pause between consecutive animations
progressBar.dotsNumberChangeAnimationDuration = 0.6
progressBar.progressChangeAnimationDuration = 0.7
progressBar.pauseBetweenConsecutiveAnimations = 1.0
Light and scrollable view controller for tvOS to present blocks of text Description TvOSTextViewer is a view controller to present ...
TvOSSlider is an implementation of UISlider for tvOS. Description and usage TvOSSlider palliates missing an implementation of UISlider for tvOS as part ...
TvOSScribble, based on CoreML, mitigates the lack of a physical numpad area in Siri Remote implementing a handwriting gesture recognizer. ...
PIN keyboard for tvOS Description TvOSPinKeyboard is a view controller that allows easily asking for PIN codes in tvOs Requirements ...
📺 A tvOS button which truncates long text with '... More'. The TvOSMoreButton is a simple view which aims to ...