Contents

performValidatedReplacement(in:with:)

Replaces text in the range you specify with the attributed string you provide.

Declaration

func performValidatedReplacement(in range: NSRange, with attributedString: NSAttributedString) -> Bool

Parameters

  • range:

    The range of the replacement.

  • attributedString:

    The attributed string to use as the replacement text.

Return Value

Retuns true if the replacement was successful, false otherwise.

See Also

Checking and substituting text