Asynchronous-Programming-with-SwiftUI-and-Combine
Asynchronous-Programming-with-SwiftUI-and-Combine copied to clipboard
[TYPO]
I found a typo in Asynchronous Programming with SwiftUI and Combine.
- Edition: 1st
- Page: 57
What is wrong
Fix the compiler errors by updating the call to ContentView() both in the preview and in BookShelfApp to ContentView(books: sampleBooks)
What's the correct spelling
sampleBooks should be Book.sampleBooks otherwise you get the error: Cannot find 'sampleBooks' in scope