3 ms·
> By the way on macOS MAUI uses Catalyst as backend, not native macOS APIs. What does this mean? Mac Catalyst is native. It’s just a thin bridge between iPhone
by fingerlocks 7mo ago
> By the way on macOS MAUI uses Catalyst as backend, not native macOS APIs.
What does this mean? Mac Catalyst is native. It’s just a thin bridge between iPhone’s UIKit and AppKit on MacOS, which are really the only two divergent frameworks in the entirety of the massive Apple SDK.
- throwaway27448 7mo agoFor those who have never heard of catalyst: https://developer.apple.com/documentation/uikit/mac-catalyst https://developer.apple.com/documentation/uikit/mac-catalyst
- pjmlp 7mo agoIt isn't really the same, exactly because of that divergence, and platform differences not covered by Catalyst. Also they aren't the only frameworks that are divergent, although that is another discussion.
- fingerlocks 7mo agoLet’s have that discussion. I’m all ears. Can you name any other pair of frameworks that provide identical functionality, but they are divergent such that each framework is mutually exclusive to its target platform? And no just because the compass is #ifdef’d out when CoreLocation is compiled for MacOs does not count as “divergent”
- pjmlp 7mo agoOpenGL and Metal? The various incantations of AI frameworks that have been introduced throughout the years? SwiftUI vs UIKit vs AppKit vs Cocoa Touch vs Catalyst? SceneKit vs RealityKit? I understand as target platform also the various versions of macOS.
- rafram 7mo agoOpenGL is still supported, and Metal has been around for 12 years. Cocoa Touch is just the umbrella term for iOS frameworks including UIKit, and Catalyst also uses UIKit.
- pjmlp 7mo agoOpenGL isn't really supported, it limps along for existing code, nowadays depending on the OS version, it actually has Metal underneath, but not what Metal is capable of doing with the hardware.
- fingerlocks 7mo agoHow are any of these divergent between MacOs and iOS? You still link against the same framework, and the code is nearly identical between the two except for occasional differences in the hardware limitations. Go look at any of Apple’s sample code. Outside of UIKit/Appkit, most of their samples target both platforms simultaneously
- flohofwoe 7mo agoIt's still extremely weird. The difference between iOS UIKit and macOS AppKit is extremely small and already designed for 'cross-platform synergy', e.g. serving both macOS and iOS with mostly the same code.