Contents

invertColor(_:)

Converts a color from light to dark appearance or vice versa.

Declaration

class func invertColor(_ color: CGColor) -> Unmanaged<CGColor>

Parameters

  • color:

    The color to be inverted light<->dark.

Return Value

The inverted color.

Discussion

This has the same effect as convertColor with opposite user interface styles.