BPKSpinner
@interface BPKSpinner : UIActivityIndicatorView
BPKSpinner is a subclass of UIActivityIndicatorView configured with Skyscanner style properties.
-
Style of the spinner
See
BPKSpinnerStyleDeclaration
Objective-C
@property (nonatomic) BPKSpinnerStyle style;Swift
var style: BPKSpinnerStyle { get set } -
Size of the spinner
See
BPKSpinnerSizeDeclaration
Objective-C
@property (nonatomic) BPKSpinnerSize size;Swift
var size: BPKSpinnerSize { get set } -
Creates a
BPKSpinnerwith a specific style and size.See
BPKSpinnerSizeDeclaration
Objective-C
- (nonnull instancetype)initWithStyle:(BPKSpinnerStyle)style size:(BPKSpinnerSize)size;Swift
init(style: BPKSpinnerStyle, size: BPKSpinnerSize)Parameters
styleStyle to be used by the button.
sizeSize to be used by the button.
Return Value
BPKSpinnerinstance. -
Creates a
BPKSpinnerwith a decoder (typically when creating from Storyboards)Declaration
Objective-C
- (nonnull instancetype)initWithCoder:(nonnull NSCoder *)coder;Swift
init(coder: NSCoder)Parameters
coderDecoder object to extract parameters from
Return Value
BPKSpinnerinstance. -
Create a
BPKSpinnerwith a given frame.Declaration
Objective-C
- (nonnull instancetype)initWithFrame:(CGRect)frame;Swift
init(frame: CGRect)Parameters
frameThe initial frame of the spinner.
Return Value
BPKSpinnerinstance.
BPKSpinner Class Reference