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
BPKGradientDirectionUp
Swift
case up = 0
-
Gradient runs from top to bottom.
Declaration
Objective-C
BPKGradientDirectionDown
Swift
case down = 1
-
Gradient runs from right to left.
Declaration
Objective-C
BPKGradientDirectionLeft
Swift
case left = 2
-
Gradient runs from left to right.
Declaration
Objective-C
BPKGradientDirectionRight
Swift
case right = 3
-
Gradient runs from bottom-right to top-left.
Declaration
Objective-C
BPKGradientDirectionTopLeft
Swift
case topLeft = 4
-
Gradient runs from bottom-left to top-right.
Declaration
Objective-C
BPKGradientDirectionTopRight
Swift
case topRight = 5
-
Gradient runs from top-right to bottom-left.
Declaration
Objective-C
BPKGradientDirectionBottomLeft
Swift
case bottomLeft = 6
-
Gradient runs from top-left to bottom-right.
Declaration
Objective-C
BPKGradientDirectionBottomRight
Swift
case bottomRight = 7