refactor: Tab view accessory compat

This commit is contained in:
世界
2026-01-09 19:46:22 +08:00
parent a7b1199fac
commit d542c2e52a
8 changed files with 181 additions and 264 deletions
@@ -37,10 +37,6 @@ public struct ConnectionListView: View {
connectionSort: $viewModel.connectionSort,
closeAllConnections: viewModel.closeAllConnections
)
if #available(iOS 26.0, *), !Variant.debugNoIOS26 {
} else {
StartStopButton()
}
}
}
#elseif os(macOS)
@@ -82,16 +78,6 @@ public struct ConnectionListView: View {
.background(Color(uiColor: .systemGroupedBackground))
#endif
}
private var backgroundColor: Color {
#if os(iOS)
return Color(uiColor: .secondarySystemGroupedBackground)
#elseif os(macOS)
return Color(nsColor: .textBackgroundColor)
#elseif os(tvOS)
return Color(uiColor: .black)
#endif
}
}
#if os(iOS)