Remove macOS target - iOS only
This commit is contained in:
parent
7c04a25fc2
commit
4ac3928646
@ -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(
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user