Fix Xcode 27 archiving (#829)

* Bumping to macOS 15 + set workaround for spm arm64e

* Fix missing dep

* Set 15 deployment target

* Modifier cleanup
This commit is contained in:
Max Goedjen
2026-09-07 14:52:09 -07:00
committed by GitHub
parent 56afd30db5
commit 6122662b23
9 changed files with 109 additions and 120 deletions

View File

@@ -1,47 +0,0 @@
import SwiftUI
struct WindowBackgroundStyleModifier: ViewModifier {
let shapeStyle: any ShapeStyle
func body(content: Content) -> some View {
if #available(macOS 15.0, *) {
content
.containerBackground(
shapeStyle, for: .window
)
} else {
content
}
}
}
extension View {
func windowBackgroundStyle(_ style: some ShapeStyle) -> some View {
modifier(WindowBackgroundStyleModifier(shapeStyle: style))
}
}
struct HiddenToolbarModifier: ViewModifier {
func body(content: Content) -> some View {
if #available(macOS 15.0, *) {
content
.toolbarBackgroundVisibility(.hidden, for: .automatic)
} else {
content
}
}
}
extension View {
func hiddenToolbar() -> some View {
modifier(HiddenToolbarModifier())
}
}