Ask HN: hybrid app framework for an app that runs on iOS and Mac
10 comments
I know you said no HTML, bit IMO it's the only way to do cross platform well.
I'm a big fan of Ionic, especially now that they released their Drag and Drop UI editor at https://creator.ionic.io/.
I'm a big fan of Ionic, especially now that they released their Drag and Drop UI editor at https://creator.ionic.io/.
Thanks. Please see https://news.ycombinator.com/item?id=14526419 for the problem with the web.
Maybe I'll just end up writing two separate apps in Swift.
Maybe I'll just end up writing two separate apps in Swift.
In the case of Ionic it uses Cordova to give access to native APIs. Even better, it provides a JS wrapper so that there is a common interface for both systems and you only need to write your code once!
Look at UIKit clones for Mac. There was one called Blueprint a few years ago. I'm not sure of the state of the art now.
A Mac app starter kit (icon management, menu, upgrading, etc.) With the iOS app ported in with a UIKit clone should get you what you want with much better performance than a web/JS-based solutio ln that will compromise your iOS app.
A Mac app starter kit (icon management, menu, upgrading, etc.) With the iOS app ported in with a UIKit clone should get you what you want with much better performance than a web/JS-based solutio ln that will compromise your iOS app.
afaik you can use swift for both mac and iOS however they're different platforms so there won't be 100% overlap.
have you considered building a web app? you can run it in the browser on both desktop and mobile. you can also use a cordova based framework to wrap it in an app for the app store.
Thanks, but I need access to some system APIs. Now, I can always bridge them to the web, with two implementations, one for iOS and one for macOS, but that seems like doing the framework's work myself. If I do that, I might as well do the whole thing in Swift.
Is there anything I'm missing?
Is there anything I'm missing?
I agree, phonegap might be the best best for cross platform hybrid apps but doesn't officially cover desktop, although it shouldn't be too difficult to port it to use electron instead
https://electron.atom.io
Electron is desktop-only, isn't it? I need to support iOS and Mac. Thanks.
Check out Xamarin https://developer.xamarin.com/guides/mac/getting_started/hel... .
What hybrid app frameworks exist for this purpose? Most of the ones I've heard of are moblie + mobile (iOS + Android) or desktop + desktop (Mac + Windows), not mobile + desktop.
I prefer to code in Swift, since I need access to a few platform APIs, and since I'm very comfortable with it, and with iOS APIs as well, more than HTML/CSS/JS.
It's a simple utility app, with a few screens, not performance-sensitive. Thanks.