Skip to main content

SwiftUI is more than just a developer convenience

Posted in Apple

Apple announced SwiftUI at this year’s WWDC. It’s a new framework that will allow developers to build apps for iOS, Watch and Mac, all using the same codebase.

Cult of Mac sums it up nicely:

For an app to work on all three platforms, the developer needs to produce three separate versions of the user interface code. SwiftUI promises to change all this, because the same framework is native on all Apple platforms

Most talk has been about the obvious – it will encourage developers of iOS apps to also build a Mac and Watch app. And it’s that, of course, but I reckon there’s a tactical angle from Apple too.

A lot of developers who build an iOS app do so in something like Ionic or Xamarin instead of using native code for each platform. That means that they can reach both iOS and Android markets using one codebase and a few UI customisations for each.

Now that SwiftUI’s here, it makes it more difficult for developers who might have automatically reached for their cross-platform mobile framework of choice. They have to decide whether they want to produce an app for iOS and Android or an app for iOS, Mac and Apple Watch.

Of course, it depends on the app, but I bet a lot more devs are tempted to ditch Android and go for the Mac market instead.

Subscribe

If you enjoyed reading this and want a monthly roundup of my articles delivered to your inbox, just enter your email below.

I don’t collect any data on when, where or if people open the emails I send them. Your email will only be used to send you newsletters and will never be passed on. You can unsubscribe at any time.

More posts

Here are a couple more posts for you to enjoy. If that’s not enough, have a look at the full list.

  1. If HTML and ARIA don’t allow it, it’s probably a bad idea

    I like to use invalid HTML and ARIA as a design constraint; a line I can’t step across. Sounds obvious, but in practice it’s not always that simple!

  2. Mac event 2021

    Apple had their final event of the year last night and it was especially exciting as I’m in the market for a new Mac. Here are my thoughts.