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:
Arkadiusz Fal
2025-11-23 01:20:38 +01:00
parent 6591d503d4
commit db80b6adbb

View File

@@ -154,7 +154,9 @@ struct VideoContextMenuView: View {
}
#if os(tvOS)
Button("Cancel", role: .cancel) {}
if #unavailable(tvOS 18.0) {
Button("Cancel", role: .cancel) {}
}
#endif
}