BPKGradientDirection
enum BPKGradientDirection {}
These constants represent the directions available for gradients in Backpack. The direction specifies the location that the last color in the gradient will fall on.
-
Gradient runs from bottom to top.
Declaration
Objective-C
BPKGradientDirectionUpSwift
case up = 0 -
Gradient runs from top to bottom.
Declaration
Objective-C
BPKGradientDirectionDownSwift
case down = 1 -
Gradient runs from right to left.
Declaration
Objective-C
BPKGradientDirectionLeftSwift
case left = 2 -
Gradient runs from left to right.
Declaration
Objective-C
BPKGradientDirectionRightSwift
case right = 3 -
Gradient runs from bottom-right to top-left.
Declaration
Objective-C
BPKGradientDirectionTopLeftSwift
case topLeft = 4 -
Gradient runs from bottom-left to top-right.
Declaration
Objective-C
BPKGradientDirectionTopRightSwift
case topRight = 5 -
Gradient runs from top-right to bottom-left.
Declaration
Objective-C
BPKGradientDirectionBottomLeftSwift
case bottomLeft = 6 -
Gradient runs from top-left to bottom-right.
Declaration
Objective-C
BPKGradientDirectionBottomRightSwift
case bottomRight = 7
BPKGradientDirection Enumeration Reference