Your Second iOS & SwiftUI App, Episode 6: Lists |

With enough of your app built up for it to make sense to incorporate a List, it’s nearly as simple as hitting “Embed in List”!

This is a companion discussion topic for the original entry at

Hello Again!!

I would like to ask you, why are you putting all the inits in a private var booksCache and then then in [Book] { booksCache }.
I tried with ‘simple’ var books: [Book] = [ .init(title:......
as below:
and works like this:

List(Library().books, id: \.title) { book in
			BookRowView(book: book)

Whats the catch here ??