Spinner

Spinners are used to indicate that a part of the product is loading or performing a task when the amount of time needed is unknown.

Backpack/Spinner

Cocoapods class reference view on Github

Default

Day Night

Usage

BPKSpinner contains the Backpack Spinner component which is a subclass of UIActivityIndicatorView with Skyscanner styles.

Objective-C


                                                
                                                #import <Backpack/Spinner.h>
                                                
                                                BPKSpinner *spinner = [[BPKSpinner alloc] initWithSize:BPKSpinnerSizeSm style:BPKSpinnerStyleTextPrimary];
                                                // Position spinner with autolayout or other method

Swift


                                                
                                                import Backpack
                                                
                                                let spinner = BPKSpinner(size: .sm, style: .textPrimary)
                                                // Position spinner with autolayout or other method

Appearance attributes

  • (UIColor)primaryColor