contrast(_:)
Sets the contrast and separation between similar colors in the view.
Declaration
func contrast(_ amount: Double) -> some VisualEffect
Parameters
- amount:
The intensity of color contrast to apply. negative values invert colors in addition to applying contrast.
Return Value
An effect that applies color contrast to the view.
Discussion
Apply contrast to a view to increase or decrease the separation between similar colors in the view.