https://www.hackingwithswift.com/100/swiftui/53
Includes solutions to the challenges.
Pictures by Ryan Wallace, Eugene Triguba, Jamie Street, Alvaro Serrano, Joao Silas, David Dilbert, Casey Horner, and Katie Drazdauskaite on Unsplash.
Core Data, @Binding, Custom components
From Hacking with Swift:
- Right now it’s possible to select no genre for books, which causes a problem for the detail view. Please fix this, either by forcing a default, validating the form, or showing a default picture for unknown genres – you can choose.
- Modify ContentView so that books rated as 1 star have their name shown in red.
- Add a new “date” attribute to the Book entity, assigning Date() to it so it gets the current date and time, then format that nicely somewhere in DetailView.