Re:Apple’s use of Swift and SwiftUI in iOS 14
by machello13 on Sunday September 27, 2020 @03:55PM
(#24609658)
No, but they're releasing new frameworks with Swift-only APIs. They're not "jettisoning" Objective-C, and I'm sure teams at Apple will continue to write stuff in Obj-C for years to come. It'll likely never disappear entirely. But that number will continue to shrink.
Re:Apple’s use of Swift and SwiftUI in iOS 14
by Apocryphon on Sunday September 27, 2020 @04:16PM
(#24609831)
That's only because WidgetKit uses SwiftUI. Granted, if more and more APIs become reliant on preexisting Swift-only APIs like SwiftUI or Core ML, that certainly leaves Objective-C out of the cutting edge.
Re:Apple’s use of Swift and SwiftUI in iOS 14
by CharlesW on Sunday September 27, 2020 @04:01PM
(#24609699)
> Objective-C hasn't been jettisoned by Apple by any stretch of the imagination.
True, but melling didn't say that Objective-C has been jettisoned.
My understanding is that you can't iOS home screen widgets in Objective-C, correct? If so, isn't that a reasonably-clear signal that Objective-C developers are starting to be left behind?
Re:Apple’s use of Swift and SwiftUI in iOS 14
by _qulr on Sunday September 27, 2020 @04:14PM
(#24609817)
> My understanding is that you can't iOS home screen widgets in Objective-C, correct?
I don't know, I haven't looked into them. But Swift is now more than 6 years old, and iOS home screen widgets are literally only days old, so I'd say "You quickly get left behind in the Apple ecosystem" is an exaggeration.
Re:Apple’s use of Swift and SwiftUI in iOS 14
by plorkyeran on Sunday September 27, 2020 @08:27PM
(#24611541)
If you're a fan of obj-c it's perfectly reasonable to pretend that swift is just a DSL for describing views and write all of the logic for your widget in obj-c. In that setup SwiftUI is replacing interface builder xibs rather than obj-c.
The number of binaries and frameworks in iOS 14 using Objective-C vastly exceeds this relatively small list. Objective-C hasn't been jettisoned by Apple by any stretch of the imagination.