UIViewGradientDirection

public enum UIViewGradientDirection

Direction of the linear gradient.

  • vertical: Linear gradient vertical.
  • horizontal: Linear gradient horizontal.
  • diagonalLeftToRightAndTopToDown: Linear gradient from left top to right down.
  • diagonalLeftToRightAndDownToTop: Linear gradient from left down to right top.
  • diagonalRightToLeftAndTopToDown: Linear gradient from right top to left down.
  • diagonalRightToLeftAndDownToTop: Linear gradient from right down to left top.