in ios 15 there is a close button, in ios 16 it is gone
How to fix this?
sample code:
struct ContentView: View {
@State var isVideoPresented = false
let player: AVPlayer = {
var player = AVPlayer(url: Bundle.main.url(forResource: "video", withExtension: "mp4")!)
return player
}()
var body: some View {
VStack {
Button("Video") {
isVideoPresented = true
}
}
.fullScreenCover(isPresented: $isVideoPresented) {
VideoPlayer(player: player)
}
}
}