Modal view content disappears upon dismissal #3708
-
When I set the parent’s destination state to nil or call Tested on iOS 18.5, both simulator and device. RocketSim_Recording_iPhone_16_6.1_2025-06-13_23.37.27.mp4
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @maxkazakov, this API for .fullScreenCover(
store: self.store.scope(state: \.$destination.modal, action: \.destination.modal),
content: { ModalView(store: $0) }
) The modern style is this: .fullScreenCover(
item: $store.scope(state: \.destination?.modal, action: \.destination.modal)
) {
…
} This is the style recommended throughout the documentation and in the migration guide for 1.7, where this tool was introduced. |
Beta Was this translation helpful? Give feedback.
Hi @maxkazakov, this API for
fullscreenCover
is old and deprecated:The modern style is this:
This is the style recommended throughout the documentation and in the migration guide for 1.7, where this tool was introduced.