Hi there, hope this is the right category for this…
Went thru the first 8 chapters and they were really great and helpful… Found a bug in chapter 7 that stopped me dead in my tracks and made me go to the Final Code files for the chapter…
On page 281 (reading on iPad Mini - so probably different for you), the book says this:
.onAppear() { self.startNewGame() } .background(Image("Background")) } .navigationViewStyle(.stack) /* Problem line */
}
And it didnt work no matter what I tried… So i went to the final code files for chapter 7, and it was actually this:
.onAppear() { self.startNewGame() } .background(Image("Background")) } .navigationViewStyle(StackNavigationViewStyle()) /* correct code */
}
Once I changed it, everything worked great… It was really nice to have those code files available to compare! But figured I’d let you guys know to possibly fix it in future versions, or help someone new who ran into the same issue…
Theres also another issue with the random # generator where you use from 1 through 100 in multiple places (after the initial 1…100 code), but that one is easy to figure out…