Enumeration

ColorRenderingMode

The working color space for color-compositing operations.

Declaration

enum ColorRenderingMode

Topics

Enumeration Cases

case extendedLinear

The linear sRGB working color space, with color component values outside the range [0, 1] preserved.

case linear

The linear sRGB working color space, with color component values outside the range [0, 1] producing undefined results.

case nonLinear

The non-linear sRGB working color space, with color component values outside the range [0, 1] producing undefined results.

See Also

Applying Graphical Effects to a View

func opacity(Double) -> View

Sets the transparency of the view.

func brightness(Double) -> View

Brightens the view by the specified amount.

func contrast(Double) -> View

Sets the contrast and separation between similar colors in the view.

func colorInvert() -> View

Inverts the colors in the view.

func colorMultiply(Color) -> View

Adds a color multiplication effect to the view.

func blendMode(BlendMode) -> View

Sets the blend mode for compositing the view with overlapping views.

func compositingGroup() -> View

Wraps the view in a compositing group.

func drawingGroup(opaque: Bool, colorMode: ColorRenderingMode) -> View

Composites the view’s contents into an offscreen image before final display.

func saturation(Double) -> View

Adjusts the color saturation of the view.

func grayscale(Double) -> View

Adds a grayscale effect to the view.

func hueRotation(Angle) -> View

Applies a hue rotation effect to the view.

func luminanceToAlpha() -> View

Adds a luminance to alpha effect to the view.