NSLocationInRange(_:_:)
Returns a Boolean value that indicates whether a specified position is in a given range.
Declaration
func NSLocationInRange(_ loc: Int, _ range: NSRange) -> BoolReturn Value
true if loc lies within range—that is, if it’s greater than or equal to range.location and less than range.location plus range.length.