Xcode – Unable to get click event with observedObject in SwiftUI
I have tried below code. However, I am unable to get click event in ObservedObject. Did I made any mistake. struct ContentView: View { @StateObject var network = Network() var body: some View { VStack { SecondView(network: network) Text(self.network.networkObserver.sucess?.description ??…