I am trying to learn to write swift. I am very proficient MS VB, which I have been using for almost 20 years. The Book I am learning from is:
SwiftUI for Masterminds by J.D Gauchat. I have got to chapter 7 with no problem. The exercise I am having a problem with Listing 7-5. The error I am getting is:
Thread 1: Fatal error: No Observable object of type ApplicationData found. A View.environmentObject(_:) for ApplicationData may be missing as an ancestor of this view.
I have spent the last 2 days rechecking my code. The MacBook I am using was purchased in May this year, is 16 inch, Max 4 pro chip with 128 G Ram
I am seeking help here as a last resort, I understand everybody is busy. The main issue I have with the book is the author assumes you know as much as he does. As I stated, I am very proficient MS VB
Firstly Is the SwiftUI for Masterminds to advanced for?
Secondly What is the best book to start with and then move on to SwiftUI for Masterminds.
Thirdly I thank you for reading my first post here.
Regards
Terry
Harrison
Topic:
UI Frameworks
SubTopic:
SwiftUI