GradientView

open class GradientView : ROMView

View backed by a CAGradientLayer.

Public Properties

  • Get/set the colors that are used by the underlying CAGradientLayer.

    Declaration

    Swift

    open var colors: [ROMColor] { get set }
  • Get/set the locations that used as the gradient stops by the underlying CAGradientLayer.

    Warning

    The locations must be in the range of 0.0 <= 1.0 AND monotonically increasing

    Declaration

    Swift

    open var locations: [Float] { get set }
  • Get/set the start point of the underlying CAGradientLayer.

    Warning

    The point is defined in the unit coordinate space

    Declaration

    Swift

    open var startPoint: ROMPoint { get set }
  • Get/set the end point of the underlying CAGradientLayer.

    Warning

    The point is defined in the unit coordinate space

    Declaration

    Swift

    open var endPoint: ROMPoint { get set }

Override Properties

Public Functions

  • Performs common setup during initialization.

    Declaration

    Swift

    open func setup()