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?