Build Information
Failed to build ActionSheetCard, reference 0.3.0 (5e9a3c), with Swift 6.3 for macOS (SPM) on 12 Apr 2026 07:27:28 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mahmudahsan/SwiftUI-Action-Sheet-Card.git
Reference: 0.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mahmudahsan/SwiftUI-Action-Sheet-Card
* tag 0.3.0 -> FETCH_HEAD
HEAD is now at 5e9a3cc Update ContentView.swift
Cloned https://github.com/mahmudahsan/SwiftUI-Action-Sheet-Card.git
Revision (git rev-parse @):
5e9a3ccef5297ded1af74406467322e8fb255b47
SUCCESS checkout https://github.com/mahmudahsan/SwiftUI-Action-Sheet-Card.git at 0.3.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swiftui-action-sheet-card",
"name": "ActionSheetCard",
"url": "https://github.com/mahmudahsan/SwiftUI-Action-Sheet-Card.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUI-Action-Sheet-Card",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/mahmudahsan/SwiftUI-Action-Sheet-Card.git
[2/199] Fetching swiftui-action-sheet-card
Fetched https://github.com/mahmudahsan/SwiftUI-Action-Sheet-Card.git from cache (1.04s)
Creating working copy for https://github.com/mahmudahsan/SwiftUI-Action-Sheet-Card.git
Working copy of https://github.com/mahmudahsan/SwiftUI-Action-Sheet-Card.git resolved at 0.3.0 (5e9a3cc)
warning: '.resolve-product-dependencies': dependency 'swiftui-action-sheet-card' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/mahmudahsan/SwiftUI-Action-Sheet-Card.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling ActionSheetCard ActionSheetCardItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:35:20: error: 'Font' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
33 | let iconTrailingPadding: CGFloat?
34 | let label: String
35 | let labelFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
36 | let foregrounColor: Color
37 | let foregroundInactiveColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:36:25: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
34 | let label: String
35 | let labelFont: Font
36 | let foregrounColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
37 | let foregroundInactiveColor: Color
38 | let callback: (() -> ())?
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:37:34: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
35 | let labelFont: Font
36 | let foregrounColor: Color
37 | let foregroundInactiveColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
38 | let callback: (() -> ())?
39 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:47:20: error: 'Font' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
45 | iconTrailingPadding: CGFloat? = nil,
46 | label: String,
47 | labelFont: Font = Font.headline,
| `- error: 'Font' is only available in macOS 10.15 or newer
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:48:25: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
46 | label: String,
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
49 | foregroundInactiveColor: Color = Color.gray,
50 | callback: (() -> ())? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:49:34: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | callback: (() -> ())? = nil
51 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:47:27: error: 'Font' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
45 | iconTrailingPadding: CGFloat? = nil,
46 | label: String,
47 | labelFont: Font = Font.headline,
| `- error: 'Font' is only available in macOS 10.15 or newer
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:47:32: error: 'headline' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
45 | iconTrailingPadding: CGFloat? = nil,
46 | label: String,
47 | labelFont: Font = Font.headline,
| `- error: 'headline' is only available in macOS 10.15 or newer
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:48:33: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
46 | label: String,
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
49 | foregroundInactiveColor: Color = Color.gray,
50 | callback: (() -> ())? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:48:39: error: 'primary' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
46 | label: String,
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
49 | foregroundInactiveColor: Color = Color.gray,
50 | callback: (() -> ())? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:49:42: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | callback: (() -> ())? = nil
51 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:49:48: error: 'gray' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
| `- error: 'gray' is only available in macOS 10.15 or newer
50 | callback: (() -> ())? = nil
51 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:64:20: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:78:26: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
76 | }
77 |
78 | var buttonView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
79 | HStack (spacing: 0){
80 | icon
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:87:27: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
88 | Group {
89 | if let callback = callback {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:106:31: error: 'View' is only available in macOS 10.15 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:65:9: warning: conformance of 'Group<Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
| |- warning: conformance of 'Group<Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
66 | if let sfSymbolName = systemIconName {
67 | Image(systemName: sfSymbolName)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:65:9: error: 'Group' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | if let sfSymbolName = systemIconName {
67 | Image(systemName: sfSymbolName)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:65:9: error: 'init(content:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | if let sfSymbolName = systemIconName {
67 | Image(systemName: sfSymbolName)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:67:17: error: 'Image' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
67 | Image(systemName: sfSymbolName)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .resizable()
69 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:67:17: error: 'init(systemName:)' is only available in macOS 11.0 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
67 | Image(systemName: sfSymbolName)
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
68 | .resizable()
69 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:68:22: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
67 | Image(systemName: sfSymbolName)
68 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .aspectRatio(contentMode: .fit)
70 | .frame(width:iconSize ?? 19, height: iconSize ?? 19)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:69:22: error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
67 | Image(systemName: sfSymbolName)
68 | .resizable()
69 | .aspectRatio(contentMode: .fit)
| |- error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .frame(width:iconSize ?? 19, height: iconSize ?? 19)
71 | .padding(.vertical, iconVerticalPadding)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:70:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
:
68 | .resizable()
69 | .aspectRatio(contentMode: .fit)
70 | .frame(width:iconSize ?? 19, height: iconSize ?? 19)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .padding(.vertical, iconVerticalPadding)
72 | .padding(.leading, iconLeadingPadding ?? 18)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:71:22: error: 'padding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
:
69 | .aspectRatio(contentMode: .fit)
70 | .frame(width:iconSize ?? 19, height: iconSize ?? 19)
71 | .padding(.vertical, iconVerticalPadding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .padding(.leading, iconLeadingPadding ?? 18)
73 | .padding(.trailing, iconTrailingPadding ?? 13)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:72:22: error: 'padding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
:
70 | .frame(width:iconSize ?? 19, height: iconSize ?? 19)
71 | .padding(.vertical, iconVerticalPadding)
72 | .padding(.leading, iconLeadingPadding ?? 18)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | .padding(.trailing, iconTrailingPadding ?? 13)
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:73:22: error: 'padding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
:
71 | .padding(.vertical, iconVerticalPadding)
72 | .padding(.leading, iconLeadingPadding ?? 18)
73 | .padding(.trailing, iconTrailingPadding ?? 13)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:66:50: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | Image(systemName: sfSymbolName)
68 | .resizable()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:74:13: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
:
72 | .padding(.leading, iconLeadingPadding ?? 18)
73 | .padding(.trailing, iconTrailingPadding ?? 13)
74 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:65:15: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| `- note: add '@available' attribute to enclosing property
65 | Group {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
66 | if let sfSymbolName = systemIconName {
67 | Image(systemName: sfSymbolName)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:79:9: error: 'HStack' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
76 | }
77 |
78 | var buttonView: some View {
| `- note: add '@available' attribute to enclosing property
79 | HStack (spacing: 0){
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | icon
81 | Text(label)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:81:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
76 | }
77 |
78 | var buttonView: some View {
| `- note: add '@available' attribute to enclosing property
79 | HStack (spacing: 0){
80 | icon
81 | Text(label)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
82 | .font(labelFont)
83 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:81:13: error: 'Text' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
76 | }
77 |
78 | var buttonView: some View {
| `- note: add '@available' attribute to enclosing property
79 | HStack (spacing: 0){
80 | icon
81 | Text(label)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .font(labelFont)
83 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:82:18: error: 'font' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
76 | }
77 |
78 | var buttonView: some View {
| `- note: add '@available' attribute to enclosing property
79 | HStack (spacing: 0){
80 | icon
81 | Text(label)
82 | .font(labelFont)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | Spacer()
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:83:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
76 | }
77 |
78 | var buttonView: some View {
| `- note: add '@available' attribute to enclosing property
79 | HStack (spacing: 0){
80 | icon
81 | Text(label)
82 | .font(labelFont)
83 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:83:13: error: 'Spacer' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
76 | }
77 |
78 | var buttonView: some View {
| `- note: add '@available' attribute to enclosing property
79 | HStack (spacing: 0){
80 | icon
81 | Text(label)
82 | .font(labelFont)
83 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:79:28: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
76 | }
77 |
78 | var buttonView: some View {
| `- note: add '@available' attribute to enclosing property
79 | HStack (spacing: 0){
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
80 | icon
81 | Text(label)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:79:28: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
76 | }
77 |
78 | var buttonView: some View {
| `- note: add '@available' attribute to enclosing property
79 | HStack (spacing: 0){
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
80 | icon
81 | Text(label)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:88:9: warning: conformance of 'Group<Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
88 | Group {
| |- warning: conformance of 'Group<Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
89 | if let callback = callback {
90 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:88:9: error: 'Group' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
88 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | if let callback = callback {
90 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:88:9: error: 'init(content:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
88 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | if let callback = callback {
90 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:90:17: error: 'Button' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
88 | Group {
89 | if let callback = callback {
90 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | callback()
92 | }) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:94:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
88 | Group {
89 | if let callback = callback {
:
92 | }) {
93 | buttonView
94 | .foregroundColor(foregrounColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:89:40: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
88 | Group {
89 | if let callback = callback {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | Button(action: {
91 | callback()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:99:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
88 | Group {
89 | if let callback = callback {
:
97 | else {
98 | buttonView
99 | .foregroundColor(foregroundInactiveColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:97:18: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
88 | Group {
89 | if let callback = callback {
:
95 | }
96 | }
97 | else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | buttonView
99 | .foregroundColor(foregroundInactiveColor)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:88:15: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
88 | Group {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
89 | if let callback = callback {
90 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:87:32: warning: conformance of 'Group<Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| | |- warning: conformance of 'Group<Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing property
88 | Group {
89 | if let callback = callback {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:107:9: error: 'VStack' is only available in macOS 10.15 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | Spacer()
109 | VStack (spacing: 0){
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:108:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
109 | VStack (spacing: 0){
110 | ActionSheetCardItem(systemIconName: "play", label: "Play") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:108:13: error: 'Spacer' is only available in macOS 10.15 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | VStack (spacing: 0){
110 | ActionSheetCardItem(systemIconName: "play", label: "Play") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:109:13: error: 'VStack' is only available in macOS 10.15 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
109 | VStack (spacing: 0){
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | ActionSheetCardItem(systemIconName: "play", label: "Play") {
111 | //
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:114:17: error: 'Divider' is only available in macOS 10.15 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
:
112 | }
113 |
114 | Divider()
| |- error: 'Divider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 |
116 | ActionSheetCardItem(systemIconName: "stop", label: "Stop") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:120:17: error: 'Divider' is only available in macOS 10.15 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
:
118 | }
119 |
120 | Divider()
| |- error: 'Divider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 |
122 | ActionSheetCardItem(systemIconName: "record.circle", label: "Record")
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:124:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
:
122 | ActionSheetCardItem(systemIconName: "record.circle", label: "Record")
123 | }
124 | .background(Color.white)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
125 | }
126 | .background(Color.gray)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:124:25: error: 'Color' is only available in macOS 10.15 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
:
122 | ActionSheetCardItem(systemIconName: "record.circle", label: "Record")
123 | }
124 | .background(Color.white)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | }
126 | .background(Color.gray)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:124:31: error: 'white' is only available in macOS 10.15 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
:
122 | ActionSheetCardItem(systemIconName: "record.circle", label: "Record")
123 | }
124 | .background(Color.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | }
126 | .background(Color.gray)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:107:16: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
108 | Spacer()
109 | VStack (spacing: 0){
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:126:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
:
124 | .background(Color.white)
125 | }
126 | .background(Color.gray)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
127 | }
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:126:21: error: 'Color' is only available in macOS 10.15 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
:
124 | .background(Color.white)
125 | }
126 | .background(Color.gray)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | }
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:126:27: error: 'gray' is only available in macOS 10.15 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
:
124 | .background(Color.white)
125 | }
126 | .background(Color.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | }
128 | }
[4/6] Compiling ActionSheetCard GreyOutOfFocusView.swift
/Users/admin/builder/spi-builder-workspace/Sources/GreyOutOfFocusView.swift:39:24: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct GreyOutOfFocusView: View {
| `- note: add '@available' attribute to enclosing struct
28 | let opacity: CGFloat
29 | let callback: (() -> ())?
:
37 | }
38 |
39 | var greyView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
40 | Rectangle()
41 | .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height)
/Users/admin/builder/spi-builder-workspace/Sources/GreyOutOfFocusView.swift:50:27: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct GreyOutOfFocusView: View {
| `- note: add '@available' attribute to enclosing struct
28 | let opacity: CGFloat
29 | let callback: (() -> ())?
:
48 | }
49 |
50 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
51 | greyView
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/GreyOutOfFocusView.swift:56:31: error: 'View' is only available in macOS 10.15 or newer
53 | }
54 |
55 | struct GreyOutOfFocusView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
56 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
57 | GreyOutOfFocusView()
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/GreyOutOfFocusView.swift:41:27: error: cannot find 'UIScreen' in scope
39 | var greyView: some View {
40 | Rectangle()
41 | .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height)
| `- error: cannot find 'UIScreen' in scope
42 | .background(Color.gray)
43 | .opacity(Double(opacity))
/Users/admin/builder/spi-builder-workspace/Sources/GreyOutOfFocusView.swift:41:63: error: cannot find 'UIScreen' in scope
39 | var greyView: some View {
40 | Rectangle()
41 | .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height)
| `- error: cannot find 'UIScreen' in scope
42 | .background(Color.gray)
43 | .opacity(Double(opacity))
[5/6] Emitting module ActionSheetCard
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:29:25: error: cannot find 'UIScreen' in scope
27 |
28 | public struct ActionSheetCard: View {
29 | @State var offset = UIScreen.main.bounds.height
| `- error: cannot find 'UIScreen' in scope
30 | @Binding var isShowing: Bool
31 | @State var isDragging = false
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:29:6: error: 'State' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
| `- error: 'State' is only available in macOS 10.15 or newer
30 | @Binding var isShowing: Bool
31 | @State var isDragging = false
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:30:6: error: 'Binding' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
31 | @State var isDragging = false
32 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:31:6: error: 'State' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
31 | @State var isDragging = false
| `- error: 'State' is only available in macOS 10.15 or newer
32 |
33 | let items: [ActionSheetCardItem]
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:34:29: error: cannot find 'UIScreen' in scope
32 |
33 | let items: [ActionSheetCardItem]
34 | let heightToDisappear = UIScreen.main.bounds.height
| `- error: cannot find 'UIScreen' in scope
35 | let cellHeight: CGFloat = 50
36 | let backgroundColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:36:26: error: 'Color' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
34 | let heightToDisappear = UIScreen.main.bounds.height
35 | let cellHeight: CGFloat = 50
36 | let backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
37 | let outOfFocusOpacity: CGFloat
38 | let minimumDragDistanceToHide: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:42:20: error: 'Binding' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
39 | let itemsSpacing: CGFloat
40 |
41 | public init(
| `- note: add '@available' attribute to enclosing initializer
42 | isShowing: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
43 | items: [ActionSheetCardItem],
44 | backgroundColor: Color = Color.white,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:44:26: error: 'Color' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
39 | let itemsSpacing: CGFloat
40 |
41 | public init(
| `- note: add '@available' attribute to enclosing initializer
42 | isShowing: Binding<Bool>,
43 | items: [ActionSheetCardItem],
44 | backgroundColor: Color = Color.white,
| `- error: 'Color' is only available in macOS 10.15 or newer
45 | outOfFocusOpacity: CGFloat = 0.7,
46 | minimumDragDistanceToHide: CGFloat = 150,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:44:34: error: 'Color' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
39 | let itemsSpacing: CGFloat
40 |
41 | public init(
| `- note: add '@available' attribute to enclosing initializer
42 | isShowing: Binding<Bool>,
43 | items: [ActionSheetCardItem],
44 | backgroundColor: Color = Color.white,
| `- error: 'Color' is only available in macOS 10.15 or newer
45 | outOfFocusOpacity: CGFloat = 0.7,
46 | minimumDragDistanceToHide: CGFloat = 150,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:44:40: error: 'white' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
39 | let itemsSpacing: CGFloat
40 |
41 | public init(
| `- note: add '@available' attribute to enclosing initializer
42 | isShowing: Binding<Bool>,
43 | items: [ActionSheetCardItem],
44 | backgroundColor: Color = Color.white,
| `- error: 'white' is only available in macOS 10.15 or newer
45 | outOfFocusOpacity: CGFloat = 0.7,
46 | minimumDragDistanceToHide: CGFloat = 150,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:63:32: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
61 | }
62 |
63 | var topHalfMiddleBar: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
64 | Capsule()
65 | .frame(width: 36, height: 5)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:71:25: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:84:39: error: 'DragGesture' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
82 | }
83 |
84 | func dragGestureOnChange(_ value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
85 | isDragging = true
86 | if value.translation.height > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:100:34: error: 'Gesture' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
98 | }
99 |
100 | var interactiveGesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
101 | DragGesture()
102 | .onChanged({ (value) in
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:110:30: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
108 | }
109 |
110 | var outOfFocusArea: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
111 | Group {
112 | if isShowing {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:120:25: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
118 | }
119 |
120 | var sheetView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
121 | VStack {
122 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:139:26: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
137 | }
138 |
139 | var bodyContet: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
140 | ZStack {
141 | outOfFocusArea
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:156:27: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
154 | }
155 |
156 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
157 | Group {
158 | if isShowing {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:170:31: error: 'View' is only available in macOS 10.15 or newer
167 | }
168 |
169 | struct ActionSheetCard_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
170 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
171 | VStack {
172 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:35:20: error: 'Font' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
33 | let iconTrailingPadding: CGFloat?
34 | let label: String
35 | let labelFont: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
36 | let foregrounColor: Color
37 | let foregroundInactiveColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:36:25: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
34 | let label: String
35 | let labelFont: Font
36 | let foregrounColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
37 | let foregroundInactiveColor: Color
38 | let callback: (() -> ())?
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:37:34: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
35 | let labelFont: Font
36 | let foregrounColor: Color
37 | let foregroundInactiveColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
38 | let callback: (() -> ())?
39 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:47:20: error: 'Font' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
45 | iconTrailingPadding: CGFloat? = nil,
46 | label: String,
47 | labelFont: Font = Font.headline,
| `- error: 'Font' is only available in macOS 10.15 or newer
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:48:25: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
46 | label: String,
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
49 | foregroundInactiveColor: Color = Color.gray,
50 | callback: (() -> ())? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:49:34: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | callback: (() -> ())? = nil
51 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:47:27: error: 'Font' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
45 | iconTrailingPadding: CGFloat? = nil,
46 | label: String,
47 | labelFont: Font = Font.headline,
| `- error: 'Font' is only available in macOS 10.15 or newer
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:47:32: error: 'headline' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
45 | iconTrailingPadding: CGFloat? = nil,
46 | label: String,
47 | labelFont: Font = Font.headline,
| `- error: 'headline' is only available in macOS 10.15 or newer
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:48:33: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
46 | label: String,
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
49 | foregroundInactiveColor: Color = Color.gray,
50 | callback: (() -> ())? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:48:39: error: 'primary' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
46 | label: String,
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
49 | foregroundInactiveColor: Color = Color.gray,
50 | callback: (() -> ())? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:49:42: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | callback: (() -> ())? = nil
51 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:49:48: error: 'gray' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
| `- error: 'gray' is only available in macOS 10.15 or newer
50 | callback: (() -> ())? = nil
51 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:64:20: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
62 | }
63 |
64 | var icon: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
65 | Group {
66 | if let sfSymbolName = systemIconName {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:78:26: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
76 | }
77 |
78 | var buttonView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
79 | HStack (spacing: 0){
80 | icon
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:87:27: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
85 | }
86 |
87 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
88 | Group {
89 | if let callback = callback {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:106:31: error: 'View' is only available in macOS 10.15 or newer
103 | }
104 |
105 | struct ActionSheetCardItem_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
106 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
107 | VStack {
108 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/GreyOutOfFocusView.swift:39:24: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct GreyOutOfFocusView: View {
| `- note: add '@available' attribute to enclosing struct
28 | let opacity: CGFloat
29 | let callback: (() -> ())?
:
37 | }
38 |
39 | var greyView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
40 | Rectangle()
41 | .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height)
/Users/admin/builder/spi-builder-workspace/Sources/GreyOutOfFocusView.swift:50:27: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct GreyOutOfFocusView: View {
| `- note: add '@available' attribute to enclosing struct
28 | let opacity: CGFloat
29 | let callback: (() -> ())?
:
48 | }
49 |
50 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
51 | greyView
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/GreyOutOfFocusView.swift:56:31: error: 'View' is only available in macOS 10.15 or newer
53 | }
54 |
55 | struct GreyOutOfFocusView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
56 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
57 | GreyOutOfFocusView()
58 | }
[6/6] Compiling ActionSheetCard ActionSheetCard.swift
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:29:25: error: cannot find 'UIScreen' in scope
27 |
28 | public struct ActionSheetCard: View {
29 | @State var offset = UIScreen.main.bounds.height
| `- error: cannot find 'UIScreen' in scope
30 | @Binding var isShowing: Bool
31 | @State var isDragging = false
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:29:6: error: 'State' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
| `- error: 'State' is only available in macOS 10.15 or newer
30 | @Binding var isShowing: Bool
31 | @State var isDragging = false
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:30:6: error: 'Binding' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
31 | @State var isDragging = false
32 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:31:6: error: 'State' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
31 | @State var isDragging = false
| `- error: 'State' is only available in macOS 10.15 or newer
32 |
33 | let items: [ActionSheetCardItem]
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:34:29: error: cannot find 'UIScreen' in scope
32 |
33 | let items: [ActionSheetCardItem]
34 | let heightToDisappear = UIScreen.main.bounds.height
| `- error: cannot find 'UIScreen' in scope
35 | let cellHeight: CGFloat = 50
36 | let backgroundColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:36:26: error: 'Color' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
34 | let heightToDisappear = UIScreen.main.bounds.height
35 | let cellHeight: CGFloat = 50
36 | let backgroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
37 | let outOfFocusOpacity: CGFloat
38 | let minimumDragDistanceToHide: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:42:20: error: 'Binding' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
39 | let itemsSpacing: CGFloat
40 |
41 | public init(
| `- note: add '@available' attribute to enclosing initializer
42 | isShowing: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
43 | items: [ActionSheetCardItem],
44 | backgroundColor: Color = Color.white,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:44:26: error: 'Color' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
39 | let itemsSpacing: CGFloat
40 |
41 | public init(
| `- note: add '@available' attribute to enclosing initializer
42 | isShowing: Binding<Bool>,
43 | items: [ActionSheetCardItem],
44 | backgroundColor: Color = Color.white,
| `- error: 'Color' is only available in macOS 10.15 or newer
45 | outOfFocusOpacity: CGFloat = 0.7,
46 | minimumDragDistanceToHide: CGFloat = 150,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:44:34: error: 'Color' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
39 | let itemsSpacing: CGFloat
40 |
41 | public init(
| `- note: add '@available' attribute to enclosing initializer
42 | isShowing: Binding<Bool>,
43 | items: [ActionSheetCardItem],
44 | backgroundColor: Color = Color.white,
| `- error: 'Color' is only available in macOS 10.15 or newer
45 | outOfFocusOpacity: CGFloat = 0.7,
46 | minimumDragDistanceToHide: CGFloat = 150,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:44:40: error: 'white' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
39 | let itemsSpacing: CGFloat
40 |
41 | public init(
| `- note: add '@available' attribute to enclosing initializer
42 | isShowing: Binding<Bool>,
43 | items: [ActionSheetCardItem],
44 | backgroundColor: Color = Color.white,
| `- error: 'white' is only available in macOS 10.15 or newer
45 | outOfFocusOpacity: CGFloat = 0.7,
46 | minimumDragDistanceToHide: CGFloat = 150,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:63:32: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
61 | }
62 |
63 | var topHalfMiddleBar: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
64 | Capsule()
65 | .frame(width: 36, height: 5)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:71:25: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:84:39: error: 'DragGesture' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
82 | }
83 |
84 | func dragGestureOnChange(_ value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
85 | isDragging = true
86 | if value.translation.height > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:100:34: error: 'Gesture' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
98 | }
99 |
100 | var interactiveGesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
101 | DragGesture()
102 | .onChanged({ (value) in
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:110:30: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
108 | }
109 |
110 | var outOfFocusArea: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
111 | Group {
112 | if isShowing {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:120:25: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
118 | }
119 |
120 | var sheetView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
121 | VStack {
122 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:139:26: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
137 | }
138 |
139 | var bodyContet: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
140 | ZStack {
141 | outOfFocusArea
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:156:27: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
154 | }
155 |
156 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
157 | Group {
158 | if isShowing {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:170:31: error: 'View' is only available in macOS 10.15 or newer
167 | }
168 |
169 | struct ActionSheetCard_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
170 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
171 | VStack {
172 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:58:9: error: cannot assign to value: 'offset' is a method
56 |
57 | func hide() {
58 | offset = heightToDisappear
| `- error: cannot assign to value: 'offset' is a method
59 | isDragging = false
60 | isShowing = false
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:59:9: error: setter for 'isDragging' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
55 | }
56 |
57 | func hide() {
| `- note: add '@available' attribute to enclosing instance method
58 | offset = heightToDisappear
59 | isDragging = false
| |- error: setter for 'isDragging' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | isShowing = false
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:60:9: error: setter for 'isShowing' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
55 | }
56 |
57 | func hide() {
| `- note: add '@available' attribute to enclosing instance method
58 | offset = heightToDisappear
59 | isDragging = false
60 | isShowing = false
| |- error: setter for 'isShowing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:64:9: error: 'Capsule' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
61 | }
62 |
63 | var topHalfMiddleBar: some View {
| `- note: add '@available' attribute to enclosing property
64 | Capsule()
| |- error: 'Capsule' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .frame(width: 36, height: 5)
66 | .foregroundColor(Color.black)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:65:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
61 | }
62 |
63 | var topHalfMiddleBar: some View {
| `- note: add '@available' attribute to enclosing property
64 | Capsule()
65 | .frame(width: 36, height: 5)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | .foregroundColor(Color.black)
67 | .padding(.vertical, 5.5)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:66:14: error: 'foregroundColor' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
61 | }
62 |
63 | var topHalfMiddleBar: some View {
| `- note: add '@available' attribute to enclosing property
64 | Capsule()
65 | .frame(width: 36, height: 5)
66 | .foregroundColor(Color.black)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .padding(.vertical, 5.5)
68 | .opacity(0.2)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:66:30: error: 'Color' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
61 | }
62 |
63 | var topHalfMiddleBar: some View {
| `- note: add '@available' attribute to enclosing property
64 | Capsule()
65 | .frame(width: 36, height: 5)
66 | .foregroundColor(Color.black)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .padding(.vertical, 5.5)
68 | .opacity(0.2)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:66:36: error: 'black' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
61 | }
62 |
63 | var topHalfMiddleBar: some View {
| `- note: add '@available' attribute to enclosing property
64 | Capsule()
65 | .frame(width: 36, height: 5)
66 | .foregroundColor(Color.black)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .padding(.vertical, 5.5)
68 | .opacity(0.2)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:67:14: error: 'padding' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
61 | }
62 |
63 | var topHalfMiddleBar: some View {
| `- note: add '@available' attribute to enclosing property
64 | Capsule()
65 | .frame(width: 36, height: 5)
66 | .foregroundColor(Color.black)
67 | .padding(.vertical, 5.5)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .opacity(0.2)
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:68:14: error: 'opacity' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
61 | }
62 |
63 | var topHalfMiddleBar: some View {
| `- note: add '@available' attribute to enclosing property
64 | Capsule()
65 | .frame(width: 36, height: 5)
66 | .foregroundColor(Color.black)
67 | .padding(.vertical, 5.5)
68 | .opacity(0.2)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:72:9: error: 'VStack' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | ForEach(0..<items.count) { index in
74 | if index > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:73:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | if index > 0 {
75 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:73:13: error: 'ForEach' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | if index > 0 {
75 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:73:13: error: 'init(_:content:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | if index > 0 {
75 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:75:21: error: 'Divider' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
74 | if index > 0 {
75 | Divider()
| |- error: 'Divider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 | items[index]
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:74:30: error: 'buildIf' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
74 | if index > 0 {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | Divider()
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:76:17: error: 'buildIf' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
74 | if index > 0 {
75 | Divider()
76 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | items[index]
78 | .frame(height: cellHeight)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:78:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
:
76 | }
77 | items[index]
78 | .frame(height: cellHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | }
80 | Text("").frame(height: 40) // Extra empty space
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:73:38: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | if index > 0 {
75 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:80:13: error: 'Text' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
:
78 | .frame(height: cellHeight)
79 | }
80 | Text("").frame(height: 40) // Extra empty space
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:80:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
:
78 | .frame(height: cellHeight)
79 | }
80 | Text("").frame(height: 40) // Extra empty space
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:72:39: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
69 | }
70 |
71 | var itemsView: some View {
| `- note: add '@available' attribute to enclosing property
72 | VStack (spacing: itemsSpacing){
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
73 | ForEach(0..<items.count) { index in
74 | if index > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:73:31: warning: non-constant range: argument must be an integer literal
71 | var itemsView: some View {
72 | VStack (spacing: itemsSpacing){
73 | ForEach(0..<items.count) { index in
| `- warning: non-constant range: argument must be an integer literal
74 | if index > 0 {
75 | Divider()
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:85:9: error: setter for 'isDragging' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
82 | }
83 |
84 | func dragGestureOnChange(_ value: DragGesture.Value) {
| `- note: add '@available' attribute to enclosing instance method
85 | isDragging = true
| |- error: setter for 'isDragging' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | if value.translation.height > 0 {
87 | offset = value.location.y
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:87:13: error: cannot assign to value: 'offset' is a method
85 | isDragging = true
86 | if value.translation.height > 0 {
87 | offset = value.location.y
| `- error: cannot assign to value: 'offset' is a method
88 | let diff = abs(value.location.y - value.startLocation.y)
89 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:87:37: error: no 'y' candidates produce the expected contextual result type '(CGSize) -> some View'
85 | isDragging = true
86 | if value.translation.height > 0 {
87 | offset = value.location.y
| `- error: no 'y' candidates produce the expected contextual result type '(CGSize) -> some View'
88 | let diff = abs(value.location.y - value.startLocation.y)
89 |
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h:53:13: note: 'y' produces 'CGFloat', not the expected contextual result type '(CGSize) -> some View'
51 | CGPoint {
52 | CGFloat x;
53 | CGFloat y;
| |- note: 'y' produces 'CGFloat', not the expected contextual result type '(CGSize) -> some View'
| `- note: 'y' produces 'CGFloat', not the expected contextual result type '(CGFloat, CGFloat) -> some View'
54 | };
55 | typedef struct CF_BOXABLE CGPoint CGPoint;
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:105:14: warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
98 | }
99 |
100 | var interactiveGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
101 | DragGesture()
102 | .onChanged({ (value) in
103 | dragGestureOnChange(value)
104 | })
105 | .onEnded({ (value) in
| |- warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
106 | isDragging = false
107 | })
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:101:9: error: 'DragGesture' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
98 | }
99 |
100 | var interactiveGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
101 | DragGesture()
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | .onChanged({ (value) in
103 | dragGestureOnChange(value)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:101:9: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
98 | }
99 |
100 | var interactiveGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
101 | DragGesture()
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
102 | .onChanged({ (value) in
103 | dragGestureOnChange(value)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:102:14: error: 'onChanged' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
98 | }
99 |
100 | var interactiveGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
101 | DragGesture()
102 | .onChanged({ (value) in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | dragGestureOnChange(value)
104 | })
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:105:14: error: 'onEnded' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
98 | }
99 |
100 | var interactiveGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
101 | DragGesture()
102 | .onChanged({ (value) in
103 | dragGestureOnChange(value)
104 | })
105 | .onEnded({ (value) in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | isDragging = false
107 | })
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:106:17: error: setter for 'isDragging' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
98 | }
99 |
100 | var interactiveGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
101 | DragGesture()
102 | .onChanged({ (value) in
:
104 | })
105 | .onEnded({ (value) in
106 | isDragging = false
| |- error: setter for 'isDragging' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | })
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:111:9: warning: conformance of 'Group<Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
108 | }
109 |
110 | var outOfFocusArea: some View {
| `- note: add '@available' attribute to enclosing property
111 | Group {
| |- warning: conformance of 'Group<Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
112 | if isShowing {
113 | GreyOutOfFocusView(opacity: outOfFocusOpacity) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:111:9: error: 'Group' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
108 | }
109 |
110 | var outOfFocusArea: some View {
| `- note: add '@available' attribute to enclosing property
111 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | if isShowing {
113 | GreyOutOfFocusView(opacity: outOfFocusOpacity) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:111:9: error: 'init(content:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
108 | }
109 |
110 | var outOfFocusArea: some View {
| `- note: add '@available' attribute to enclosing property
111 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | if isShowing {
113 | GreyOutOfFocusView(opacity: outOfFocusOpacity) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:114:21: error: setter for 'isShowing' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
108 | }
109 |
110 | var outOfFocusArea: some View {
| `- note: add '@available' attribute to enclosing property
111 | Group {
112 | if isShowing {
113 | GreyOutOfFocusView(opacity: outOfFocusOpacity) {
114 | self.isShowing = false
| |- error: setter for 'isShowing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | }
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:112:26: error: 'buildIf' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
108 | }
109 |
110 | var outOfFocusArea: some View {
| `- note: add '@available' attribute to enclosing property
111 | Group {
112 | if isShowing {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | GreyOutOfFocusView(opacity: outOfFocusOpacity) {
114 | self.isShowing = false
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:116:13: error: 'buildIf' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
108 | }
109 |
110 | var outOfFocusArea: some View {
| `- note: add '@available' attribute to enclosing property
111 | Group {
112 | if isShowing {
:
114 | self.isShowing = false
115 | }
116 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:111:15: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
108 | }
109 |
110 | var outOfFocusArea: some View {
| `- note: add '@available' attribute to enclosing property
111 | Group {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
112 | if isShowing {
113 | GreyOutOfFocusView(opacity: outOfFocusOpacity) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:131:24: error: cannot convert value of type '(CGSize) -> some View' to expected argument type 'CGFloat'
129 | .background(backgroundColor)
130 | .cornerRadius(15)
131 | .offset(y: offset)
| `- error: cannot convert value of type '(CGSize) -> some View' to expected argument type 'CGFloat'
132 | .gesture(interactiveGesture)
133 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:140:9: error: 'ZStack' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
137 | }
138 |
139 | var bodyContet: some View {
| `- note: add '@available' attribute to enclosing property
140 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | outOfFocusArea
142 | sheetView
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:152:13: error: cannot assign to value: 'offset' is a method
150 |
151 | DispatchQueue.main.async {
152 | offset = isShowing ? 0 : heightToDisappear
| `- error: cannot assign to value: 'offset' is a method
153 | }
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:152:32: error: cannot assign value of type 'Int' to type '(CGSize) -> some View'
150 |
151 | DispatchQueue.main.async {
152 | offset = isShowing ? 0 : heightToDisappear
| `- error: cannot assign value of type 'Int' to type '(CGSize) -> some View'
153 | }
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:157:9: error: 'Group' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
154 | }
155 |
156 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
157 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | if isShowing {
159 | bodyContet
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:157:9: error: 'init(content:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
154 | }
155 |
156 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
157 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | if isShowing {
159 | bodyContet
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:158:26: error: 'buildIf' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
154 | }
155 |
156 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
157 | Group {
158 | if isShowing {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
159 | bodyContet
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:160:13: error: 'buildIf' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
154 | }
155 |
156 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
157 | Group {
158 | if isShowing {
159 | bodyContet
160 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
161 | }
162 | .animation(.default)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:157:15: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
154 | }
155 |
156 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
157 | Group {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
158 | if isShowing {
159 | bodyContet
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:162:10: error: 'animation' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
154 | }
155 |
156 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
157 | Group {
158 | if isShowing {
:
160 | }
161 | }
162 | .animation(.default)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | .onReceive(Just(isShowing), perform: { isShowing in
164 | onUpdateIsShowing(isShowing)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:162:21: error: 'default' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
154 | }
155 |
156 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
157 | Group {
158 | if isShowing {
:
160 | }
161 | }
162 | .animation(.default)
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | .onReceive(Just(isShowing), perform: { isShowing in
164 | onUpdateIsShowing(isShowing)
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:163:10: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
154 | }
155 |
156 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
157 | Group {
158 | if isShowing {
:
161 | }
162 | .animation(.default)
163 | .onReceive(Just(isShowing), perform: { isShowing in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | onUpdateIsShowing(isShowing)
165 | })
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:163:20: error: 'Just' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | public struct ActionSheetCard: View {
| `- note: add '@available' attribute to enclosing struct
29 | @State var offset = UIScreen.main.bounds.height
30 | @Binding var isShowing: Bool
:
154 | }
155 |
156 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
157 | Group {
158 | if isShowing {
:
161 | }
162 | .animation(.default)
163 | .onReceive(Just(isShowing), perform: { isShowing in
| |- error: 'Just' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | onUpdateIsShowing(isShowing)
165 | })
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:171:9: error: 'VStack' is only available in macOS 10.15 or newer
167 | }
168 |
169 | struct ActionSheetCard_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
170 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
171 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
172 | Spacer()
173 | ActionSheetCard(isShowing: .constant(true),
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:172:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
167 | }
168 |
169 | struct ActionSheetCard_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
170 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
171 | VStack {
172 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
173 | ActionSheetCard(isShowing: .constant(true),
174 | items: [
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:172:13: error: 'Spacer' is only available in macOS 10.15 or newer
167 | }
168 |
169 | struct ActionSheetCard_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
170 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
171 | VStack {
172 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
173 | ActionSheetCard(isShowing: .constant(true),
174 | items: [
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCard.swift:171:16: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
167 | }
168 |
169 | struct ActionSheetCard_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
170 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
171 | VStack {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
172 | Spacer()
173 | ActionSheetCard(isShowing: .constant(true),
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:47:27: error: 'Font' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
45 | iconTrailingPadding: CGFloat? = nil,
46 | label: String,
47 | labelFont: Font = Font.headline,
| `- error: 'Font' is only available in macOS 10.15 or newer
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:47:32: error: 'headline' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
45 | iconTrailingPadding: CGFloat? = nil,
46 | label: String,
47 | labelFont: Font = Font.headline,
| `- error: 'headline' is only available in macOS 10.15 or newer
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:48:33: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
46 | label: String,
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
| `- error: 'Color' is only available in macOS 10.15 or newer
49 | foregroundInactiveColor: Color = Color.gray,
50 | callback: (() -> ())? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:48:39: error: 'primary' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
46 | label: String,
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
| `- error: 'primary' is only available in macOS 10.15 or newer
49 | foregroundInactiveColor: Color = Color.gray,
50 | callback: (() -> ())? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:49:42: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | callback: (() -> ())? = nil
51 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionSheetCardItem.swift:49:48: error: 'gray' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | public struct ActionSheetCardItem: View {
| `- note: add '@available' attribute to enclosing struct
28 | let id = UUID()
29 | let systemIconName: String?
:
38 | let callback: (() -> ())?
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | systemIconName: String? = nil,
42 | iconSize: CGFloat? = nil,
:
47 | labelFont: Font = Font.headline,
48 | foregrounColor: Color = Color.primary,
49 | foregroundInactiveColor: Color = Color.gray,
| `- error: 'gray' is only available in macOS 10.15 or newer
50 | callback: (() -> ())? = nil
51 | ) {
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Resources': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Demo': File not found.
BUILD FAILURE 6.3 macosSpm