mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 18:35:05 +00:00
Fix disabled pickers in View Options sheet on tvOS
Use .pickerStyle(.menu) for Row Size, Columns, and Channel Strip pickers on tvOS so they work inside a sheet without NavigationStack.
This commit is contained in:
@@ -55,6 +55,9 @@ struct ViewOptionsSheet: View {
|
|||||||
Text("viewOptions.rowSize.regular").tag(VideoRowStyle.regular)
|
Text("viewOptions.rowSize.regular").tag(VideoRowStyle.regular)
|
||||||
Text("viewOptions.rowSize.large").tag(VideoRowStyle.large)
|
Text("viewOptions.rowSize.large").tag(VideoRowStyle.large)
|
||||||
}
|
}
|
||||||
|
#if os(tvOS)
|
||||||
|
.pickerStyle(.menu)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Grid-specific options
|
// Grid-specific options
|
||||||
@@ -65,6 +68,7 @@ struct ViewOptionsSheet: View {
|
|||||||
Text("\(count)").tag(count)
|
Text("\(count)").tag(count)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.pickerStyle(.menu)
|
||||||
#else
|
#else
|
||||||
Stepper(
|
Stepper(
|
||||||
"viewOptions.columns \(effectiveColumns)",
|
"viewOptions.columns \(effectiveColumns)",
|
||||||
@@ -86,6 +90,9 @@ struct ViewOptionsSheet: View {
|
|||||||
Text(size.displayName).tag(size)
|
Text(size.displayName).tag(size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if os(tvOS)
|
||||||
|
.pickerStyle(.menu)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user