Post

Replies

Boosts

Views

Activity

Reply to SwiftUI StateObject crash: “failed to demangle witness for associated type 'Property’”
I have experienced the same issue. My code was like: In side the view: @StateObject var foo: AbstractFoo class AbstractFoo: ObservableObject {} class Foo: AbstractFoo{} I tried not having the view model be a subclass which was itself conforming to ObservableObject and so far haven't seen a single crash report from this version. If the above is true, does that mean I'm not supposed to use inheritance for StateObject? Can someone from Apple please confirm?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’24
Reply to [UIDictationConnection cancelSpeech] Keyboard Dictation Error
I have experienced the same issue. The top of the crash stack trace is __37-[UIDictationConnection cancelSpeech]_block_invoke Any information/help would be appreciated.
Replies
Boosts
Views
Activity
Feb ’24
Reply to SwiftUI StateObject crash: “failed to demangle witness for associated type 'Property’”
I have experienced the same issue. My code was like: In side the view: @StateObject var foo: AbstractFoo class AbstractFoo: ObservableObject {} class Foo: AbstractFoo{} I tried not having the view model be a subclass which was itself conforming to ObservableObject and so far haven't seen a single crash report from this version. If the above is true, does that mean I'm not supposed to use inheritance for StateObject? Can someone from Apple please confirm?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’24