![]() This is the case for a lot of Swift packages. The documentation was pretty much non-existent, and I had to go through samples and Stackoverflow threads to understand how to use it and make it look alright. The only one that matched the features I required, ended up behind pretty hard to integrate. You’ll find a lesser variety of options for niche things, and the documentation will generally be rawer.įor example, a few weeks ago, I was looking for a pretty and powerful Chart library. Swift’s libraries/package ecosystem is much smaller than JavaScript’s. □ The ecosystem is young (and a bit fractured) You can start Apple’s Mac’s Getting Started Playground to get a better idea of what using Swift to create a Mac app looks like. That said, compared to Objective-C, Swift code is cleaner and easier to understand. If you’ve never used Swift, nor haven’t used a language like Objective-C recently, Swift will take you more time to get familiar with than Electron. Your app will be blazing fast, the UI will be as native as it can be to Mac, and you know Apple is fully behind it to support it, even in the future. More recently, Apple introduced Swift UI which makes building UIs quite easier with Swift, thanks to a reactive structure than resembles React. Since the first release, developers can use Swift to build native Mac applications way faster than before. It slowly replaces Objective-C as the default language for anything on the Apple platform. Swift is Apple’s relatively new (2014) programming language. These are the two most popular general-purpose ways to create apps for Mac in 2021. ![]() This is an un-opinionated, short article comparing Swift and Electron.js for building Mac OS apps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |