Follow along at https://www.hackingwithswift.com/100/swiftui/99.
This day covers Part Four of Project 19
in the 100 Days of SwiftUI Challenge. (Project 19 files can be found in the directory for Part One.)
In addition to recapping the material covered during the project's other days, Day 67 focuses on extending the project according to a set of challenges.
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.
Given that I'm using MKMapSnapshotter
snapshots as a sort of "detail image view", this would be a good opportunity to overlay an annotation image to mark the center point.
- 🔗 Commit
Fill in the loading and saving methods for Favorites.
- The
@UserDefault
property wrapper takes care of this nicely.
For a real challenge, let the user sort and filter the resorts in ContentView. For sorting use default, alphabetical, and country, and for filtering let them select country, size, or price.
- 🔗 Commit