union(_:)
Returns a new text range by forming the union with the text range you provide.
Declaration
func union(_ textRange: NSTextRange) -> SelfParameters
- textRange:
The range to use to create the union.
Return Value
An NSTextRange that represent the union of the two ranges.