Type Method


Creates and returns a text checking result with the specified replacement string.


class func replacementCheckingResult(range: NSRange, replacementString: String) -> NSTextCheckingResult



The range of the detected result.


The replacement string.

Return Value

Returns an NSTextCheckingResult with the specified range and a resultType of replacement.

See Also

Text Checking Results for Text Replacement

var replacementString: String?

A replacement string from one of a number of replacement checking results.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software