As we finish our app today, I hope you’re able to stop and realize just how much SwiftUI you already know. For example, to build the detail screen for our app will leverage SwiftData, VStack
and ZStack
, clip shapes, spacers, and more – things you should now be more than comfortable with, which shows how far you have come.
Still, there are always new things to learn, which today will include how to delete SwiftData objects, how to sort queries using SortDescriptor
, and how to add custom buttons to alerts. As the American philosopher Vernon Howard said, “Always walk through life as if you have something new to learn, and you will” – I drop in these small extra things into projects to keep you on your toes, but going over the old stuff is often just as important!
Today you have three topics to work through, in which you’ll upgrade your app to support sorting, deleting, and more.
That’s another app finished – keep going!
If you use Twitter, the button below will prepare a tweet saying you completed today, along with a celebratory graphic, the URL to this page, and the challenge hashtag. Don't worry – it won't be sent until you confirm on Twitter!
Need help? Tweet me @twostraws!
TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!
Sponsor Hacking with Swift and reach the world's largest Swift community!
The 100 Days of SwiftUI is a free collection of videos, tutorials, tests, and more to help you learn SwiftUI faster. Click here to learn more, or watch the video below.
Link copied to your pasteboard.