Watch Next menu improvements

This commit is contained in:
Arkadiusz Fal
2022-12-19 10:48:30 +01:00
parent 2ce903b6c3
commit 636e8205fe
5 changed files with 127 additions and 31 deletions

View File

@@ -96,13 +96,13 @@ struct VideoDetails: View {
ContentItem(video: player.currentVideo)
}
var pageMenu: some View {
@ViewBuilder var pageMenu: some View {
#if os(macOS)
pagePicker
.labelsHidden()
.offset(x: 15, y: 15)
.frame(maxWidth: 200)
#else
#elseif os(iOS)
Menu {
pagePicker
} label: {
@@ -224,6 +224,8 @@ struct VideoDetails: View {
.secondaryBackground
#elseif os(iOS)
.background
#else
.clear
#endif
}