4 ms·
SwiftUI looks like it can bridge that final gap I’ve had with my Metal and SpriteKit projects, which were almost entirely cross platform. There will still likel
by gdubs 7y ago
SwiftUI looks like it can bridge that final gap I’ve had with my Metal and SpriteKit projects, which were almost entirely cross platform. There will still likely be distinctions in touch handling vs mouse — I haven’t had time to fully explore SwiftUI yet — but I’m looking forward to simplifying the code even further.
- vardump 7y ago> which were almost entirely cross platform... Cross-platform Metal and SpriteKit? Wouldn't it be better to code against Vulkan (== MoltenVK) or OpenGL if being cross platform is the goal? Or do you mean "cross platform" as for example Microsoft has often done. Within their platforms. Current difficulty of developing native cross platform projects is depressing. You have to use domain specific tools like Unity, React Native, etc. Or just target the web browsers.
- gdubs 7y agoCorrect, within the Apple ecosystem — Mac, iOS.
- josteink 7y agoSo not so much cross platform as it’s commonly used, but rather multi-targeting within the Apple-platform.
- fastball 7y agoMac OS / iOS / tvOS / WatchOS are certainly different platforms. The iPhone and the Mac are very different products with very different use cases, so of course they are different platforms. It's not "all-platform", but this is definitely "cross-platform".
- nvrspyx 7y agoHe probably means in the way that Apple means it with SwiftUI and Catalyst. Cross-platform = Apple devices (i.e. macOS, iOS, iPadOS, watchOS, tvOS)
- jayd16 7y agoThere's far more to building a cross platform app than making sure the UI fits on both screens. I might have missed it but does Apple plan to consolidate things like file system, networking, installation lifecycle, and notifications?
- ajconway 7y agoThe core APIs are the same, so you get most things for free — file system, networking, media recording/playback, graphics, and more. Installation takes place before the app gets to run any code. Notifications are similar enough to be hidden under a tiny abstraction (macOS even supports Push notifications, although I’m not aware of any app that uses them). Really, UI was the only area where you could feel like you’re developing for different operating systems.
- mattlondon 7y agoHow does SwiftUI help for other platforms? Genuinely curious if this will work on Windows, Linux & Android too? So far it looks like it is entirely targeted at the mac ecosystem (aka we-want-all-our-software-to-look-like-iOS ecosystem)
- bobbylarrybobby 7y agoSwiftUI is just one instance of a new feature in Swift called function builders that allows creating custom DSLs within Swift. As Swift’s cross-platform support grows, two things can happen: SwiftUI can be customized go work with the GUI toolkits of other systems, and other system-specific DSLs can be developed to take advantage of each system’s own unique capabilities and APIs.
- skohan 7y agoI think the likely scenario here would be a swiftUI-like framework which is cross platform. SwiftUI is tightly coupled with Apple’s UI rendering system, and they have no incentive to make it easier to port iOS code to Android for example.