Post

Replies

Boosts

Views

Activity

Comment on How to use generated symbols from string catalogs in SPM packages
Thank you, that worked. Is it important to put my string catalog in a folder called Resources? (I realized mine had a typo but it still worked). When working with SF symbols in Texts, I'm wondering how this should work with generated symbols: Previously this worked (with strings instead of symbols): let image = Image(systemName: "exclamationmark") Text("myKey(image)", bundle: .module) When converting this generated key to a symbol it uses a String argument in the generated function :(
Jun ’25
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