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
BPKSpinner
with a specific style and size.See
BPKSpinnerSizeDeclaration
Objective-C
- (nonnull instancetype)initWithStyle:(BPKSpinnerStyle)style size:(BPKSpinnerSize)size;
Swift
init(style: BPKSpinnerStyle, size: BPKSpinnerSize)
Parameters
style
Style to be used by the button.
size
Size to be used by the button.
Return Value
BPKSpinner
instance. -
Creates a
BPKSpinner
with a decoder (typically when creating from Storyboards)Declaration
Objective-C
- (nonnull instancetype)initWithCoder:(nonnull NSCoder *)coder;
Swift
init(coder: NSCoder)
Parameters
coder
Decoder object to extract parameters from
Return Value
BPKSpinner
instance. -
Create a
BPKSpinner
with a given frame.Declaration
Objective-C
- (nonnull instancetype)initWithFrame:(CGRect)frame;
Swift
init(frame: CGRect)
Parameters
frame
The initial frame of the spinner.
Return Value
BPKSpinner
instance.