How cross-platform is Swift ? Are the GUI libraries platform-dependent or independent ? I.E: can i write a single Swift program with a GUI that will compile, work the same and look similar on multiple platforms: Linux, Mac OS, Real Unix-es & BSDs, AIX, Windows ?
Swift is an open-source cross-platform language (there's even a Linux server version), but the Cocoa and Cocoa Touch APIs on OS X and iOS are platform specific.
by Anonymous Coward writes:
on Tuesday January 10, 2017 @03:41PM (#53643499)
No. Apple has no plans to make a generic UI library. Doesn't stop someone else from doing so or making Swift bindings for Qt or GTK as there are for numerous other languages.
Cross-platform (Score:5)
How cross-platform is Swift ?
Are the GUI libraries platform-dependent or independent ?
I.E: can i write a single Swift program with a GUI that will compile, work the same and look similar on multiple platforms: Linux, Mac OS, Real Unix-es & BSDs, AIX, Windows ?
Re: (Score:5, Informative)
Swift is an open-source cross-platform language (there's even a Linux server version), but the Cocoa and Cocoa Touch APIs on OS X and iOS are platform specific.
Re: (Score:2)
Not asking about the Apple GUI ones.
Just curious if there's a generic one (like Qt, or Swing) or at least a plan to have one in the future.
Re:Cross-platform (Score:0)
No. Apple has no plans to make a generic UI library. Doesn't stop someone else from doing so or making Swift bindings for Qt or GTK as there are for numerous other languages.
Re: (Score:2)
There are, in fact, several GitHub projects where people are experimenting with Qt and GTK.