Ios swift – How do nested struct values work with @Observable when re-rendering ui?
I have following observable made to keep track of a custom modal state import SwiftUI @Observable class ModalObservable { // State var view = ModalViewType.Profile var open = false // Actions func show(view: ModalViewType) { self.open = true self.view =…