Build Information
Failed to build LiquidGlass, reference main (b154a6), with Swift 6.2 for macOS (SPM) on 15 May 2026 00:28:02 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:32: error: 'blue' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:104:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | GlassButton(tint: .red, action: {}) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:104:17: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | GlassButton(tint: .red, action: {}) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:104:17: error: 'Label' is only available in macOS 11.0 or newer
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
| |- error: 'Label' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
105 | }
106 | GlassButton(tint: .red, action: {}) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:104:17: error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
| |- error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
105 | }
106 | GlassButton(tint: .red, action: {}) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:104:23: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | GlassButton(tint: .red, action: {}) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:32: error: 'red' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:107:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
105 | }
106 | GlassButton(tint: .red, action: {}) {
107 | Label("Delete", systemImage: "trash")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:107:17: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
105 | }
106 | GlassButton(tint: .red, action: {}) {
107 | Label("Delete", systemImage: "trash")
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:107:17: error: 'Label' is only available in macOS 11.0 or newer
105 | }
106 | GlassButton(tint: .red, action: {}) {
107 | Label("Delete", systemImage: "trash")
| |- error: 'Label' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:107:17: error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
105 | }
106 | GlassButton(tint: .red, action: {}) {
107 | Label("Delete", systemImage: "trash")
| |- error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:107:23: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
105 | }
106 | GlassButton(tint: .red, action: {}) {
107 | Label("Delete", systemImage: "trash")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:78:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
76 | }
77 |
78 | #Preview("Card — tinted") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
79 | ZStack {
80 | LinearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:79:5: error: 'ZStack' is only available in macOS 10.15 or newer
77 |
78 | #Preview("Card — tinted") {
79 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | LinearGradient(
81 | colors: [.orange, .pink],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:80:9: error: 'LinearGradient' is only available in macOS 10.15 or newer
78 | #Preview("Card — tinted") {
79 | ZStack {
80 | LinearGradient(
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | colors: [.orange, .pink],
82 | startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:81:23: error: 'orange' is only available in macOS 10.15 or newer
79 | ZStack {
80 | LinearGradient(
81 | colors: [.orange, .pink],
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | startPoint: .topLeading,
83 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:81:32: error: 'pink' is only available in macOS 10.15 or newer
79 | ZStack {
80 | LinearGradient(
81 | colors: [.orange, .pink],
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | startPoint: .topLeading,
83 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:85:10: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
83 | endPoint: .bottomTrailing
84 | )
85 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:87:41: error: 'pink' is only available in macOS 10.15 or newer
85 | .ignoresSafeArea()
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:88:13: error: 'VStack' is only available in macOS 10.15 or newer
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | Text("Sheet style")
90 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:88:32: error: 'leading' is only available in macOS 10.15 or newer
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | Text("Sheet style")
90 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:89:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:89:17: error: 'Text' is only available in macOS 10.15 or newer
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:90:22: error: 'font' is only available in macOS 10.15 or newer
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
90 | .font(.title2.bold())
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:90:28: error: 'title2' is only available in macOS 11.0 or newer
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
90 | .font(.title2.bold())
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:90:35: error: 'bold()' is only available in macOS 10.15 or newer
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
90 | .font(.title2.bold())
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:91:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
89 | Text("Sheet style")
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | .font(.subheadline)
93 | .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:91:17: error: 'Text' is only available in macOS 10.15 or newer
89 | Text("Sheet style")
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | .font(.subheadline)
93 | .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:92:22: error: 'font' is only available in macOS 10.15 or newer
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .foregroundStyle(.secondary)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:92:28: error: 'subheadline' is only available in macOS 10.15 or newer
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
| |- error: 'subheadline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .foregroundStyle(.secondary)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:93:22: error: 'foregroundStyle' is only available in macOS 14.0 or newer
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
93 | .foregroundStyle(.secondary)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:93:39: error: 'secondary' is only available in macOS 12.0 or newer
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
93 | .foregroundStyle(.secondary)
| |- error: 'secondary' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:88:53: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | Text("Sheet style")
90 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:88:53: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | Text("Sheet style")
90 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:96:10: error: 'padding' is only available in macOS 10.15 or newer
94 | }
95 | }
96 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:49:14: error: 'padding' is only available in macOS 10.15 or newer
23 | /// }
24 | /// ```
25 | public struct GlassCard<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
26 |
27 | private let style: GlassStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
48 | content
49 | .padding(16)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .glass(style: style, tint: tint)
51 | }
[7/8] Compiling LiquidGlass GlassMaterial.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:21:27: error: 'Material' is only available in macOS 12.0 or newer
15 | /// Only used on iOS 17 and 18 — on iOS 26+ the package goes through
16 | /// `glassEffect` directly and skips these values entirely.
17 | struct GlassMaterial {
| `- note: add '@available' attribute to enclosing struct
18 |
19 | let style: GlassStyle
20 |
21 | var fallbackMaterial: Material {
| | `- error: 'Material' is only available in macOS 12.0 or newer
| `- note: add '@available' attribute to enclosing property
22 | switch style {
23 | case .sheet: return .ultraThinMaterial
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:92:15: error: 'Color' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
92 | let tint: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
93 | let cornerRadius: CGFloat
94 |
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:96:41: error: 'View' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
94 |
95 | @ViewBuilder
96 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
97 | let shape = RoundedRectangle(cornerRadius: cornerRadius, style: .continuous)
98 |
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:95:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
93 | let cornerRadius: CGFloat
94 |
95 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
96 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
97 | let shape = RoundedRectangle(cornerRadius: cornerRadius, style: .continuous)
98 |
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:118:61: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
116 | @available(iOS 26.0, *)
117 | @ViewBuilder
118 | private func nativeRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| | `- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
119 | if let tint {
120 | content.glassEffect(.regular.tint(tint), in: shape)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:118:87: error: 'View' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
116 | @available(iOS 26.0, *)
117 | @ViewBuilder
118 | private func nativeRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
119 | if let tint {
120 | content.glassEffect(.regular.tint(tint), in: shape)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:117:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
115 | #if compiler(>=6.2)
116 | @available(iOS 26.0, *)
117 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
118 | private func nativeRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
119 | if let tint {
120 | content.glassEffect(.regular.tint(tint), in: shape)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:129:63: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| | `- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:129:89: error: 'View' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:23:33: error: 'ultraThinMaterial' is only available in macOS 12.0 or newer
15 | /// Only used on iOS 17 and 18 — on iOS 26+ the package goes through
16 | /// `glassEffect` directly and skips these values entirely.
17 | struct GlassMaterial {
| `- note: add '@available' attribute to enclosing struct
18 |
19 | let style: GlassStyle
20 |
21 | var fallbackMaterial: Material {
| `- note: add '@available' attribute to enclosing property
22 | switch style {
23 | case .sheet: return .ultraThinMaterial
| |- error: 'ultraThinMaterial' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
24 | case .card: return .thinMaterial
25 | case .button: return .regularMaterial
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:24:33: error: 'thinMaterial' is only available in macOS 12.0 or newer
15 | /// Only used on iOS 17 and 18 — on iOS 26+ the package goes through
16 | /// `glassEffect` directly and skips these values entirely.
17 | struct GlassMaterial {
| `- note: add '@available' attribute to enclosing struct
18 |
19 | let style: GlassStyle
20 |
21 | var fallbackMaterial: Material {
| `- note: add '@available' attribute to enclosing property
22 | switch style {
23 | case .sheet: return .ultraThinMaterial
24 | case .card: return .thinMaterial
| |- error: 'thinMaterial' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
25 | case .button: return .regularMaterial
26 | case .toolbar: return .bar
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:25:33: error: 'regularMaterial' is only available in macOS 12.0 or newer
15 | /// Only used on iOS 17 and 18 — on iOS 26+ the package goes through
16 | /// `glassEffect` directly and skips these values entirely.
17 | struct GlassMaterial {
| `- note: add '@available' attribute to enclosing struct
18 |
19 | let style: GlassStyle
20 |
21 | var fallbackMaterial: Material {
| `- note: add '@available' attribute to enclosing property
22 | switch style {
23 | case .sheet: return .ultraThinMaterial
24 | case .card: return .thinMaterial
25 | case .button: return .regularMaterial
| |- error: 'regularMaterial' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
26 | case .toolbar: return .bar
27 | case .sidebar: return .thickMaterial
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:26:33: error: 'bar' is only available in macOS 12.0 or newer
15 | /// Only used on iOS 17 and 18 — on iOS 26+ the package goes through
16 | /// `glassEffect` directly and skips these values entirely.
17 | struct GlassMaterial {
| `- note: add '@available' attribute to enclosing struct
18 |
19 | let style: GlassStyle
20 |
21 | var fallbackMaterial: Material {
| `- note: add '@available' attribute to enclosing property
22 | switch style {
23 | case .sheet: return .ultraThinMaterial
24 | case .card: return .thinMaterial
25 | case .button: return .regularMaterial
26 | case .toolbar: return .bar
| |- error: 'bar' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
27 | case .sidebar: return .thickMaterial
28 | case .overlay: return .ultraThickMaterial
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:27:33: error: 'thickMaterial' is only available in macOS 12.0 or newer
15 | /// Only used on iOS 17 and 18 — on iOS 26+ the package goes through
16 | /// `glassEffect` directly and skips these values entirely.
17 | struct GlassMaterial {
| `- note: add '@available' attribute to enclosing struct
18 |
19 | let style: GlassStyle
20 |
21 | var fallbackMaterial: Material {
| `- note: add '@available' attribute to enclosing property
22 | switch style {
23 | case .sheet: return .ultraThinMaterial
:
25 | case .button: return .regularMaterial
26 | case .toolbar: return .bar
27 | case .sidebar: return .thickMaterial
| |- error: 'thickMaterial' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
28 | case .overlay: return .ultraThickMaterial
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:28:33: error: 'ultraThickMaterial' is only available in macOS 12.0 or newer
15 | /// Only used on iOS 17 and 18 — on iOS 26+ the package goes through
16 | /// `glassEffect` directly and skips these values entirely.
17 | struct GlassMaterial {
| `- note: add '@available' attribute to enclosing struct
18 |
19 | let style: GlassStyle
20 |
21 | var fallbackMaterial: Material {
| `- note: add '@available' attribute to enclosing property
22 | switch style {
23 | case .sheet: return .ultraThinMaterial
:
26 | case .toolbar: return .bar
27 | case .sidebar: return .thickMaterial
28 | case .overlay: return .ultraThickMaterial
| |- error: 'ultraThickMaterial' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
29 | }
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:103:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
101 | // adopted from Xcode 16 too.
102 | #if compiler(>=6.2)
103 | if #available(iOS 26.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
104 | nativeRendering(content, shape: shape)
105 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:97:21: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
94 |
95 | @ViewBuilder
96 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
97 | let shape = RoundedRectangle(cornerRadius: cornerRadius, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 |
99 | // `glassEffect` ships in the iOS 26 SDK (Swift 6.2+). Older
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:103:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
94 |
95 | @ViewBuilder
96 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
97 | let shape = RoundedRectangle(cornerRadius: cornerRadius, style: .continuous)
98 |
:
101 | // adopted from Xcode 16 too.
102 | #if compiler(>=6.2)
103 | if #available(iOS 26.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
104 | nativeRendering(content, shape: shape)
105 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:103:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
94 |
95 | @ViewBuilder
96 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
97 | let shape = RoundedRectangle(cornerRadius: cornerRadius, style: .continuous)
98 |
:
101 | // adopted from Xcode 16 too.
102 | #if compiler(>=6.2)
103 | if #available(iOS 26.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | nativeRendering(content, shape: shape)
105 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:105:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
94 |
95 | @ViewBuilder
96 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
97 | let shape = RoundedRectangle(cornerRadius: cornerRadius, style: .continuous)
98 |
:
103 | if #available(iOS 26.0, *) {
104 | nativeRendering(content, shape: shape)
105 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | fallbackRendering(content, shape: shape)
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:96:46: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
94 |
95 | @ViewBuilder
96 | func body(content: Content) -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
97 | let shape = RoundedRectangle(cornerRadius: cornerRadius, style: .continuous)
98 |
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:120:21: error: 'glassEffect(_:in:)' is only available in macOS 26.0 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
116 | @available(iOS 26.0, *)
117 | @ViewBuilder
118 | private func nativeRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
119 | if let tint {
120 | content.glassEffect(.regular.tint(tint), in: shape)
| |- error: 'glassEffect(_:in:)' is only available in macOS 26.0 or newer
| `- note: add 'if #available' version check
121 | } else {
122 | content.glassEffect(.regular, in: shape)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:119:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
116 | @available(iOS 26.0, *)
117 | @ViewBuilder
118 | private func nativeRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
119 | if let tint {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | content.glassEffect(.regular.tint(tint), in: shape)
121 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:122:21: error: 'glassEffect(_:in:)' is only available in macOS 26.0 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
116 | @available(iOS 26.0, *)
117 | @ViewBuilder
118 | private func nativeRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
119 | if let tint {
120 | content.glassEffect(.regular.tint(tint), in: shape)
121 | } else {
122 | content.glassEffect(.regular, in: shape)
| |- error: 'glassEffect(_:in:)' is only available in macOS 26.0 or newer
| `- note: add 'if #available' version check
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:121:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
116 | @available(iOS 26.0, *)
117 | @ViewBuilder
118 | private func nativeRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
119 | if let tint {
120 | content.glassEffect(.regular.tint(tint), in: shape)
121 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | content.glassEffect(.regular, in: shape)
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:118:92: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
116 | @available(iOS 26.0, *)
117 | @ViewBuilder
118 | private func nativeRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
119 | if let tint {
120 | content.glassEffect(.regular.tint(tint), in: shape)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:132:14: error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
132 | .background {
| |- error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
133 | shape
134 | .fill(material.fallbackMaterial)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:132:25: error: conformance of 'Material' to 'ShapeStyle' is only available in macOS 12.0 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
132 | .background {
| |- error: conformance of 'Material' to 'ShapeStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
133 | shape
134 | .fill(material.fallbackMaterial)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:132:25: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
132 | .background {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
133 | shape
134 | .fill(material.fallbackMaterial)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:132:25: error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
132 | .background {
| |- error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
133 | shape
134 | .fill(material.fallbackMaterial)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:132:25: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
132 | .background {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
133 | shape
134 | .fill(material.fallbackMaterial)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:134:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
132 | .background {
133 | shape
134 | .fill(material.fallbackMaterial)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
135 | .overlay {
136 | if let tint {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:135:22: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
133 | shape
134 | .fill(material.fallbackMaterial)
135 | .overlay {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
136 | if let tint {
137 | shape.fill(tint.opacity(material.tintOpacity))
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:135:30: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
133 | shape
134 | .fill(material.fallbackMaterial)
135 | .overlay {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | if let tint {
137 | shape.fill(tint.opacity(material.tintOpacity))
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:135:30: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
133 | shape
134 | .fill(material.fallbackMaterial)
135 | .overlay {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | if let tint {
137 | shape.fill(tint.opacity(material.tintOpacity))
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:135:30: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
133 | shape
134 | .fill(material.fallbackMaterial)
135 | .overlay {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | if let tint {
137 | shape.fill(tint.opacity(material.tintOpacity))
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:137:29: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
135 | .overlay {
136 | if let tint {
137 | shape.fill(tint.opacity(material.tintOpacity))
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:137:35: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
135 | .overlay {
136 | if let tint {
137 | shape.fill(tint.opacity(material.tintOpacity))
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:137:45: error: 'opacity' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
135 | .overlay {
136 | if let tint {
137 | shape.fill(tint.opacity(material.tintOpacity))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:136:37: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
134 | .fill(material.fallbackMaterial)
135 | .overlay {
136 | if let tint {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 | shape.fill(tint.opacity(material.tintOpacity))
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:136:37: error: 'buildIf' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
134 | .fill(material.fallbackMaterial)
135 | .overlay {
136 | if let tint {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 | shape.fill(tint.opacity(material.tintOpacity))
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:138:25: error: 'buildIf' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
136 | if let tint {
137 | shape.fill(tint.opacity(material.tintOpacity))
138 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | }
140 | .overlay {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:135:30: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
133 | shape
134 | .fill(material.fallbackMaterial)
135 | .overlay {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | if let tint {
137 | shape.fill(tint.opacity(material.tintOpacity))
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:140:22: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
138 | }
139 | }
140 | .overlay {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
141 | shape.strokeBorder(
142 | Color.white.opacity(material.fallbackBorderOpacity),
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:140:30: error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
138 | }
139 | }
140 | .overlay {
| |- error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | shape.strokeBorder(
142 | Color.white.opacity(material.fallbackBorderOpacity),
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:140:30: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
138 | }
139 | }
140 | .overlay {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | shape.strokeBorder(
142 | Color.white.opacity(material.fallbackBorderOpacity),
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:140:30: error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
138 | }
139 | }
140 | .overlay {
| |- error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | shape.strokeBorder(
142 | Color.white.opacity(material.fallbackBorderOpacity),
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:140:30: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
138 | }
139 | }
140 | .overlay {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | shape.strokeBorder(
142 | Color.white.opacity(material.fallbackBorderOpacity),
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:141:25: error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
139 | }
140 | .overlay {
141 | shape.strokeBorder(
| |- error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | Color.white.opacity(material.fallbackBorderOpacity),
143 | lineWidth: 0.5
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:141:25: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
139 | }
140 | .overlay {
141 | shape.strokeBorder(
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | Color.white.opacity(material.fallbackBorderOpacity),
143 | lineWidth: 0.5
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:141:31: error: 'strokeBorder(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
139 | }
140 | .overlay {
141 | shape.strokeBorder(
| |- error: 'strokeBorder(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
142 | Color.white.opacity(material.fallbackBorderOpacity),
143 | lineWidth: 0.5
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:142:29: error: 'Color' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
140 | .overlay {
141 | shape.strokeBorder(
142 | Color.white.opacity(material.fallbackBorderOpacity),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
143 | lineWidth: 0.5
144 | )
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:142:35: error: 'white' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
140 | .overlay {
141 | shape.strokeBorder(
142 | Color.white.opacity(material.fallbackBorderOpacity),
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
143 | lineWidth: 0.5
144 | )
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:142:41: error: 'opacity' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
140 | .overlay {
141 | shape.strokeBorder(
142 | Color.white.opacity(material.fallbackBorderOpacity),
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
143 | lineWidth: 0.5
144 | )
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:140:30: error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
138 | }
139 | }
140 | .overlay {
| |- error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | shape.strokeBorder(
142 | Color.white.opacity(material.fallbackBorderOpacity),
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:140:30: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
138 | }
139 | }
140 | .overlay {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | shape.strokeBorder(
142 | Color.white.opacity(material.fallbackBorderOpacity),
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:146:22: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
144 | )
145 | }
146 | .shadow(
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | color: Color.black.opacity(material.fallbackShadowOpacity),
148 | radius: material.fallbackShadowRadius,
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:147:32: error: 'Color' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
145 | }
146 | .shadow(
147 | color: Color.black.opacity(material.fallbackShadowOpacity),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | radius: material.fallbackShadowRadius,
149 | x: 0,
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:147:38: error: 'black' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
145 | }
146 | .shadow(
147 | color: Color.black.opacity(material.fallbackShadowOpacity),
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | radius: material.fallbackShadowRadius,
149 | x: 0,
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassMaterial.swift:147:44: error: 'opacity' is only available in macOS 10.15 or newer
87 | /// `Material`-based approximation on iOS 17 / 18. All availability checks
88 | /// for the package live in this type.
89 | struct GlassRenderingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
90 |
91 | let style: GlassStyle
:
127 | // MARK: Fallback (iOS 17–18)
128 |
129 | private func fallbackRendering(_ content: Content, shape: RoundedRectangle) -> some View {
| `- note: add '@available' attribute to enclosing instance method
130 | let material = GlassMaterial(style: style)
131 | return content
:
145 | }
146 | .shadow(
147 | color: Color.black.opacity(material.fallbackShadowOpacity),
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | radius: material.fallbackShadowRadius,
149 | x: 0,
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[8/8] Compiling LiquidGlass GlassButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:26:23: error: 'Color' is only available in macOS 10.15 or newer
21 | /// }
22 | /// ```
23 | public struct GlassButton<Label: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
24 |
25 | private let style: GlassStyle
26 | private let tint: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | private let action: () -> Void
28 | private let label: Label
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:39:15: error: 'Color' is only available in macOS 10.15 or newer
21 | /// }
22 | /// ```
23 | public struct GlassButton<Label: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
24 |
25 | private let style: GlassStyle
:
35 | /// - action: The closure invoked when the button is tapped.
36 | /// - label: The button's label.
37 | public init(
| `- note: add '@available' attribute to enclosing initializer
38 | style: GlassStyle = .button,
39 | tint: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
40 | action: @escaping () -> Void,
41 | @ViewBuilder label: () -> Label
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:41:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
21 | /// }
22 | /// ```
23 | public struct GlassButton<Label: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
24 |
25 | private let style: GlassStyle
:
35 | /// - action: The closure invoked when the button is tapped.
36 | /// - label: The button's label.
37 | public init(
| `- note: add '@available' attribute to enclosing initializer
38 | style: GlassStyle = .button,
39 | tint: Color? = nil,
40 | action: @escaping () -> Void,
41 | @ViewBuilder label: () -> Label
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
42 | ) {
43 | self.style = style
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:49:27: error: 'View' is only available in macOS 10.15 or newer
21 | /// }
22 | /// ```
23 | public struct GlassButton<Label: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
24 |
25 | private let style: GlassStyle
:
47 | }
48 |
49 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
50 | Button(action: action) {
51 | label
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:23:34: error: 'View' is only available in macOS 10.15 or newer
21 | /// }
22 | /// ```
23 | public struct GlassButton<Label: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
24 |
25 | private let style: GlassStyle
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:62:15: error: 'Color' is only available in macOS 10.15 or newer
57 | // MARK: - GlassButtonStyle
58 |
59 | private struct GlassButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
60 |
61 | let style: GlassStyle
62 | let tint: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
63 |
64 | func makeBody(configuration: Configuration) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:64:57: error: 'View' is only available in macOS 10.15 or newer
57 | // MARK: - GlassButtonStyle
58 |
59 | private struct GlassButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
60 |
61 | let style: GlassStyle
62 | let tint: Color?
63 |
64 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
65 | configuration.label
66 | .font(.body.weight(.semibold))
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:78:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
76 | // MARK: - Previews
77 |
78 | #Preview("Button — default") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
79 | ZStack {
80 | LinearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:79:5: error: 'ZStack' is only available in macOS 10.15 or newer
77 |
78 | #Preview("Button — default") {
79 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | LinearGradient(
81 | colors: [.indigo, .mint],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:79:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
77 |
78 | #Preview("Button — default") {
79 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | LinearGradient(
81 | colors: [.indigo, .mint],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:79:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
77 |
78 | #Preview("Button — default") {
79 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | LinearGradient(
81 | colors: [.indigo, .mint],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:80:9: error: 'LinearGradient' is only available in macOS 10.15 or newer
78 | #Preview("Button — default") {
79 | ZStack {
80 | LinearGradient(
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | colors: [.indigo, .mint],
82 | startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:81:23: error: 'indigo' is only available in macOS 12.0 or newer
79 | ZStack {
80 | LinearGradient(
81 | colors: [.indigo, .mint],
| |- error: 'indigo' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
82 | startPoint: .topLeading,
83 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:81:32: error: 'mint' is only available in macOS 12.0 or newer
79 | ZStack {
80 | LinearGradient(
81 | colors: [.indigo, .mint],
| |- error: 'mint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
82 | startPoint: .topLeading,
83 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:85:10: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
83 | endPoint: .bottomTrailing
84 | )
85 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
86 |
87 | GlassButton(action: {}) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:87:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
85 | .ignoresSafeArea()
86 |
87 | GlassButton(action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | Text("Continue")
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:87:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
85 | .ignoresSafeArea()
86 |
87 | GlassButton(action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | Text("Continue")
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:87:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
85 | .ignoresSafeArea()
86 |
87 | GlassButton(action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | Text("Continue")
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:88:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
86 |
87 | GlassButton(action: {}) {
88 | Text("Continue")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:88:13: error: 'Text' is only available in macOS 10.15 or newer
86 |
87 | GlassButton(action: {}) {
88 | Text("Continue")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:87:33: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
85 | .ignoresSafeArea()
86 |
87 | GlassButton(action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | Text("Continue")
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:79:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
77 |
78 | #Preview("Button — default") {
79 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | LinearGradient(
81 | colors: [.indigo, .mint],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:93:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
91 | }
92 |
93 | #Preview("Button — tinted") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
94 | ZStack {
95 | LinearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:5: error: 'ZStack' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:94:12: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
92 |
93 | #Preview("Button — tinted") {
94 | ZStack {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | LinearGradient(
96 | colors: [.pink, .purple],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:95:9: error: 'LinearGradient' is only available in macOS 10.15 or newer
93 | #Preview("Button — tinted") {
94 | ZStack {
95 | LinearGradient(
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | colors: [.pink, .purple],
97 | startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:96:23: error: 'pink' is only available in macOS 10.15 or newer
94 | ZStack {
95 | LinearGradient(
96 | colors: [.pink, .purple],
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | startPoint: .topLeading,
98 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:96:30: error: 'purple' is only available in macOS 10.15 or newer
94 | ZStack {
95 | LinearGradient(
96 | colors: [.pink, .purple],
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | startPoint: .topLeading,
98 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:100:10: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
98 | endPoint: .bottomTrailing
99 | )
100 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
101 |
102 | HStack(spacing: 12) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:9: error: 'HStack' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:32: error: 'blue' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:104:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | GlassButton(tint: .red, action: {}) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:104:17: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | GlassButton(tint: .red, action: {}) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:104:17: error: 'Label' is only available in macOS 11.0 or newer
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
| |- error: 'Label' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
105 | }
106 | GlassButton(tint: .red, action: {}) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:104:17: error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
| |- error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
105 | }
106 | GlassButton(tint: .red, action: {}) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:104:23: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | }
106 | GlassButton(tint: .red, action: {}) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:103:50: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
101 |
102 | HStack(spacing: 12) {
103 | GlassButton(tint: .blue, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | Label("Save", systemImage: "checkmark")
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:32: error: 'red' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:107:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
105 | }
106 | GlassButton(tint: .red, action: {}) {
107 | Label("Delete", systemImage: "trash")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:107:17: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
105 | }
106 | GlassButton(tint: .red, action: {}) {
107 | Label("Delete", systemImage: "trash")
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:107:17: error: 'Label' is only available in macOS 11.0 or newer
105 | }
106 | GlassButton(tint: .red, action: {}) {
107 | Label("Delete", systemImage: "trash")
| |- error: 'Label' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:107:17: error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
105 | }
106 | GlassButton(tint: .red, action: {}) {
107 | Label("Delete", systemImage: "trash")
| |- error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:107:23: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
105 | }
106 | GlassButton(tint: .red, action: {}) {
107 | Label("Delete", systemImage: "trash")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:106:49: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
104 | Label("Save", systemImage: "checkmark")
105 | }
106 | GlassButton(tint: .red, action: {}) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | Label("Delete", systemImage: "trash")
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:102:29: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
100 | .ignoresSafeArea()
101 |
102 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | GlassButton(tint: .blue, action: {}) {
104 | Label("Save", systemImage: "checkmark")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:56:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
54 | // MARK: - Previews
55 |
56 | #Preview("Card — default") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
57 | ZStack {
58 | LinearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:57:5: error: 'ZStack' is only available in macOS 10.15 or newer
55 |
56 | #Preview("Card — default") {
57 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | LinearGradient(
59 | colors: [.purple, .blue],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:58:9: error: 'LinearGradient' is only available in macOS 10.15 or newer
56 | #Preview("Card — default") {
57 | ZStack {
58 | LinearGradient(
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | colors: [.purple, .blue],
60 | startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:59:23: error: 'purple' is only available in macOS 10.15 or newer
57 | ZStack {
58 | LinearGradient(
59 | colors: [.purple, .blue],
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | startPoint: .topLeading,
61 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:59:32: error: 'blue' is only available in macOS 10.15 or newer
57 | ZStack {
58 | LinearGradient(
59 | colors: [.purple, .blue],
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | startPoint: .topLeading,
61 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:63:10: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
61 | endPoint: .bottomTrailing
62 | )
63 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
64 |
65 | GlassCard {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:66:13: error: 'VStack' is only available in macOS 10.15 or newer
64 |
65 | GlassCard {
66 | VStack(alignment: .leading, spacing: 8) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text("Glass Card")
68 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:66:32: error: 'leading' is only available in macOS 10.15 or newer
64 |
65 | GlassCard {
66 | VStack(alignment: .leading, spacing: 8) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text("Glass Card")
68 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:67:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
65 | GlassCard {
66 | VStack(alignment: .leading, spacing: 8) {
67 | Text("Glass Card")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .font(.title2.bold())
69 | Text("Default style, no tint.")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:67:17: error: 'Text' is only available in macOS 10.15 or newer
65 | GlassCard {
66 | VStack(alignment: .leading, spacing: 8) {
67 | Text("Glass Card")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .font(.title2.bold())
69 | Text("Default style, no tint.")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:68:22: error: 'font' is only available in macOS 10.15 or newer
66 | VStack(alignment: .leading, spacing: 8) {
67 | Text("Glass Card")
68 | .font(.title2.bold())
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | Text("Default style, no tint.")
70 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:68:28: error: 'title2' is only available in macOS 11.0 or newer
66 | VStack(alignment: .leading, spacing: 8) {
67 | Text("Glass Card")
68 | .font(.title2.bold())
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
69 | Text("Default style, no tint.")
70 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:68:35: error: 'bold()' is only available in macOS 10.15 or newer
66 | VStack(alignment: .leading, spacing: 8) {
67 | Text("Glass Card")
68 | .font(.title2.bold())
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | Text("Default style, no tint.")
70 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:69:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
67 | Text("Glass Card")
68 | .font(.title2.bold())
69 | Text("Default style, no tint.")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .font(.subheadline)
71 | .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:69:17: error: 'Text' is only available in macOS 10.15 or newer
67 | Text("Glass Card")
68 | .font(.title2.bold())
69 | Text("Default style, no tint.")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .font(.subheadline)
71 | .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:70:22: error: 'font' is only available in macOS 10.15 or newer
68 | .font(.title2.bold())
69 | Text("Default style, no tint.")
70 | .font(.subheadline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .foregroundStyle(.secondary)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:70:28: error: 'subheadline' is only available in macOS 10.15 or newer
68 | .font(.title2.bold())
69 | Text("Default style, no tint.")
70 | .font(.subheadline)
| |- error: 'subheadline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .foregroundStyle(.secondary)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:71:22: error: 'foregroundStyle' is only available in macOS 14.0 or newer
69 | Text("Default style, no tint.")
70 | .font(.subheadline)
71 | .foregroundStyle(.secondary)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:71:39: error: 'secondary' is only available in macOS 12.0 or newer
69 | Text("Default style, no tint.")
70 | .font(.subheadline)
71 | .foregroundStyle(.secondary)
| |- error: 'secondary' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:66:53: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
64 |
65 | GlassCard {
66 | VStack(alignment: .leading, spacing: 8) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text("Glass Card")
68 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:66:53: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
64 |
65 | GlassCard {
66 | VStack(alignment: .leading, spacing: 8) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Text("Glass Card")
68 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:74:10: error: 'padding' is only available in macOS 10.15 or newer
72 | }
73 | }
74 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:78:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
76 | }
77 |
78 | #Preview("Card — tinted") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
79 | ZStack {
80 | LinearGradient(
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:79:5: error: 'ZStack' is only available in macOS 10.15 or newer
77 |
78 | #Preview("Card — tinted") {
79 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | LinearGradient(
81 | colors: [.orange, .pink],
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:80:9: error: 'LinearGradient' is only available in macOS 10.15 or newer
78 | #Preview("Card — tinted") {
79 | ZStack {
80 | LinearGradient(
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | colors: [.orange, .pink],
82 | startPoint: .topLeading,
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:81:23: error: 'orange' is only available in macOS 10.15 or newer
79 | ZStack {
80 | LinearGradient(
81 | colors: [.orange, .pink],
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | startPoint: .topLeading,
83 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:81:32: error: 'pink' is only available in macOS 10.15 or newer
79 | ZStack {
80 | LinearGradient(
81 | colors: [.orange, .pink],
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | startPoint: .topLeading,
83 | endPoint: .bottomTrailing
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:85:10: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
83 | endPoint: .bottomTrailing
84 | )
85 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:87:41: error: 'pink' is only available in macOS 10.15 or newer
85 | .ignoresSafeArea()
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:88:13: error: 'VStack' is only available in macOS 10.15 or newer
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | Text("Sheet style")
90 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:88:32: error: 'leading' is only available in macOS 10.15 or newer
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | Text("Sheet style")
90 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:89:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:89:17: error: 'Text' is only available in macOS 10.15 or newer
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:90:22: error: 'font' is only available in macOS 10.15 or newer
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
90 | .font(.title2.bold())
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:90:28: error: 'title2' is only available in macOS 11.0 or newer
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
90 | .font(.title2.bold())
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:90:35: error: 'bold()' is only available in macOS 10.15 or newer
88 | VStack(alignment: .leading, spacing: 8) {
89 | Text("Sheet style")
90 | .font(.title2.bold())
| |- error: 'bold()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:91:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
89 | Text("Sheet style")
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | .font(.subheadline)
93 | .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:91:17: error: 'Text' is only available in macOS 10.15 or newer
89 | Text("Sheet style")
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | .font(.subheadline)
93 | .foregroundStyle(.secondary)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:92:22: error: 'font' is only available in macOS 10.15 or newer
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .foregroundStyle(.secondary)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:92:28: error: 'subheadline' is only available in macOS 10.15 or newer
90 | .font(.title2.bold())
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
| |- error: 'subheadline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .foregroundStyle(.secondary)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:93:22: error: 'foregroundStyle' is only available in macOS 14.0 or newer
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
93 | .foregroundStyle(.secondary)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:93:39: error: 'secondary' is only available in macOS 12.0 or newer
91 | Text("With a pink tint overlay.")
92 | .font(.subheadline)
93 | .foregroundStyle(.secondary)
| |- error: 'secondary' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:88:53: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | Text("Sheet style")
90 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:88:53: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
86 |
87 | GlassCard(style: .sheet, tint: .pink) {
88 | VStack(alignment: .leading, spacing: 8) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | Text("Sheet style")
90 | .font(.title2.bold())
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassCard.swift:96:10: error: 'padding' is only available in macOS 10.15 or newer
94 | }
95 | }
96 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:50:9: error: 'Button' is only available in macOS 10.15 or newer
21 | /// }
22 | /// ```
23 | public struct GlassButton<Label: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
24 |
25 | private let style: GlassStyle
:
47 | }
48 |
49 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
50 | Button(action: action) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | label
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:53:10: error: 'buttonStyle' is only available in macOS 10.15 or newer
21 | /// }
22 | /// ```
23 | public struct GlassButton<Label: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
24 |
25 | private let style: GlassStyle
:
47 | }
48 |
49 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
50 | Button(action: action) {
51 | label
52 | }
53 | .buttonStyle(GlassButtonStyle(style: style, tint: tint))
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:66:14: error: 'font' is only available in macOS 10.15 or newer
57 | // MARK: - GlassButtonStyle
58 |
59 | private struct GlassButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
60 |
61 | let style: GlassStyle
62 | let tint: Color?
63 |
64 | func makeBody(configuration: Configuration) -> some View {
| `- note: add '@available' attribute to enclosing instance method
65 | configuration.label
66 | .font(.body.weight(.semibold))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .padding(.horizontal, 18)
68 | .padding(.vertical, 10)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:66:20: error: 'body' is only available in macOS 10.15 or newer
57 | // MARK: - GlassButtonStyle
58 |
59 | private struct GlassButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
60 |
61 | let style: GlassStyle
62 | let tint: Color?
63 |
64 | func makeBody(configuration: Configuration) -> some View {
| `- note: add '@available' attribute to enclosing instance method
65 | configuration.label
66 | .font(.body.weight(.semibold))
| |- error: 'body' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .padding(.horizontal, 18)
68 | .padding(.vertical, 10)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:66:25: error: 'weight' is only available in macOS 10.15 or newer
57 | // MARK: - GlassButtonStyle
58 |
59 | private struct GlassButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
60 |
61 | let style: GlassStyle
62 | let tint: Color?
63 |
64 | func makeBody(configuration: Configuration) -> some View {
| `- note: add '@available' attribute to enclosing instance method
65 | configuration.label
66 | .font(.body.weight(.semibold))
| |- error: 'weight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .padding(.horizontal, 18)
68 | .padding(.vertical, 10)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:67:14: error: 'padding' is only available in macOS 10.15 or newer
57 | // MARK: - GlassButtonStyle
58 |
59 | private struct GlassButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
60 |
61 | let style: GlassStyle
62 | let tint: Color?
63 |
64 | func makeBody(configuration: Configuration) -> some View {
| `- note: add '@available' attribute to enclosing instance method
65 | configuration.label
66 | .font(.body.weight(.semibold))
67 | .padding(.horizontal, 18)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .padding(.vertical, 10)
69 | .glass(style: style, tint: tint)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:68:14: error: 'padding' is only available in macOS 10.15 or newer
57 | // MARK: - GlassButtonStyle
58 |
59 | private struct GlassButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
60 |
61 | let style: GlassStyle
62 | let tint: Color?
63 |
64 | func makeBody(configuration: Configuration) -> some View {
| `- note: add '@available' attribute to enclosing instance method
65 | configuration.label
66 | .font(.body.weight(.semibold))
67 | .padding(.horizontal, 18)
68 | .padding(.vertical, 10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .glass(style: style, tint: tint)
70 | .scaleEffect(configuration.isPressed ? 0.96 : 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:70:14: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
57 | // MARK: - GlassButtonStyle
58 |
59 | private struct GlassButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
60 |
61 | let style: GlassStyle
62 | let tint: Color?
63 |
64 | func makeBody(configuration: Configuration) -> some View {
| `- note: add '@available' attribute to enclosing instance method
65 | configuration.label
66 | .font(.body.weight(.semibold))
:
68 | .padding(.vertical, 10)
69 | .glass(style: style, tint: tint)
70 | .scaleEffect(configuration.isPressed ? 0.96 : 1.0)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .opacity(configuration.isPressed ? 0.85 : 1.0)
72 | .animation(.easeOut(duration: 0.15), value: configuration.isPressed)
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:71:14: error: 'opacity' is only available in macOS 10.15 or newer
57 | // MARK: - GlassButtonStyle
58 |
59 | private struct GlassButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
60 |
61 | let style: GlassStyle
62 | let tint: Color?
63 |
64 | func makeBody(configuration: Configuration) -> some View {
| `- note: add '@available' attribute to enclosing instance method
65 | configuration.label
66 | .font(.body.weight(.semibold))
:
69 | .glass(style: style, tint: tint)
70 | .scaleEffect(configuration.isPressed ? 0.96 : 1.0)
71 | .opacity(configuration.isPressed ? 0.85 : 1.0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .animation(.easeOut(duration: 0.15), value: configuration.isPressed)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:72:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
57 | // MARK: - GlassButtonStyle
58 |
59 | private struct GlassButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
60 |
61 | let style: GlassStyle
62 | let tint: Color?
63 |
64 | func makeBody(configuration: Configuration) -> some View {
| `- note: add '@available' attribute to enclosing instance method
65 | configuration.label
66 | .font(.body.weight(.semibold))
:
70 | .scaleEffect(configuration.isPressed ? 0.96 : 1.0)
71 | .opacity(configuration.isPressed ? 0.85 : 1.0)
72 | .animation(.easeOut(duration: 0.15), value: configuration.isPressed)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiquidGlass/GlassButton.swift:72:25: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
57 | // MARK: - GlassButtonStyle
58 |
59 | private struct GlassButtonStyle: ButtonStyle {
| `- note: add '@available' attribute to enclosing struct
60 |
61 | let style: GlassStyle
62 | let tint: Color?
63 |
64 | func makeBody(configuration: Configuration) -> some View {
| `- note: add '@available' attribute to enclosing instance method
65 | configuration.label
66 | .font(.body.weight(.semibold))
:
70 | .scaleEffect(configuration.isPressed ? 0.96 : 1.0)
71 | .opacity(configuration.isPressed ? 0.85 : 1.0)
72 | .animation(.easeOut(duration: 0.15), value: configuration.isPressed)
| |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | }
74 | }
BUILD FAILURE 6.2 macosSpm