Some thoughts on SwiftUI
I’ve been learning SwiftUI seriously for the past few weeks.
Again, as I’ve tried it before, but stopped after a few days.
It’s so incredibly similar to React.
Apart from the language, which is Swift instead of JavaScript.
It’s nothing new, of course. SwiftUI was admittedly inspired by React and of course React Native. I am just writing my impressions as a long-time React developer.
React introduced to the Web a few things that radically changed how we build applications: declarative UIs, immutability, and data-driven UI changes.
Those are mind-shifting concepts and it’s also a radical change in Apple platforms (iOS, macOS, iPadOS, watchOS).
When Apple introduced Swift in 2014, they made the smart move to be seamlessly integrated with the existing frameworks we used with Objective-C: UIKit and AppKit.
Thanks to this, Swift got wide adoption from the early stages, because developers were already familiar with how those frameworks worked, and only the language changed.
5 years after, enough time for all Apple developers to write new apps in Swift, SwiftUI (2019) allowed a radical change.
I’d say it’s even more radical than the introduction of Swift itself.
We’re now 2 years after the first introduction of SwiftUI.
Unless you’re an early adopter, you should generally wait a little bit of time for things to improve before jumping into the “new hotness”.
At first, there’s just bugs and no documentation and poor support from 3rd party libraries.
SwiftUI is now mature enough, every Swift tutorial is also a SwiftUI one, and Apple is continuing its progress to make it even more first-class.
I’m particularly excited by the Playground app allowing to build apps in SwiftUI directly from the iPad.
I think that’s a wonderful way to build software, but that’s not available yet. We only got a sneak peek at WWDC.
Especially great for simple software, the one you write when learning to code.
download all my books for free
- javascript handbook
- typescript handbook
- css handbook
- node.js handbook
- astro handbook
- html handbook
- next.js pages router handbook
- alpine.js handbook
- htmx handbook
- react handbook
- sql handbook
- git cheat sheet
- laravel handbook
- express handbook
- swift handbook
- go handbook
- php handbook
- python handbook
- cli handbook
- c handbook
subscribe to my newsletter to get them
Terms: by subscribing to the newsletter you agree the following terms and conditions and privacy policy. The aim of the newsletter is to keep you up to date about new tutorials, new book releases or courses organized by Flavio. If you wish to unsubscribe from the newsletter, you can click the unsubscribe link that's present at the bottom of each email, anytime. I will not communicate/spread/publish or otherwise give away your address. Your email address is the only personal information collected, and it's only collected for the primary purpose of keeping you informed through the newsletter. It's stored in a secure server based in the EU. You can contact Flavio by emailing [email protected]. These terms and conditions are governed by the laws in force in Italy and you unconditionally submit to the jurisdiction of the courts of Italy.