by lapcat · 3y ago · 0 comments
This is inaccurate. Extremely inaccurate, nearly 100% mistaken. Almost every macOS framework is still written in Objective-C, including AppKit and Foundation.
And the Swift rewrite of Foundation is only beginning: (from December 2022) https://www.swift.org/blog/future-of-foundation/
See also: https://blog.timac.org/2022/0818-state-of-appkit-catalyst-sw... and https://blog.timac.org/2022/1005-state-of-swift-and-swiftui-...
Most Objective-C stuff that is around, with exception of Metal, traces back to OS X and iOS early days, and carry with them the weight of maintenaince, and development costs of a rewrite.
Metal is the only post-Swift framework that was written in Objective-C.
Still untrue. Again, see the referenced blog posts.
Indeed, aside from SwiftUI, which is still half-baked on macOS, I'm not aware of many Swift frameworks in the OS. After all, the frameworks still need to provide API to Objective-C apps, including Apple's own apps, not to mention 3rd party apps. The requirements to ship a Swift framework in the system, such as ABI stability and others, are a relatively recent addition to the language: https://www.swift.org/blog/abi-stability-and-more/
> The Objective-C language, AppKit & UIKit frameworks, and Interface Builder have empowered generations of developers. These technologies were built for each other, and will continue to serve us well for a long time to come, but over time new abstractions become necessary. For a while now, you've seen us hard at work defining the next generation of integrated language, frameworks, and tools: Swift, SwiftUI, and Xcode Previews.
>
> Tight integration in a development platform like this requires that all three pieces be designed and evolved together, both driving and driven by one another. Swift result builders were inspired by SwiftUI's compositional structure. SwiftUI's declarative views were enabled by Swift value types. And Xcode Previews was specifically designed for, and enabled by, both. Now, the result is the best development platform that we have ever built. And this year, Swift, SwiftUI, and Xcode all have fantastic updates that take this vision further, and make it even easier for you to build great apps for all of our platforms. And it all starts with Swift. Now Ben from the Swift team is gonna tell you all about what's next.
It doesn't mention Swift frameworks written from scratch either, but the numbers pretty much speak for themselves.
By all means, though, please list the many new Swift frameworks.
> -- https://developer.apple.com/videos/play/wwdc2022/102/
I have no idea why you're quoting that at me.
> We hope this is just the start of discussions about this exciting new project. In future posts, we want to discuss plans for the existing swift-corelibs-foundation project and figure out how we transition the ecosystem to the new unified implementation.