Instance Method

adjustingRanges(offset:)

Returns a new text checking result after adjusting the ranges as specified by the offset.

Declaration

func adjustingRanges(offset: Int) -> NSTextCheckingResult

Parameters

offset

The amount the ranges are adjusted.

Return Value

A new NSTextCheckingResult instance with the adjusted range or ranges.