- August 28, 2025
- Mins Read
A simple little control that animates segments like Snapchat or Instagram Stories.
Drag and drop SegmentedProgressBar.swift into your project. That’s it.
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()
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()
This package provides you with an easy way to show tooltips over any SwiftUI view, since Apple does not provide ...
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or ...
Create Toast Views with Minimal Effort in SwiftUI Using SSToastMessage. SSToastMessage enables you to effortlessly add toast notifications, alerts, and ...