From 4ac3928646baf0a4fb7c6aed1b79db57930b48ad Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 8 Jan 2026 18:11:32 -0600 Subject: [PATCH] Remove macOS target - iOS only --- Package.swift | 3 +-- Sources/Bedrock/Branding/IconGeneratorView.swift | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index c8d5568..01ae2cb 100644 --- a/Package.swift +++ b/Package.swift @@ -7,8 +7,7 @@ let package = Package( name: "Bedrock", defaultLocalization: "en", platforms: [ - .iOS(.v18), - .macOS(.v15) + .iOS(.v18) ], products: [ .library( diff --git a/Sources/Bedrock/Branding/IconGeneratorView.swift b/Sources/Bedrock/Branding/IconGeneratorView.swift index 90d8358..f529cec 100644 --- a/Sources/Bedrock/Branding/IconGeneratorView.swift +++ b/Sources/Bedrock/Branding/IconGeneratorView.swift @@ -139,6 +139,7 @@ public struct IconGeneratorView: View { @MainActor private func generateIcon() async { + #if canImport(UIKit) isGenerating = true generatedIcon = nil status = "Generating icon..." @@ -167,6 +168,9 @@ public struct IconGeneratorView: View { } isGenerating = false + #else + status = "⚠️ Icon generation is only available on iOS" + #endif } }