SegmentedProgressBar
Snapchat / Instagram Stories like progress indicator
Install / Use
/learn @D-32/SegmentedProgressBarREADME
SegmentedProgressBar
A simple little control that animates segments like Snapchat or Instagram Stories.

Requirements
- iOS 8.0+
- Xcode 8
Installation
Drag and drop SegmentedProgressBar.swift into your project. That's it.
Usage
let spb = SegmentedProgressBar(numberOfSegments: 3, duration: 5)
spb.frame = CGRect(x: 15, y: 15, width: view.frame.width - 30, height: 4)
view.addSubview(spb)
spb.startAnimation()
Additional Stuff
Delegate:
spb.delegate = self // has to conform to SegmentedProgressBarDelegate
func segmentedProgressBarChangedIndex(index: Int) {
}
func segmentedProgressBarFinished() {
}
Styling:
spb.topColor = UIColor.white
spb.bottomColor = UIColor.white.withAlphaComponent(0.25)
spb.padding = 2
Pausing / Resuming
spb.isPaused = true
spb.isPaused = false
Skip / Rewind
spb.skip()
spb.rewind()
Related Skills
node-connect
328.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
328.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
81.0kCommit, push, and open a PR
