Instance Property

alpha

The view’s alpha value.

Declaration

var alpha: CGFloat { get set }

Discussion

The value of this property is a floating-point number in the range 0.0 to 1.0, where 0.0 represents totally transparent and 1.0 represents totally opaque. This value affects only the current view and does not affect any of its embedded subviews.

Changes to this property can be animated.

See Also

Related Symbols

var backgroundColor: UIColor?

The view’s background color.

var isOpaque: Bool

A Boolean value that determines whether the view is opaque.