Hide Documentation button in deprecated warning on tvOS

This commit is contained in:
世界
2026-04-20 05:27:16 +08:00
parent 66396e6add
commit 142e82034e
@@ -192,6 +192,15 @@ public struct GlobalChecksModifier: ViewModifier {
}
}
#if os(tvOS)
var state = AlertState(
title: String(localized: "Deprecated Warning"),
message: report.message(),
dismissButton: .cancel(String(localized: "Ok"))
)
state.onDismiss = continueChain
alert = state
#else
if report.migrationLink.isEmpty {
var state = AlertState(
title: String(localized: "Deprecated Warning"),
@@ -211,6 +220,7 @@ public struct GlobalChecksModifier: ViewModifier {
onDismiss: continueChain
)
}
#endif
}
#if os(macOS)