Contents

opacity(_:)

Multiplies the opacity of the color by the given amount.

Declaration

func opacity(_ opacity: Double) -> Color

Parameters

  • opacity:

    The amount by which to multiply the opacity of the color.

Return Value

A view with modified opacity.

See Also

Modifying a color