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
BPKOverlayBackgroundViewwith a given frame.Declaration
Objective-C
- (nonnull instancetype)initWithFrame:(CGRect)frame;Swift
init(frame: CGRect)Parameters
frameThe initial frame of the card.
Return Value
BPKOverlayBackgroundViewinstance. -
Creates a
BPKOverlayBackgroundViewwith a decoder (typically when creating from Storyboards)Declaration
Objective-C
- (nullable instancetype)initWithCoder:(nonnull NSCoder *)aDecoder;Swift
init?(coder aDecoder: NSCoder)Parameters
aDecoderDecoder object to extract parameters from
Return Value
BPKOverlayBackgroundViewinstance. -
Creates a
BPKOverlayBackgroundViewwith a corner style and overlay type.Declaration
Objective-C
- (nullable instancetype)initWithOverlayType: (BPKOverlayViewOverlayType)overlayType;Swift
init?(overlayType: BPKOverlayViewOverlayType)Parameters
overlayTypeThe overlay type to show in front of the background view.
Return Value
BPKOverlayBackgroundViewinstance.
BPKOverlayBackgroundView Class Reference