Hacker News new | ask | show | jobs
by jordansmithnz 1650 days ago
While ObjC is far from dead, I’m not sure these metrics paint an accurate picture.

For a Swift-first app or binary, there are a few reasons that you might see ObjC as part of the binary:

- easier interop with ObjC

- Xcode code generation (CoreData, Intents, etc)

- legacy code (no real benefit to rewriting if it works fine with Swift)

I’d expect most Swift-first binaries to have even a small amount of ObjC for one of the reasons above. I’d also expect that binaries already containing ObjC would rarely drop it, even if new development is done in Swift.

1 comments

Metal is a mix of Objective-C and C++, while most examples use Swift, they are actually bindings to the implementation.