This is a companion discussion topic for the original entry at https://www.raywenderlich.com/10796666-table-views/lessons/16
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/10796666-table-views/lessons/16
The JSON setup in Library.swift is not in the starter file for some reason. Only in the final file.
Is it supposed to be like that?
In my case, when I run the app after adding diffable data source and select an image for a book, the image is not being updated in a table view.
As far as I understand from the code, the book image cannot be updated, since image property is set to nil
, in case we use static data as provided by default (not the one loaded from JSON). We load images only once, when create Library.books
property.
I tried launching the final project provided and do get same results: images never update.
However, in the end of the video we can see how image in tableView
is being updated after picking one in DetailsView
.
What might be the issue here? Can your code be different from the one you provided?
Thanks.