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.
2 parents 9f0e2d2 + 4055c94 commit 814491aCopy full SHA for 814491a
stdlib/public/Darwin/Foundation/String.swift
@@ -11,6 +11,7 @@
11
//===----------------------------------------------------------------------===//
12
13
@_exported import Foundation // Clang module
14
+@_spi(Foundation) import Swift
15
16
17
// New Strings
stdlib/public/core/StringBridge.swift
@@ -408,8 +408,8 @@ internal func _bridgeCocoaString(_ cocoaString: _CocoaString) -> _StringGuts {
408
}
409
410
extension String {
411
- public // SPI(Foundation)
412
- init(_cocoaString: AnyObject) {
+ @_spi(Foundation)
+ public init(_cocoaString: AnyObject) {
413
self._guts = _bridgeCocoaString(_cocoaString)
414
415
0 commit comments