It seems a lot of String
's methods are from NSString
. For example, when I click "Jump to Definition" on something like String.range
, Xcode shows a huge list of import
s, no code. I had to go into NSString
to see range
, localizedStandardContains
etc. Is there any overhead when calling theseNSString
methods?
Methods like range
returns NSRange
in source code. But in my code, it returns Range
, is this because some automatic conversion? Again, is there overhead in this?
Is there any documentation on String
and its relationship to NSString
?