Skip to content

Latest commit

 

History

History

15-Project11

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Project 11 - Bookworm

https://www.hackingwithswift.com/100/swiftui/53

Includes solutions to the challenges.

Credits

Pictures by Ryan Wallace, Eugene Triguba, Jamie Street, Alvaro Serrano, Joao Silas, David Dilbert, Casey Horner, and Katie Drazdauskaite on Unsplash.

Topics

Core Data, @Binding, Custom components

Challenges

From Hacking with Swift:

  1. 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.
  2. Modify ContentView so that books rated as 1 star have their name shown in red.
  3. 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.

Screenshots

screenshot1 screenshot2