Post

Replies

Boosts

Views

Activity

Unable to transition to the next screen modal with viewStore.binding in SwiftUI
We are developing with SwiftUI + the Composable Architecture. I want to open a modal screen with sheet, but the screen does not transition with the following error. whose view is not in the window hierarchy.    This is working. @State var isShowView = false   〜〜 .sheet(isPresented: $isShowView) { ContentView() } This is not working. .sheet(    isPresented: viewStore.binding(      get: \.isShowView,      send: FormAction.showView    ) ) { ContentView() } What is the cause?
3
0
390
Oct ’21