Popularity
5.1
Growing
Activity
0.0
Stable
404
8
55

Code Quality Rank: L5
Programming language: Swift
License: MIT License
Tags: UI    

SegmentedProgressBar alternatives and similar libraries

Based on the "UI" category.
Alternatively, view SegmentedProgressBar alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of SegmentedProgressBar or a related project?

Add another 'UI' Library

README

Swift Version twitter: @dylan36032

SegmentedProgressBar

A simple little control that animates segments like Snapchat or Instagram Stories.

[Screenshot](screenshot.png)

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()