Do all @Published variables need to have an initial value in a view model (I am conforming to MVVM) for SwiftUI?
Why can't I just say that I want the @Published variable of type string with no initial value?
So does that mean that I need to have:

If not how can I get around this?
I was thinking about making an init() for the class, but I would still need to input default values when I initialize the class.

classes don't have a memberwise initializer thatstructs have, so you need to explicitly provide aninitthat initializes the properties. It's not unique@Publishedproperties - New DevString?- If that is what you want then change the type of your property. Of course, you then need to deal with unwrapping the value, so you may find an empty string is a simpler choice - Paulw11