init(opacity:)
Creates a new opacity component.
Declaration
init(opacity: Float = 1.0)Parameters
- opacity:
A floating-point value in the range
[0.0, 1.0], where0.0is completely transparent and1.0is completely opaque.
Creates a new opacity component.
init(opacity: Float = 1.0)A floating-point value in the range [0.0, 1.0], where 0.0 is completely transparent and 1.0 is completely opaque.