UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

What you learned

Hopefully you felt like these projects started to stretch you a little, not only in pushing your SwiftUI skills further but also teaching you some more advanced Swift. Plus, of course, you also have two new SwiftUI projects that you built – you can go ahead and keep customizing these all you want, put them on GitHub, or perhaps convert them into something else that better suits your tastes.

Here’s a quick recap of all the new things we covered in the last three projects:

  • Why @State works with structs.
  • How to use @Observable to store data in classes.
  • Presenting and dismissing views using the sheet() modifier and the dismiss environment key.
  • Using onDelete(perform:) to enable swipe to delete.
  • Adding EditButton to navigation bar items, to let users edit list data more easily.
  • Reading and writing data with UserDefaults.
  • Archiving and unarchiving data with Codable, including working with data stored in a hierarchy.
  • Using the Identifiable protocol to make sure all items can be identified uniquely in our user interface.
  • How to use containerRelativeFrame() to make content fit the screen.
  • Using ScrollView to lay out custom views in a scrollable area.
  • Using Swift’s generics system to write methods that work with different kinds of data.
  • Pushing new views onto the navigation stack using NavigationLink.
  • Navigating programmatically, including with the type-erased NavigationPath.
  • How to customize the navigation bar appearance.
  • Placing toolbar items in exact locations.

I hope you’ll agree that’s a lot, and it also spans a wide range – we’ve gone from hard-core language features through to user-facing views, with a huge spread in between. Some folks will prefer the pure language stuff and others will prefer the more creative side of coding, and that’s OK – we all learn differently!

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!

Find out more

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

BUY OUR BOOKS
Buy Pro Swift Buy Pro SwiftUI Buy Swift Design Patterns Buy Testing Swift Buy Hacking with iOS Buy Swift Coding Challenges Buy Swift on Sundays Volume One Buy Server-Side Swift Buy Advanced iOS Volume One Buy Advanced iOS Volume Two Buy Advanced iOS Volume Three Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with macOS Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Beyond Code

Was this page useful? Let us know!

Average rating: 4.8/5

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.