Contents

backgroundColor

The background color of the receiver. Animatable.

Declaration

var backgroundColor: CGColor? { get set }

Discussion

The default value of this property is nil.

The value of this property is retained using the Core Foundation retain/release semantics. This behavior occurs despite the fact that the property declaration appears to use the default assign semantics for object retention.

See Also

Modifying the layer’s appearance