4 ms·
SwiftUI related things might be the only swift-only API apple is actively working on as far as I know. If there's another one I don't remember it. Almost everyt
by tarentel 3y ago
SwiftUI related things might be the only swift-only API apple is actively working on as far as I know. If there's another one I don't remember it. Almost everything they release will be accessible in obj-c.
- Klonoar 3y agoThey've slowly started doing Swift-only pieces - e.g, App Intents are also Swift-only, WatchKit complications (I believe), CryptoKit (https://developer.apple.com/documentation/cryptokit/ https://developer.apple.com/documentation/cryptokit/), etc. (It's not a big blocker to still be tied to Objective-C IMO; I'm mostly just responding to the "might be the only swift-only API apple is actively working on" line.)
- jshier 3y agoNearly all "new" frameworks have been Swift-only over the last few years. Like you mention, CryptoKit and widgets, but also Combine, the entirety of SwiftUI, and even smaller things like the ProximityReader framework they released with iOS 15.4. They're even rewriting Foundation using Swift while exposing an Obj-C compatible ABI. Of course, any new API in frameworks which are already Obj-C are usually written in Obj-C and exposed to Swift. This means new Obj-C code will be written for years to come.