NEW: Learn SwiftData for free with my all-new book! >>

Hacking With iOS - SwiftUI Edition: How out of date is it now?

Forums > Books

Hi there

I'm thinking of working my way through the Hacking With iOS - SwiftUI online tutorial, but I've noticed that it is now a year out of date. The starter template in the WeSplit walkthrough asks you to create a "Single View App" but this option is no longer available. Plus the files it dicusses in the first section (eg AppDelegate) no longer exist.

How significant are these differences? Should I just battle on through?

Happy to purchase the book if the content is more up to date

Thanks John


Not as out of date is it may seem. Some things are yes, others are the same. There are some new features but here's a quick answer to your questions:

1- Single View App is basically now App (under iOS)

2- AppDelegate requires you to change the lifecyle from SwiftUI to UIKit App Delegate.

Some of the content such as MapKit now has direct integration with SwiftUI but in the course we do it via the ViewControllerRepresentable way.

SwiftUI is still young and missing a few integrations which are being added frequently. It will take some time. So up to you if you want to run with it.

Personally, I am not in a hurry, so I'm sticking with SwiftUI and taking the changes as they happen.


I've been working my way through the online version of the book right now - I'm finishing up Project 14 BucketList. I have to say I am so impressed with this book/tutorial. I've previously watched all the WWDC SwiftUI videos, done lots of poking around various places and learning things here and there. It came time to start actually building out an app using SwiftUI and even with what felt like a lot of (somewhat undirected) research, I found myself quickly in over my head - spending lots of time moving things around without really understanding what or why.

I then started this online tutorial (book) and can't be more happy that I did. It starts very slow and continually builds - taking you through not just what to do, but most importantly how things work under the hood and why you might want to do things certain ways. Incredibly helpful. I had spent a couple weeks building out a basic app and kept running into data flow problems. After I read through the Core Data bits (Project 11 and 12) I went back and in a couple days had rewritten what I had done and now have the basic flow correct.

I've been writing Swift for a couple years and this book really benefits from having comfort with Swift and your environment. I spent a couple years using UIKit and that definitely helps as well since wrapping UIKit frameworks will need to be done.

I very much recommend going through this book even if it's a year out of date. SwiftUI isn't really changing , it's growing. So what's in here is very valid and I have not seen one place where the code didn't compile because things have changed. I had no idea MapKit integrates more thoroughly with SwiftUI until I read this thread, but learning how to bridge it in will allow me to bridge things like UICloudSharingController and other pieces that I will specifically need.

You won't regret going through this book. I'm at Project 15 now and the only things that aren't correct are the ones that you bring up (Single View App and AppDelegate/SceneDelegate).


Hacking with Swift is sponsored by Swiftable

SPONSORED An iOS conference hosted in Buenos Aires, Argentina – join us for the third edition from November 29th to December 1st!

Get your ticket

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.