GradientDirection
public enum GradientDirection
Represents the posible directions of a gradient in a view.
-
Sets the gradient’s direction from left to right.
Declaration
Swift
case leftToRight -
Sets the gradient’s direction from right to left.
Declaration
Swift
case rightToLeft -
Sets the gradient’s direction from top to bottom.
Declaration
Swift
case topToBottom -
Sets the gradient’s direction from bottom to top.
Declaration
Swift
case bottomToTop -
Sets the gradient’s direction from top left to bottom right.
Declaration
Swift
case topLeftToBottomRight -
Sets the gradient’s direction from bottom right to top left.
Declaration
Swift
case bottomRightToTopLeft -
Sets the gradient’s direction from top right to bottom left.
Declaration
Swift
case topRightToBottomLeft -
Sets the gradient’s direction from bottom left to top right.
Declaration
Swift
case bottomLeftToTopRight
GradientDirection Enumeration Reference