class GradientStop

A gradient stop stores information used by a gradient to determine how to transition between colors.

  • The gradient stop’s position along the gradient. The position is a number between 0 and 1, where 0 and 1 represent the ‘start’ and ‘end’ of the gradient respectively. A position of 0.5 refers to the gradient’s mid point.


    var position: Double { get }
  • The of color the gradient at that position.


    var color: Color { get }
  • The object’s description


    var description: String { get }