substring(with:)

Returns a string object containing the characters of the String that lie within a given range.

Declaration

func substring(with aRange: Range<Self.Index>) -> String