Add the initial implementation for managing spaces. (#4963)

This isn't hooked up into the flows yet.
This commit is contained in:
Doug
2026-01-16 15:29:27 +00:00
committed by GitHub
parent a861c15d96
commit 6a75d80081
33 changed files with 529 additions and 65 deletions
@@ -39,6 +39,28 @@ extension View {
self
}
}
@ViewBuilder func backportButtonStyleGlass() -> some View {
if #available(iOS 26, *) {
buttonStyle(.glass)
} else {
self
}
}
@ViewBuilder func backportButtonStyleGlassProminent() -> some View {
if #available(iOS 26, *) {
// `.glassProminent` breaks our preview tests so we need to disable it when running tests.
// https://github.com/pointfreeco/swift-snapshot-testing/issues/1029#issuecomment-3366942138
if ProcessInfo.isRunningTests {
self
} else {
buttonStyle(.glassProminent)
}
} else {
buttonStyle(.borderedProminent)
}
}
}
extension ToolbarContent {