Contents

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], where 0.0 is completely transparent and 1.0 is completely opaque.