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