Introduction to SwiftData and SwiftUI – Bookworm SwiftUI Tutorial 3/10

preview_player
Показать описание

Other parts in Project 11:

3. Introduction to SwiftData and SwiftUI: This video

Рекомендации по теме
Комментарии
Автор

Finished code runs fine in simulator but crashes in Preview/Canvas when I press "Add" button... how come? BTW, thanks for great tutorial, Paul.

Comenory
Автор

Paul, I love your tutorials and your way of teaching!
I followed this tutorial to a T but I only get a blank screen in the simulator when I open the BookWorm app. The build succeeds and everything but the app is just blank :( any idea what could be the issue?

karammelkon
Автор

When I try to insert a newBook into modelContext, I get an error that says: “There was an uncaught exception NSInvalidArgumentException with reason: Cannot insert ‘Book’ in this managed object context because it is not found in the associated managed object model.”
I did everything the same as the tutorial, and I’m using Playgrounds on IPad.
Any idea on what to do?

nathanubeda