More controls improvements

This commit is contained in:
Arkadiusz Fal
2022-05-28 01:23:50 +02:00
parent e3cf77e928
commit 3d015f2298
4 changed files with 36 additions and 25 deletions

View File

@@ -276,14 +276,17 @@ struct VideoPlayerView: View {
Spacer()
}
Button {
player.hide()
} label: {
Image(systemName: "xmark")
.font(.system(size: 40))
}
.padding(10)
.foregroundColor(.gray)
#if os(iOS)
Button {
player.hide()
} label: {
Image(systemName: "xmark")
.font(.system(size: 40))
}
.buttonStyle(.plain)
.padding(10)
.foregroundColor(.gray)
#endif
}
.contentShape(Rectangle())
.frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: geometry.size.width / Self.defaultAspectRatio)