-
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 of0.0 <= 1.0
AND monotonically increasingDeclaration
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 spaceDeclaration
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 spaceDeclaration
Swift
open var endPoint: ROMPoint { get set }
-
Performs common setup during initialization.
Declaration
Swift
open func setup()