structContentView:View {@StateObjectprivatevar user =User()var body: some View {VStack {EditView().environmentObject(user)DisplayView().environmentObject(user) } }}
structContentView:View {@StateObjectprivatevar user =User()var body: some View {VStack {EditView()DisplayView() } .environmentObject(user). // put here for simple use }}