Skip to main content

Progress

Progress bars are a great way of providing feedback when a task is running. Unlike spinners, they give the user a clear idea of how long the given task will take.

Table of contents

Default

(iPhone 8 simulator)
(iPhone 8 simulator - dark mode)

Implementation

Backpack/ProgressBar

Usage

Backpack/ProgressBar is a simple UIProgressView with Skyscanner styling applied.

#import <Backpack/ProgressBar.h>

BPKProgressBar *progressBar = [[BPKProgressBar alloc] initWithFrame:CGRectZero];
progressBar.progress = 0.5;
[progressBar setProgress:0.75 animated:YES];
#import Backpack

let progressBar = BPKProgressBar()
progressBar.progress = 0.5
progressBar.set(progress:0.75 animated:true)

Appearance attributes

  • (UIColor)fillColor