BPKOverlayBackgroundView
@interface BPKOverlayBackgroundView : UIView
BPKOverlayBackgroundView
is a subclass of UIView
which allows you to apply Skyscanner style tints to its content.
-
The kind of overlay to apply to the view. Default is Tint.
Declaration
Objective-C
@property (nonatomic) BPKOverlayViewOverlayType overlayType;
Swift
var overlayType: BPKOverlayViewOverlayType { get set }
-
Create a
BPKOverlayBackgroundView
with a given frame.Declaration
Objective-C
- (nonnull instancetype)initWithFrame:(CGRect)frame;
Swift
init(frame: CGRect)
Parameters
frame
The initial frame of the card.
Return Value
BPKOverlayBackgroundView
instance. -
Creates a
BPKOverlayBackgroundView
with a decoder (typically when creating from Storyboards)Declaration
Objective-C
- (nullable instancetype)initWithCoder:(nonnull NSCoder *)aDecoder;
Swift
init?(coder aDecoder: NSCoder)
Parameters
aDecoder
Decoder object to extract parameters from
Return Value
BPKOverlayBackgroundView
instance. -
Creates a
BPKOverlayBackgroundView
with a corner style and overlay type.Declaration
Objective-C
- (nullable instancetype)initWithOverlayType: (BPKOverlayViewOverlayType)overlayType;
Swift
init?(overlayType: BPKOverlayViewOverlayType)
Parameters
overlayType
The overlay type to show in front of the background view.
Return Value
BPKOverlayBackgroundView
instance.