From 3f99e9c912b9b270f261cd17ede88ebb688c10e8 Mon Sep 17 00:00:00 2001 From: Alex Ozun Date: Sat, 2 Nov 2019 22:02:12 +0000 Subject: [PATCH] change state from @ObjectBinding to @ObservedObject (#34) --- .../StateManagement.playground/Contents.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/0065-swiftui-and-state-management-pt1/StateManagement.playground/Contents.swift b/0065-swiftui-and-state-management-pt1/StateManagement.playground/Contents.swift index 03d51cfe..670fed14 100644 --- a/0065-swiftui-and-state-management-pt1/StateManagement.playground/Contents.swift +++ b/0065-swiftui-and-state-management-pt1/StateManagement.playground/Contents.swift @@ -2,7 +2,7 @@ import SwiftUI struct ContentView: View { - @ObjectBinding var state: AppState + @ObservedObject var state: AppState var body: some View { NavigationView {