BPKShadow
@interface BPKShadow : NSObject
The BPKShadow class contains definitions for Backpack shaddows.
It has factory methods for creating instances of supported shaddows.
-
The color of the shadow.
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIColor *_Nonnull color;Swift
var color: UIColor { get } -
The offset of the shadow.
Declaration
Objective-C
@property (nonatomic, readonly) CGSize offset;Swift
var offset: Size { get } -
The opacity of the shadow.
Declaration
Objective-C
@property (nonatomic, readonly) CGFloat opacity;Swift
var opacity: Int32 { get } -
The radius of the shadow.
Declaration
Objective-C
@property (nonatomic, readonly) CGFloat radius;Swift
var radius: Int32 { get } -
Unavailable
init not available, use factory methods
:nodoc
Declaration
Objective-C
- (nonnull instancetype)init; -
Unavailable
new not available, use factory methods
:nodoc
Declaration
Objective-C
+ (nonnull instancetype)new; -
Apply the shadow of the reciever to the given
CALayer.Declaration
Objective-C
- (void)applyToLayer:(nonnull CALayer *)layer;Swift
func apply(to layer: CALayer)Parameters
layerThe layer to apply the shadow to.
-
The Skyscanner large shadow.
Declaration
Objective-C
+ (nonnull instancetype)shadowLg;Swift
class func shadowLg() -> Self -
The Skyscanner small shadow.
Declaration
Objective-C
+ (nonnull instancetype)shadowSm;Swift
class func shadowSm() -> Self
BPKShadow Class Reference