Contents

setBackgroundColor(_:in:)

Sets the background color for a range of text.

Declaration

@nonobjc func setBackgroundColor(_ backgroundColor: CGColor, in range: NSRange)

Parameters

  • backgroundColor:

    The background color.

  • range:

    The range to which this background color applies.

See Also

Configuring colors