What approach should be used instead in iOS 14?
Yeah, something weird is going on here. On the Objective-C side I see two initialisers that allow for export:
These are marked as NS_REFINED_FOR_SWIFT, so they’re not directly available to Swift. However, I can’t find the corresponding Swift-specific initialisers.
Ah, some digging reveals that this is a known bug (r. 64441569). These methods were not supposed to be marked as NS_REFINED_FOR_SWIFT. Please retest this with any future Xcode 12 beta seeds that come down the pike.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
These are marked as NS_REFINED_FOR_SWIFT, so they’re not directly available to Swift. However, I can’t find the corresponding Swift-specific initialisers.
Ah, some digging reveals that this is a known bug (r. 64441569). These methods were not supposed to be marked as NS_REFINED_FOR_SWIFT. Please retest this with any future Xcode 12 beta seeds that come down the pike.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"