Skip to content

Commit 30feb1e

Browse files
committed
removed .formSheet modalPresentationStyle for tvOS 26 due to CI failure
1 parent d2fb6e5 commit 30feb1e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Sources/SwiftCrossUI/Views/Modifiers/SheetModifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
extension View {
22
/// Presents a conditional modal overlay. `onDismiss` gets invoked when the sheet is dismissed.
33
///
4-
/// Internal modalPresentationStyle falls back to .overFullScreen (non-opaque) on tvOS 18 and earlier.
4+
/// Internal UIViewController.modalPresentationStyle falls back to .overFullScreen (non-opaque) on tvOS.
55
public func sheet<SheetContent: View>(
66
isPresented: Binding<Bool>, onDismiss: (() -> Void)? = nil,
77
@ViewBuilder content: @escaping () -> SheetContent

Sources/UIKitBackend/UIKitBackend+Sheet.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ extension UIKitBackend {
99
#if !os(tvOS)
1010
sheet.modalPresentationStyle = .formSheet
1111
#else
12-
if #available(tvOS 26.0, *) {
13-
sheet.modalPresentationStyle = .formSheet
14-
} else {
15-
sheet.modalPresentationStyle = .overFullScreen
16-
}
12+
sheet.modalPresentationStyle = .overFullScreen
1713
#endif
1814
sheet.view = content.view
1915
return sheet

0 commit comments

Comments
 (0)