Contents

NSUnionRange(_:_:)

Returns the union of the specified ranges.

Declaration

func NSUnionRange(_ range1: NSRange, _ range2: NSRange) -> NSRange

Return Value

A range covering all indices in and between range1 and range2. If one range is completely contained in the other, the returned range is equal to the larger range.

See Also

Managing ranges