Post

Replies

Boosts

Views

Activity

Comment on SwiftData - Context missing for optional
@DTS Engineer Ziqiao Chen: What is the recommended way of handling the situation if a SwiftUI View is holding a reference to the Model but the model gets deleted? When using relationship in the model I figured out this: Before accessing the relationship I check both: model.isDeleted || model.modelContext == nil. In either case I must not access the relationship property to avoid a crash. -> is there a best practice way of handling this?
Aug ’24
Comment on Get Crash Reports for watchOS Apps
Thank you - that is a really great post, lots of detail and background information. Actually I would really love not to use any other crash reporter but the built in one provided by / the system. But unfortunately I don't get any results/ collected crashes for watchOS. Hence my question: Is there any workaround or anything I can do to capture crashes on watchOS?
Jun ’24