
Вот мой код
import SwiftUI
struct FullScreenModal: View {
@State var showModal: Bool = false
var body: some View {
VStack {
Text("Parent view")
Button("Open Modal") {
showModal = true
}
}
.fullScreenCover(isPresented: $showModal, content: {
Text("This is a full screen cover.")
})
}
}
#Preview {
FullScreenModal()
}
Подробнее здесь: https://stackoverflow.com/questions/784 ... pe-changes