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

@@ -28,8 +28,8 @@ struct IntegrationsView: View {
dismiss()
}
}
.hiddenToolbar()
.windowBackgroundStyle(.thinMaterial)
.toolbarBackgroundVisibility(.hidden, for: .automatic)
.containerBackground(.thinMaterial, for: .window)
.onAppear {
selectedInstruction = instructions.gettingStarted
}

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())
}
}

View File

@@ -2,14 +2,10 @@ import SwiftUI
struct AboutView: View {
var body: some View {
if #available(macOS 15.0, *) {
AboutViewContent()
.containerBackground(
.thinMaterial, for: .window
)
} else {
AboutViewContent()
}
AboutViewContent()
.containerBackground(
.thinMaterial, for: .window
)
}
}