refactor: Tab view accessory compat
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user