mirror of
https://github.com/yattee/yattee.git
synced 2025-11-24 18:28:20 +00:00
Restrict tvOS Cancel button to versions below 18
The Cancel button in VideoContextMenuView now only appears on tvOS 17 and earlier using #unavailable(tvOS 18.0) check.
This commit is contained in:
@@ -154,7 +154,9 @@ struct VideoContextMenuView: View {
|
||||
}
|
||||
|
||||
#if os(tvOS)
|
||||
Button("Cancel", role: .cancel) {}
|
||||
if #unavailable(tvOS 18.0) {
|
||||
Button("Cancel", role: .cancel) {}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user