CTColourStyle
public protocol CTColourStyle
A protocol to set colour styling.
Allows for single colour, gradient or gradient with stops control.
-
Selection for the style of colour.
Declaration
Swift
var colourType: ColourType { get set }
-
Single Colour
Declaration
Swift
var colour: Color? { get set }
-
Array of colours for gradient
Declaration
Swift
var colours: [Color]? { get set }
-
Array of Gradient Stops.
GradientStop
is a Hashable version of Gradient.StopDeclaration
Swift
var stops: [GradientStop]? { get set }
-
Start point for the gradient
Declaration
Swift
var startPoint: UnitPoint? { get set }
-
End point for the gradient
Declaration
Swift
var endPoint: UnitPoint? { get set }