Ios swift – Can not update @State variable via delegate set in View.init()
The following is a minimum example code with the problem. struct TestView: View { @State var text = "Hello" let useCase = TestUseCase() init() { useCase.output = self } var body: some View { Text(text) .onAppear { // ① useCase.output…