Restore nested TabView for dashboard on iOS < 26

This commit is contained in:
世界
2025-12-03 19:57:15 +08:00
parent 727136f187
commit 2e58f37fe1
3 changed files with 85 additions and 29 deletions
@@ -18,7 +18,20 @@ public extension DashboardPage {
.overview,
.groups,
]
#if !tvOS
#if !os(tvOS)
if Variant.isBeta {
cases.append(.connections)
}
#endif
return cases
}
static func enabledCases(hasGroups: Bool) -> [DashboardPage] {
var cases: [DashboardPage] = [.overview]
if hasGroups {
cases.append(.groups)
}
#if !os(tvOS)
if Variant.isBeta {
cases.append(.connections)
}