Adding Codeable to @Published | Mobile Messages…
Summary
But if you try to add a @Published property to your codeable, then XCode complains This one had me frustrated for many hours. (normally, your code will call the getter on wrappedValue, but I’m not aware of a way to call that directly with Published) In the end, the only solution I found was to Mirror the struct and extract the value from the ‘value’ Mirror.Child This has been pretty typical of my SwiftUI experience. There is lots of magical functionality that falls out for minimal effort in a magical way. But then you try to push the edges, act like a programmer and extend things – and you find that the basic API seems designed to frustrate you. Why would the Published struct not have a simple way to access the wrapped variable?
Classifications
industries
No industries detected
applications
No applications detected
AskAI Classifications
Labels
Software Development
Software Utilities
Mobile Applications
Linked Companies
Hobbyist Software
up to $1M