Instance Property

gradientPoints

An array of points used to determine gradient color changes.

Declaration

var gradientPoints: [NSNumber]? { get }

Discussion

This property is only available when colorType is set to TVColorType.linearGradientTopToBottom or TVColorType.linearGradientLeftToRight. The points defined in the array determine when a color change occurs using the colors in the gradientColors property.

See Also

Getting Color Properties

var color: UIColor?

A UIColor object used to color an element.

var colorType: TVColorType

The color type for an element.

enum TVColorType

Designates how color for an element is to be displayed.

var gradientColors: [UIColor]?

An array of colors used to create a gradient for an element.