BPKPrimaryGradientView
@interface BPKPrimaryGradientView : UIView
This class is a UIView
subclass that draws the primary gradient.
It’s backed by a layer that does the actual drawing, but using this view directly
is preferred.
-
Override the direction in the configured primary gradient. If set this should be a valid value for the
BPKGradientDirection
enum.Declaration
Objective-C
@property (nonatomic, strong, nullable) NSNumber *directionOverride;
Swift
var directionOverride: NSNumber? { get set }
-
The gradient currently being drawn.
Warning
Do not set this value directly. It’s intended to be used via theming.Declaration
Objective-C
@property (nonatomic, strong) UI_APPEARANCE_SELECTOR BPKGradient *gradient;
Swift
var gradient: BPKGradient { get set }