Remove macOS target - iOS only

This commit is contained in:
Matt Bruce 2026-01-08 18:11:32 -06:00
parent 7c04a25fc2
commit 4ac3928646
2 changed files with 5 additions and 2 deletions

View File

@ -7,8 +7,7 @@ let package = Package(
name: "Bedrock", name: "Bedrock",
defaultLocalization: "en", defaultLocalization: "en",
platforms: [ platforms: [
.iOS(.v18), .iOS(.v18)
.macOS(.v15)
], ],
products: [ products: [
.library( .library(

View File

@ -139,6 +139,7 @@ public struct IconGeneratorView: View {
@MainActor @MainActor
private func generateIcon() async { private func generateIcon() async {
#if canImport(UIKit)
isGenerating = true isGenerating = true
generatedIcon = nil generatedIcon = nil
status = "Generating icon..." status = "Generating icon..."
@ -167,6 +168,9 @@ public struct IconGeneratorView: View {
} }
isGenerating = false isGenerating = false
#else
status = "⚠️ Icon generation is only available on iOS"
#endif
} }
} }