Skip to main content

Day 99

About 2 minSwiftcrashcoursepaul-hudsonswiftswiftuihacking-with-swiftxcodeappstore

Day 99 ๊ด€๋ จ


100 Days of SwiftUI - Day 99

Project 19, part 4

Project 19, part 4

Now that our app is finished itโ€™s time to take on some challenges to help solidify your knowledge, then take a quick test to make sure you remember what you learned.

Although the first two challenges are fairly easy this time, I think youโ€™ll find the third one more taxing. Hopefully youโ€™ve built up some firm resilience over the last 99 days of work, but even then I hope you remember itโ€™s OK to fail โ€“ as the Spanish writer Jose Bergamin said, โ€œto be ready to fail is to be prepared for success.โ€

Today you should work through the wrap up chapter for project 19, complete its review, then work through all three of its challenges.

SnowSeeker: Wrap up

SnowSeeker: Wrap up
100 Days of SwiftUI - Day 99 - SnowSeeker: Wrap up

SnowSeeker: Wrap up

This wasnโ€™t a particularly complicated project, but it still taught new skills such as split view layouts, optional alerts, layout with transparent groups, and even an improved way of formatting lists in text. It also gave you the chance to practice lots of core skills, such as handling Codable, creating scrolling lists, and more.

This kind of app is really good as a template, because itโ€™s the kind of thing you can use again and again in the future just by varying the kind of content you feed into it. Template apps โ€“ as well as the techniques underlying them โ€“ are the โ€œbread and butterโ€ of iOS apps: the kind of thing that is never going to set the world on fire, but also so fundamentally useful and common that you canโ€™t do without them.

Review what you learned

Anyone can sit through a tutorial, but it takes actual work to remember what was taught. Itโ€™s my job to make sure you take as much from these tutorials as possible, so Iโ€™ve prepared a short review to help you check your learning.

Click here to review what you learned in this project.open in new window

Challenge

One of the best ways to learn is to write your own code as often as possible, so here are three ways you should try extending this app to make sure you fully understand whatโ€™s going on.

  1. Add a photo credit over the ResortView image. The data is already loaded from the JSON for this purpose, so you just need to make it look good in the UI.
  2. Fill in the loading and saving methods for Favorites.
  3. For a real challenge, let the user sort the resorts in ContentView either using the default order, alphabetical order, or country order.

์ด์ฐฌํฌ (MarkiiimarK)
Never Stop Learning.