We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7e4d20 commit c2476f4Copy full SHA for c2476f4
stdlib/public/SDK/Foundation/NSStringAPI.swift
@@ -414,7 +414,7 @@ extension StringProtocol where Index == String.Index {
414
/// The corresponding `NSString` - a convenience for bridging code.
415
// FIXME(strings): There is probably a better way to bridge Self to NSString
416
var _ns: NSString {
417
- return String(self) as NSString
+ return self._ephemeralString as NSString
418
}
419
420
/// Return an `Index` corresponding to the given offset in our UTF-16
0 commit comments