Build Information
Failed to build EffectsLibrary, reference 1.0.0 (09ebd8
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 23:57:11 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
21 | FireworksContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:28:31: error: 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
28 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
29 | FireworksView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:20:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | public struct FireworksView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | private var config: FireworksConfig
:
17 | }
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | FireworksContainerView(proxy: proxy, config: config)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:23:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | public struct FireworksView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | private var config: FireworksConfig
:
17 | }
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
21 | FireworksContainerView(proxy: proxy, config: config)
22 | }
23 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | }
[28/46] Compiling EffectsLibrary FireScene.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireContainerView.swift:13:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
14 | var config: FireConfig
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireContainerView.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireConfig
15 |
16 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | SpriteView(
18 | scene: createScene(of: proxy.size),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireContainerView.swift:17:9: error: 'SpriteView' is only available in macOS 11.0 or newer
9 | import SpriteKit
10 |
11 | struct FireContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireConfig
15 |
16 | var body: some View {
| `- note: add @available attribute to enclosing property
17 | SpriteView(
| |- error: 'SpriteView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireScene.swift:18:27: error: cannot find 'UIColor' in scope
16 | super.init(size: size)
17 |
18 | backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:26:16: error: cannot find type 'UIColor' in scope
24 |
25 | extension Content {
26 | var color: UIColor? {
| `- error: cannot find type 'UIColor' in scope
27 | switch self {
28 | case let .image(_, color?, _),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:19:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | public struct FireworksView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | private var config: FireworksConfig
:
17 | }
18 |
19 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
21 | FireworksContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:28:31: error: 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
28 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
29 | FireworksView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:20:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | public struct FireworksView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | private var config: FireworksConfig
:
17 | }
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | FireworksContainerView(proxy: proxy, config: config)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:23:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | public struct FireworksView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | private var config: FireworksConfig
:
17 | }
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
21 | FireworksContainerView(proxy: proxy, config: config)
22 | }
23 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | }
[29/46] Compiling EffectsLibrary FireworksView.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireContainerView.swift:13:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
14 | var config: FireConfig
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireContainerView.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireConfig
15 |
16 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | SpriteView(
18 | scene: createScene(of: proxy.size),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireContainerView.swift:17:9: error: 'SpriteView' is only available in macOS 11.0 or newer
9 | import SpriteKit
10 |
11 | struct FireContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireConfig
15 |
16 | var body: some View {
| `- note: add @available attribute to enclosing property
17 | SpriteView(
| |- error: 'SpriteView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireScene.swift:18:27: error: cannot find 'UIColor' in scope
16 | super.init(size: size)
17 |
18 | backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:26:16: error: cannot find type 'UIColor' in scope
24 |
25 | extension Content {
26 | var color: UIColor? {
| `- error: cannot find type 'UIColor' in scope
27 | switch self {
28 | case let .image(_, color?, _),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:19:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | public struct FireworksView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | private var config: FireworksConfig
:
17 | }
18 |
19 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
21 | FireworksContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:28:31: error: 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
28 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
29 | FireworksView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:20:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | public struct FireworksView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | private var config: FireworksConfig
:
17 | }
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | FireworksContainerView(proxy: proxy, config: config)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:23:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | public struct FireworksView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | private var config: FireworksConfig
:
17 | }
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
21 | FireworksContainerView(proxy: proxy, config: config)
22 | }
23 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | }
[30/46] Compiling EffectsLibrary FireworksConfig+DefaultValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireContainerView.swift:13:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
14 | var config: FireConfig
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireContainerView.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireConfig
15 |
16 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | SpriteView(
18 | scene: createScene(of: proxy.size),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireContainerView.swift:17:9: error: 'SpriteView' is only available in macOS 11.0 or newer
9 | import SpriteKit
10 |
11 | struct FireContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireConfig
15 |
16 | var body: some View {
| `- note: add @available attribute to enclosing property
17 | SpriteView(
| |- error: 'SpriteView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/View/FireScene.swift:18:27: error: cannot find 'UIColor' in scope
16 | super.init(size: size)
17 |
18 | backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:26:16: error: cannot find type 'UIColor' in scope
24 |
25 | extension Content {
26 | var color: UIColor? {
| `- error: cannot find type 'UIColor' in scope
27 | switch self {
28 | case let .image(_, color?, _),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:19:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | public struct FireworksView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | private var config: FireworksConfig
:
17 | }
18 |
19 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
21 | FireworksContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:28:31: error: 'View' is only available in macOS 10.15 or newer
25 | }
26 |
27 | struct SwiftUIView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
28 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
29 | FireworksView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:20:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | public struct FireworksView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | private var config: FireworksConfig
:
17 | }
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | FireworksContainerView(proxy: proxy, config: config)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/FireworksView.swift:23:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | public struct FireworksView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | private var config: FireworksConfig
:
17 | }
18 |
19 | public var body: some View {
| `- note: add @available attribute to enclosing property
20 | GeometryReader { proxy in
21 | FireworksContainerView(proxy: proxy, config: config)
22 | }
23 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | }
[31/46] Compiling EffectsLibrary SmokeView.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SmokeContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct SmokeView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
27 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
28 | SmokeView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | SmokeContainerView(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SmokeContainerView(proxy: proxy, config: config)
21 | }
22 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:13:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
14 | var config: SmokeConfig
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: SmokeConfig
15 |
16 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | SpriteView(
18 | scene: createScene(of: proxy.size),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:17:9: error: 'SpriteView' is only available in macOS 11.0 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: SmokeConfig
15 |
16 | var body: some View {
| `- note: add @available attribute to enclosing property
17 | SpriteView(
| |- error: 'SpriteView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeScene.swift:18:27: error: cannot find 'UIColor' in scope
16 | super.init(size: size)
17 |
18 | backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
[32/46] Compiling EffectsLibrary SmokeContainerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SmokeContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct SmokeView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
27 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
28 | SmokeView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | SmokeContainerView(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SmokeContainerView(proxy: proxy, config: config)
21 | }
22 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:13:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
14 | var config: SmokeConfig
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: SmokeConfig
15 |
16 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | SpriteView(
18 | scene: createScene(of: proxy.size),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:17:9: error: 'SpriteView' is only available in macOS 11.0 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: SmokeConfig
15 |
16 | var body: some View {
| `- note: add @available attribute to enclosing property
17 | SpriteView(
| |- error: 'SpriteView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeScene.swift:18:27: error: cannot find 'UIColor' in scope
16 | super.init(size: size)
17 |
18 | backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
[33/46] Compiling EffectsLibrary SmokeScene.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SmokeContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct SmokeView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
27 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
28 | SmokeView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | SmokeContainerView(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SmokeContainerView(proxy: proxy, config: config)
21 | }
22 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:13:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
14 | var config: SmokeConfig
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: SmokeConfig
15 |
16 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | SpriteView(
18 | scene: createScene(of: proxy.size),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:17:9: error: 'SpriteView' is only available in macOS 11.0 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: SmokeConfig
15 |
16 | var body: some View {
| `- note: add @available attribute to enclosing property
17 | SpriteView(
| |- error: 'SpriteView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeScene.swift:18:27: error: cannot find 'UIColor' in scope
16 | super.init(size: size)
17 |
18 | backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
[34/46] Compiling EffectsLibrary SnowConfig+DefaultValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SmokeContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct SmokeView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
27 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
28 | SmokeView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | SmokeContainerView(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/SmokeView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SmokeView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SmokeConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SmokeContainerView(proxy: proxy, config: config)
21 | }
22 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:13:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
14 | var config: SmokeConfig
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: SmokeConfig
15 |
16 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | SpriteView(
18 | scene: createScene(of: proxy.size),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeContainerView.swift:17:9: error: 'SpriteView' is only available in macOS 11.0 or newer
9 | import SpriteKit
10 |
11 | struct SmokeContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: SmokeConfig
15 |
16 | var body: some View {
| `- note: add @available attribute to enclosing property
17 | SpriteView(
| |- error: 'SpriteView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SmokeEffect/View/SmokeScene.swift:18:27: error: cannot find 'UIColor' in scope
16 | super.init(size: size)
17 |
18 | backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
[35/46] Compiling EffectsLibrary Content.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:20:23: error: cannot find type 'UIColor' in scope
18 | }
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
21 | case image(UIImage, UIColor?, CGFloat = 1)
22 | case emoji(Character, CGFloat = 1)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:26:16: error: cannot find type 'UIColor' in scope
24 |
25 | extension Content {
26 | var color: UIColor? {
| `- error: cannot find type 'UIColor' in scope
27 | switch self {
28 | case let .image(_, color?, _),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:80:40: error: cannot find type 'UIImage' in scope
78 | }
79 |
80 | func image(with color: UIColor) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
81 | let rect = CGRect(origin: .zero, size: CGSize(width: 12.0, height: 12.0))
82 | return UIGraphicsImageRenderer(size: rect.size).image { context in
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:80:28: error: cannot find type 'UIColor' in scope
78 | }
79 |
80 | func image(with color: UIColor) -> UIImage {
| `- error: cannot find type 'UIColor' in scope
81 | let rect = CGRect(origin: .zero, size: CGSize(width: 12.0, height: 12.0))
82 | return UIGraphicsImageRenderer(size: rect.size).image { context in
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:91:72: error: cannot find type 'UIImage' in scope
89 |
90 | extension String {
91 | func image(with font: UIFont = UIFont.systemFont(ofSize: 16.0)) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
92 | let string = NSString(string: "\(self)")
93 | let attributes: [NSAttributedString.Key: Any] = [
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:91:27: error: cannot find type 'UIFont' in scope
89 |
90 | extension String {
91 | func image(with font: UIFont = UIFont.systemFont(ofSize: 16.0)) -> UIImage {
| `- error: cannot find type 'UIFont' in scope
92 | let string = NSString(string: "\(self)")
93 | let attributes: [NSAttributedString.Key: Any] = [
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:28:33: error: '?' pattern cannot match values of type '<<error type>>'
26 | var color: UIColor? {
27 | switch self {
28 | case let .image(_, color?, _),
| `- error: '?' pattern cannot match values of type '<<error type>>'
29 | let .shape(_, color?, _):
30 | return color
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:29:32: error: '?' pattern cannot match values of type '<<error type>>'
27 | switch self {
28 | case let .image(_, color?, _),
29 | let .shape(_, color?, _):
| `- error: '?' pattern cannot match values of type '<<error type>>'
30 | return color
31 | default:
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:10:36: error: cannot find type 'UIViewRepresentable' in scope
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
11 |
12 | associatedtype Config: EmitterLayerConfig
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:14:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- note: add @available attribute to enclosing protocol
11 |
12 | associatedtype Config: EmitterLayerConfig
13 |
14 | var proxy: GeometryProxy { get }
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
15 | var config: Config { get }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:20:26: error: cannot find type 'UIView' in scope
18 | var viewRenderMode: CAEmitterLayerRenderMode { get }
19 |
20 | func createView() -> UIView
| `- error: cannot find type 'UIView' in scope
21 | func createBaseView() -> UIView
22 | func createBaseLayer() -> CAEmitterLayer
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:21:30: error: cannot find type 'UIView' in scope
19 |
20 | func createView() -> UIView
21 | func createBaseView() -> UIView
| `- error: cannot find type 'UIView' in scope
22 | func createBaseLayer() -> CAEmitterLayer
23 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:47: error: cannot find type 'UIView' in scope
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'UIView' in scope
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:42: error: 'some' types are only permitted in properties, subscripts, and functions
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:30: error: cannot find type 'Context' in scope
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'Context' in scope
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:32:33: error: cannot find type 'UIViewType' in scope
30 | }
31 |
32 | func updateUIView(_ uiView: UIViewType, context: Context) {
| `- error: cannot find type 'UIViewType' in scope
33 | // Todo
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:32:54: error: cannot find type 'Context' in scope
30 | }
31 |
32 | func updateUIView(_ uiView: UIViewType, context: Context) {
| `- error: cannot find type 'Context' in scope
33 | // Todo
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:57:26: error: cannot find type 'UIView' in scope
55 | extension EffectsViewRepresentable {
56 |
57 | func createView() -> UIView {
| `- error: cannot find type 'UIView' in scope
58 | let baseView = createBaseView()
59 | let baseLayer = createBaseLayer()
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:71:30: error: cannot find type 'UIView' in scope
69 | }
70 |
71 | func createBaseView() -> UIView {
| `- error: cannot find type 'UIView' in scope
72 | let baseView = UIView()
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:72:24: error: cannot find 'UIView' in scope
70 |
71 | func createBaseView() -> UIView {
72 | let baseView = UIView()
| `- error: cannot find 'UIView' in scope
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
74 | baseView.clipsToBounds = config.clipsToBounds
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:73:36: error: cannot find 'UIColor' in scope
71 | func createBaseView() -> UIView {
72 | let baseView = UIView()
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
74 | baseView.clipsToBounds = config.clipsToBounds
75 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:84:42: error: cannot find 'UIColor' in scope
82 | containerLayer.bounds = CGRect(x: 0, y: 0, width: proxy.size.width, height: proxy.size.height)
83 | containerLayer.anchorPoint = CGPoint(x: 0, y: 0)
84 | containerLayer.backgroundColor = UIColor(config.backgroundColor).cgColor
| `- error: cannot find 'UIColor' in scope
85 | containerLayer.emitterPosition = CGPoint(x: proxy.size.width / 2, y: emitterPositionY)
86 | containerLayer.fillMode = .forwards
[36/46] Compiling EffectsLibrary EffectsViewRepresentable.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:20:23: error: cannot find type 'UIColor' in scope
18 | }
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
21 | case image(UIImage, UIColor?, CGFloat = 1)
22 | case emoji(Character, CGFloat = 1)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:26:16: error: cannot find type 'UIColor' in scope
24 |
25 | extension Content {
26 | var color: UIColor? {
| `- error: cannot find type 'UIColor' in scope
27 | switch self {
28 | case let .image(_, color?, _),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:80:40: error: cannot find type 'UIImage' in scope
78 | }
79 |
80 | func image(with color: UIColor) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
81 | let rect = CGRect(origin: .zero, size: CGSize(width: 12.0, height: 12.0))
82 | return UIGraphicsImageRenderer(size: rect.size).image { context in
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:80:28: error: cannot find type 'UIColor' in scope
78 | }
79 |
80 | func image(with color: UIColor) -> UIImage {
| `- error: cannot find type 'UIColor' in scope
81 | let rect = CGRect(origin: .zero, size: CGSize(width: 12.0, height: 12.0))
82 | return UIGraphicsImageRenderer(size: rect.size).image { context in
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:91:72: error: cannot find type 'UIImage' in scope
89 |
90 | extension String {
91 | func image(with font: UIFont = UIFont.systemFont(ofSize: 16.0)) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
92 | let string = NSString(string: "\(self)")
93 | let attributes: [NSAttributedString.Key: Any] = [
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:91:27: error: cannot find type 'UIFont' in scope
89 |
90 | extension String {
91 | func image(with font: UIFont = UIFont.systemFont(ofSize: 16.0)) -> UIImage {
| `- error: cannot find type 'UIFont' in scope
92 | let string = NSString(string: "\(self)")
93 | let attributes: [NSAttributedString.Key: Any] = [
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:28:33: error: '?' pattern cannot match values of type '<<error type>>'
26 | var color: UIColor? {
27 | switch self {
28 | case let .image(_, color?, _),
| `- error: '?' pattern cannot match values of type '<<error type>>'
29 | let .shape(_, color?, _):
30 | return color
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:29:32: error: '?' pattern cannot match values of type '<<error type>>'
27 | switch self {
28 | case let .image(_, color?, _),
29 | let .shape(_, color?, _):
| `- error: '?' pattern cannot match values of type '<<error type>>'
30 | return color
31 | default:
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:10:36: error: cannot find type 'UIViewRepresentable' in scope
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
11 |
12 | associatedtype Config: EmitterLayerConfig
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:14:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- note: add @available attribute to enclosing protocol
11 |
12 | associatedtype Config: EmitterLayerConfig
13 |
14 | var proxy: GeometryProxy { get }
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
15 | var config: Config { get }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:20:26: error: cannot find type 'UIView' in scope
18 | var viewRenderMode: CAEmitterLayerRenderMode { get }
19 |
20 | func createView() -> UIView
| `- error: cannot find type 'UIView' in scope
21 | func createBaseView() -> UIView
22 | func createBaseLayer() -> CAEmitterLayer
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:21:30: error: cannot find type 'UIView' in scope
19 |
20 | func createView() -> UIView
21 | func createBaseView() -> UIView
| `- error: cannot find type 'UIView' in scope
22 | func createBaseLayer() -> CAEmitterLayer
23 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:47: error: cannot find type 'UIView' in scope
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'UIView' in scope
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:42: error: 'some' types are only permitted in properties, subscripts, and functions
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:30: error: cannot find type 'Context' in scope
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'Context' in scope
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:32:33: error: cannot find type 'UIViewType' in scope
30 | }
31 |
32 | func updateUIView(_ uiView: UIViewType, context: Context) {
| `- error: cannot find type 'UIViewType' in scope
33 | // Todo
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:32:54: error: cannot find type 'Context' in scope
30 | }
31 |
32 | func updateUIView(_ uiView: UIViewType, context: Context) {
| `- error: cannot find type 'Context' in scope
33 | // Todo
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:57:26: error: cannot find type 'UIView' in scope
55 | extension EffectsViewRepresentable {
56 |
57 | func createView() -> UIView {
| `- error: cannot find type 'UIView' in scope
58 | let baseView = createBaseView()
59 | let baseLayer = createBaseLayer()
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:71:30: error: cannot find type 'UIView' in scope
69 | }
70 |
71 | func createBaseView() -> UIView {
| `- error: cannot find type 'UIView' in scope
72 | let baseView = UIView()
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:72:24: error: cannot find 'UIView' in scope
70 |
71 | func createBaseView() -> UIView {
72 | let baseView = UIView()
| `- error: cannot find 'UIView' in scope
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
74 | baseView.clipsToBounds = config.clipsToBounds
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:73:36: error: cannot find 'UIColor' in scope
71 | func createBaseView() -> UIView {
72 | let baseView = UIView()
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
74 | baseView.clipsToBounds = config.clipsToBounds
75 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:84:42: error: cannot find 'UIColor' in scope
82 | containerLayer.bounds = CGRect(x: 0, y: 0, width: proxy.size.width, height: proxy.size.height)
83 | containerLayer.anchorPoint = CGPoint(x: 0, y: 0)
84 | containerLayer.backgroundColor = UIColor(config.backgroundColor).cgColor
| `- error: cannot find 'UIColor' in scope
85 | containerLayer.emitterPosition = CGPoint(x: proxy.size.width / 2, y: emitterPositionY)
86 | containerLayer.fillMode = .forwards
[37/46] Compiling EffectsLibrary EmitterLayerConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:20:23: error: cannot find type 'UIColor' in scope
18 | }
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
21 | case image(UIImage, UIColor?, CGFloat = 1)
22 | case emoji(Character, CGFloat = 1)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:26:16: error: cannot find type 'UIColor' in scope
24 |
25 | extension Content {
26 | var color: UIColor? {
| `- error: cannot find type 'UIColor' in scope
27 | switch self {
28 | case let .image(_, color?, _),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:80:40: error: cannot find type 'UIImage' in scope
78 | }
79 |
80 | func image(with color: UIColor) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
81 | let rect = CGRect(origin: .zero, size: CGSize(width: 12.0, height: 12.0))
82 | return UIGraphicsImageRenderer(size: rect.size).image { context in
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:80:28: error: cannot find type 'UIColor' in scope
78 | }
79 |
80 | func image(with color: UIColor) -> UIImage {
| `- error: cannot find type 'UIColor' in scope
81 | let rect = CGRect(origin: .zero, size: CGSize(width: 12.0, height: 12.0))
82 | return UIGraphicsImageRenderer(size: rect.size).image { context in
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:91:72: error: cannot find type 'UIImage' in scope
89 |
90 | extension String {
91 | func image(with font: UIFont = UIFont.systemFont(ofSize: 16.0)) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
92 | let string = NSString(string: "\(self)")
93 | let attributes: [NSAttributedString.Key: Any] = [
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:91:27: error: cannot find type 'UIFont' in scope
89 |
90 | extension String {
91 | func image(with font: UIFont = UIFont.systemFont(ofSize: 16.0)) -> UIImage {
| `- error: cannot find type 'UIFont' in scope
92 | let string = NSString(string: "\(self)")
93 | let attributes: [NSAttributedString.Key: Any] = [
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:28:33: error: '?' pattern cannot match values of type '<<error type>>'
26 | var color: UIColor? {
27 | switch self {
28 | case let .image(_, color?, _),
| `- error: '?' pattern cannot match values of type '<<error type>>'
29 | let .shape(_, color?, _):
30 | return color
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:29:32: error: '?' pattern cannot match values of type '<<error type>>'
27 | switch self {
28 | case let .image(_, color?, _),
29 | let .shape(_, color?, _):
| `- error: '?' pattern cannot match values of type '<<error type>>'
30 | return color
31 | default:
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:10:36: error: cannot find type 'UIViewRepresentable' in scope
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
11 |
12 | associatedtype Config: EmitterLayerConfig
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:14:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- note: add @available attribute to enclosing protocol
11 |
12 | associatedtype Config: EmitterLayerConfig
13 |
14 | var proxy: GeometryProxy { get }
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
15 | var config: Config { get }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:20:26: error: cannot find type 'UIView' in scope
18 | var viewRenderMode: CAEmitterLayerRenderMode { get }
19 |
20 | func createView() -> UIView
| `- error: cannot find type 'UIView' in scope
21 | func createBaseView() -> UIView
22 | func createBaseLayer() -> CAEmitterLayer
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:21:30: error: cannot find type 'UIView' in scope
19 |
20 | func createView() -> UIView
21 | func createBaseView() -> UIView
| `- error: cannot find type 'UIView' in scope
22 | func createBaseLayer() -> CAEmitterLayer
23 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:47: error: cannot find type 'UIView' in scope
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'UIView' in scope
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:42: error: 'some' types are only permitted in properties, subscripts, and functions
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:30: error: cannot find type 'Context' in scope
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'Context' in scope
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:32:33: error: cannot find type 'UIViewType' in scope
30 | }
31 |
32 | func updateUIView(_ uiView: UIViewType, context: Context) {
| `- error: cannot find type 'UIViewType' in scope
33 | // Todo
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:32:54: error: cannot find type 'Context' in scope
30 | }
31 |
32 | func updateUIView(_ uiView: UIViewType, context: Context) {
| `- error: cannot find type 'Context' in scope
33 | // Todo
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:57:26: error: cannot find type 'UIView' in scope
55 | extension EffectsViewRepresentable {
56 |
57 | func createView() -> UIView {
| `- error: cannot find type 'UIView' in scope
58 | let baseView = createBaseView()
59 | let baseLayer = createBaseLayer()
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:71:30: error: cannot find type 'UIView' in scope
69 | }
70 |
71 | func createBaseView() -> UIView {
| `- error: cannot find type 'UIView' in scope
72 | let baseView = UIView()
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:72:24: error: cannot find 'UIView' in scope
70 |
71 | func createBaseView() -> UIView {
72 | let baseView = UIView()
| `- error: cannot find 'UIView' in scope
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
74 | baseView.clipsToBounds = config.clipsToBounds
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:73:36: error: cannot find 'UIColor' in scope
71 | func createBaseView() -> UIView {
72 | let baseView = UIView()
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
74 | baseView.clipsToBounds = config.clipsToBounds
75 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:84:42: error: cannot find 'UIColor' in scope
82 | containerLayer.bounds = CGRect(x: 0, y: 0, width: proxy.size.width, height: proxy.size.height)
83 | containerLayer.anchorPoint = CGPoint(x: 0, y: 0)
84 | containerLayer.backgroundColor = UIColor(config.backgroundColor).cgColor
| `- error: cannot find 'UIColor' in scope
85 | containerLayer.emitterPosition = CGPoint(x: proxy.size.width / 2, y: emitterPositionY)
86 | containerLayer.fillMode = .forwards
[38/46] Compiling EffectsLibrary EmitterPosition.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:20:23: error: cannot find type 'UIColor' in scope
18 | }
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
21 | case image(UIImage, UIColor?, CGFloat = 1)
22 | case emoji(Character, CGFloat = 1)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:26:16: error: cannot find type 'UIColor' in scope
24 |
25 | extension Content {
26 | var color: UIColor? {
| `- error: cannot find type 'UIColor' in scope
27 | switch self {
28 | case let .image(_, color?, _),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:80:40: error: cannot find type 'UIImage' in scope
78 | }
79 |
80 | func image(with color: UIColor) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
81 | let rect = CGRect(origin: .zero, size: CGSize(width: 12.0, height: 12.0))
82 | return UIGraphicsImageRenderer(size: rect.size).image { context in
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:80:28: error: cannot find type 'UIColor' in scope
78 | }
79 |
80 | func image(with color: UIColor) -> UIImage {
| `- error: cannot find type 'UIColor' in scope
81 | let rect = CGRect(origin: .zero, size: CGSize(width: 12.0, height: 12.0))
82 | return UIGraphicsImageRenderer(size: rect.size).image { context in
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:91:72: error: cannot find type 'UIImage' in scope
89 |
90 | extension String {
91 | func image(with font: UIFont = UIFont.systemFont(ofSize: 16.0)) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
92 | let string = NSString(string: "\(self)")
93 | let attributes: [NSAttributedString.Key: Any] = [
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:91:27: error: cannot find type 'UIFont' in scope
89 |
90 | extension String {
91 | func image(with font: UIFont = UIFont.systemFont(ofSize: 16.0)) -> UIImage {
| `- error: cannot find type 'UIFont' in scope
92 | let string = NSString(string: "\(self)")
93 | let attributes: [NSAttributedString.Key: Any] = [
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:28:33: error: '?' pattern cannot match values of type '<<error type>>'
26 | var color: UIColor? {
27 | switch self {
28 | case let .image(_, color?, _),
| `- error: '?' pattern cannot match values of type '<<error type>>'
29 | let .shape(_, color?, _):
30 | return color
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:29:32: error: '?' pattern cannot match values of type '<<error type>>'
27 | switch self {
28 | case let .image(_, color?, _),
29 | let .shape(_, color?, _):
| `- error: '?' pattern cannot match values of type '<<error type>>'
30 | return color
31 | default:
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:10:36: error: cannot find type 'UIViewRepresentable' in scope
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
11 |
12 | associatedtype Config: EmitterLayerConfig
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:14:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- note: add @available attribute to enclosing protocol
11 |
12 | associatedtype Config: EmitterLayerConfig
13 |
14 | var proxy: GeometryProxy { get }
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
15 | var config: Config { get }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:20:26: error: cannot find type 'UIView' in scope
18 | var viewRenderMode: CAEmitterLayerRenderMode { get }
19 |
20 | func createView() -> UIView
| `- error: cannot find type 'UIView' in scope
21 | func createBaseView() -> UIView
22 | func createBaseLayer() -> CAEmitterLayer
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:21:30: error: cannot find type 'UIView' in scope
19 |
20 | func createView() -> UIView
21 | func createBaseView() -> UIView
| `- error: cannot find type 'UIView' in scope
22 | func createBaseLayer() -> CAEmitterLayer
23 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:47: error: cannot find type 'UIView' in scope
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'UIView' in scope
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:42: error: 'some' types are only permitted in properties, subscripts, and functions
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:28:30: error: cannot find type 'Context' in scope
26 |
27 | extension EffectsViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'Context' in scope
29 | return createView()
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:32:33: error: cannot find type 'UIViewType' in scope
30 | }
31 |
32 | func updateUIView(_ uiView: UIViewType, context: Context) {
| `- error: cannot find type 'UIViewType' in scope
33 | // Todo
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:32:54: error: cannot find type 'Context' in scope
30 | }
31 |
32 | func updateUIView(_ uiView: UIViewType, context: Context) {
| `- error: cannot find type 'Context' in scope
33 | // Todo
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:57:26: error: cannot find type 'UIView' in scope
55 | extension EffectsViewRepresentable {
56 |
57 | func createView() -> UIView {
| `- error: cannot find type 'UIView' in scope
58 | let baseView = createBaseView()
59 | let baseLayer = createBaseLayer()
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:71:30: error: cannot find type 'UIView' in scope
69 | }
70 |
71 | func createBaseView() -> UIView {
| `- error: cannot find type 'UIView' in scope
72 | let baseView = UIView()
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:72:24: error: cannot find 'UIView' in scope
70 |
71 | func createBaseView() -> UIView {
72 | let baseView = UIView()
| `- error: cannot find 'UIView' in scope
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
74 | baseView.clipsToBounds = config.clipsToBounds
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:73:36: error: cannot find 'UIColor' in scope
71 | func createBaseView() -> UIView {
72 | let baseView = UIView()
73 | baseView.backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
74 | baseView.clipsToBounds = config.clipsToBounds
75 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:84:42: error: cannot find 'UIColor' in scope
82 | containerLayer.bounds = CGRect(x: 0, y: 0, width: proxy.size.width, height: proxy.size.height)
83 | containerLayer.anchorPoint = CGPoint(x: 0, y: 0)
84 | containerLayer.backgroundColor = UIColor(config.backgroundColor).cgColor
| `- error: cannot find 'UIColor' in scope
85 | containerLayer.emitterPosition = CGPoint(x: proxy.size.width / 2, y: emitterPositionY)
86 | containerLayer.fillMode = .forwards
[39/46] Compiling EffectsLibrary FireworksConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:16: error: cannot find 'UIImage' in scope
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot find 'UIImage' in scope
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:47: error: cannot infer contextual base in reference to member 'spark'
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot infer contextual base in reference to member 'spark'
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:55: error: 'nil' requires a contextual type
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: 'nil' requires a contextual type
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:26:26: error: 'Color' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
25 | ]
26 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | var intensity: Intensity = .medium
28 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:26:35: error: 'clear' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
25 | ]
26 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
27 | var intensity: Intensity = .medium
28 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:41:26: error: 'Color' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
:
35 |
36 | /// We need to define custom public initializers as they're internal by default.
37 | public init(
| `- note: add @available attribute to enclosing initializer
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
40 | ],
41 | backgroundColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
42 | intensity: Intensity = .medium,
43 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:20: error: cannot find 'UIImage' in scope
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot find 'UIImage' in scope
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:51: error: cannot infer contextual base in reference to member 'spark'
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot infer contextual base in reference to member 'spark'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:59: error: 'nil' requires a contextual type
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: 'nil' requires a contextual type
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:41:35: error: 'clear' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
:
35 |
36 | /// We need to define custom public initializers as they're internal by default.
37 | public init(
| `- note: add @available attribute to enclosing initializer
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
40 | ],
41 | backgroundColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
42 | intensity: Intensity = .medium,
43 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:13:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
14 | var config: FireworksConfig
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireworksConfig
15 |
16 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | return SpriteView(
18 | scene: createScene(of: proxy.size),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:17:16: error: 'SpriteView' is only available in macOS 11.0 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireworksConfig
15 |
16 | var body: some View {
| `- note: add @available attribute to enclosing property
17 | return SpriteView(
| |- error: 'SpriteView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:18:27: error: cannot find 'UIColor' in scope
16 | super.init(size: size)
17 |
18 | backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:86:30: error: cannot find 'UIColor' in scope
84 |
85 | // Particle Color
86 | node.particleColor = UIColor(red: 171 / 255.0, green: 80 / 255.0, blue: 21 / 255.0, alpha: 1.0)
| `- error: cannot find 'UIColor' in scope
87 | node.particleBlendMode = .add
88 | node.particleColorBlendFactor = 0.8
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/BaseConfig.swift:12:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | protocol BaseConfig {
| `- note: add @available attribute to enclosing protocol
11 | var content: [Content] { get }
12 | var backgroundColor: Color { get }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | var intensity: Intensity { get }
14 | var lifetime: Lifetime { get }
[40/46] Compiling EffectsLibrary FireworksContainerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:16: error: cannot find 'UIImage' in scope
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot find 'UIImage' in scope
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:47: error: cannot infer contextual base in reference to member 'spark'
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot infer contextual base in reference to member 'spark'
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:55: error: 'nil' requires a contextual type
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: 'nil' requires a contextual type
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:26:26: error: 'Color' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
25 | ]
26 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | var intensity: Intensity = .medium
28 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:26:35: error: 'clear' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
25 | ]
26 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
27 | var intensity: Intensity = .medium
28 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:41:26: error: 'Color' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
:
35 |
36 | /// We need to define custom public initializers as they're internal by default.
37 | public init(
| `- note: add @available attribute to enclosing initializer
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
40 | ],
41 | backgroundColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
42 | intensity: Intensity = .medium,
43 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:20: error: cannot find 'UIImage' in scope
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot find 'UIImage' in scope
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:51: error: cannot infer contextual base in reference to member 'spark'
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot infer contextual base in reference to member 'spark'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:59: error: 'nil' requires a contextual type
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: 'nil' requires a contextual type
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:41:35: error: 'clear' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
:
35 |
36 | /// We need to define custom public initializers as they're internal by default.
37 | public init(
| `- note: add @available attribute to enclosing initializer
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
40 | ],
41 | backgroundColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
42 | intensity: Intensity = .medium,
43 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:13:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
14 | var config: FireworksConfig
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireworksConfig
15 |
16 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | return SpriteView(
18 | scene: createScene(of: proxy.size),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:17:16: error: 'SpriteView' is only available in macOS 11.0 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireworksConfig
15 |
16 | var body: some View {
| `- note: add @available attribute to enclosing property
17 | return SpriteView(
| |- error: 'SpriteView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:18:27: error: cannot find 'UIColor' in scope
16 | super.init(size: size)
17 |
18 | backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:86:30: error: cannot find 'UIColor' in scope
84 |
85 | // Particle Color
86 | node.particleColor = UIColor(red: 171 / 255.0, green: 80 / 255.0, blue: 21 / 255.0, alpha: 1.0)
| `- error: cannot find 'UIColor' in scope
87 | node.particleBlendMode = .add
88 | node.particleColorBlendFactor = 0.8
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/BaseConfig.swift:12:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | protocol BaseConfig {
| `- note: add @available attribute to enclosing protocol
11 | var content: [Content] { get }
12 | var backgroundColor: Color { get }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | var intensity: Intensity { get }
14 | var lifetime: Lifetime { get }
[41/46] Compiling EffectsLibrary FireworksScene.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:16: error: cannot find 'UIImage' in scope
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot find 'UIImage' in scope
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:47: error: cannot infer contextual base in reference to member 'spark'
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot infer contextual base in reference to member 'spark'
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:55: error: 'nil' requires a contextual type
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: 'nil' requires a contextual type
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:26:26: error: 'Color' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
25 | ]
26 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | var intensity: Intensity = .medium
28 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:26:35: error: 'clear' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
25 | ]
26 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
27 | var intensity: Intensity = .medium
28 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:41:26: error: 'Color' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
:
35 |
36 | /// We need to define custom public initializers as they're internal by default.
37 | public init(
| `- note: add @available attribute to enclosing initializer
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
40 | ],
41 | backgroundColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
42 | intensity: Intensity = .medium,
43 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:20: error: cannot find 'UIImage' in scope
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot find 'UIImage' in scope
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:51: error: cannot infer contextual base in reference to member 'spark'
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot infer contextual base in reference to member 'spark'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:59: error: 'nil' requires a contextual type
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: 'nil' requires a contextual type
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:41:35: error: 'clear' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
:
35 |
36 | /// We need to define custom public initializers as they're internal by default.
37 | public init(
| `- note: add @available attribute to enclosing initializer
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
40 | ],
41 | backgroundColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
42 | intensity: Intensity = .medium,
43 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:13:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
14 | var config: FireworksConfig
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireworksConfig
15 |
16 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | return SpriteView(
18 | scene: createScene(of: proxy.size),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:17:16: error: 'SpriteView' is only available in macOS 11.0 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireworksConfig
15 |
16 | var body: some View {
| `- note: add @available attribute to enclosing property
17 | return SpriteView(
| |- error: 'SpriteView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:18:27: error: cannot find 'UIColor' in scope
16 | super.init(size: size)
17 |
18 | backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:86:30: error: cannot find 'UIColor' in scope
84 |
85 | // Particle Color
86 | node.particleColor = UIColor(red: 171 / 255.0, green: 80 / 255.0, blue: 21 / 255.0, alpha: 1.0)
| `- error: cannot find 'UIColor' in scope
87 | node.particleBlendMode = .add
88 | node.particleColorBlendFactor = 0.8
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/BaseConfig.swift:12:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | protocol BaseConfig {
| `- note: add @available attribute to enclosing protocol
11 | var content: [Content] { get }
12 | var backgroundColor: Color { get }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | var intensity: Intensity { get }
14 | var lifetime: Lifetime { get }
[42/46] Compiling EffectsLibrary BaseConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:16: error: cannot find 'UIImage' in scope
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot find 'UIImage' in scope
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:47: error: cannot infer contextual base in reference to member 'spark'
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot infer contextual base in reference to member 'spark'
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:24:55: error: 'nil' requires a contextual type
22 | public struct FireworksConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: 'nil' requires a contextual type
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:26:26: error: 'Color' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
25 | ]
26 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
27 | var intensity: Intensity = .medium
28 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:26:35: error: 'clear' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
25 | ]
26 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
27 | var intensity: Intensity = .medium
28 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:41:26: error: 'Color' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
:
35 |
36 | /// We need to define custom public initializers as they're internal by default.
37 | public init(
| `- note: add @available attribute to enclosing initializer
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
40 | ],
41 | backgroundColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
42 | intensity: Intensity = .medium,
43 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:20: error: cannot find 'UIImage' in scope
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot find 'UIImage' in scope
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:51: error: cannot infer contextual base in reference to member 'spark'
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: cannot infer contextual base in reference to member 'spark'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:39:59: error: 'nil' requires a contextual type
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
| `- error: 'nil' requires a contextual type
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/Model/FireworksConfig.swift:41:35: error: 'clear' is only available in macOS 10.15 or newer
20 | /// - `fadeOut`: Specifies how fast elements of the effect will fade out (meaning: become transparent). Difference to `lifetime` is that there elements will be removed instantly whereas here there is a fading effect that is more subtle over time. The type is ``FadeOut`` (click to see more details) with the values `.none`, `.slow`, `.medium`, and `.fast`. Default is `.medium`.
21 | /// - `spreadRadius`: Defines the angle in which the single elements of the effect are emitted. The type ``SpreadRadius`` (click to see more details) defines 3 values: `.low`, `.medium`, and `.high`. The default is `.high` (leading to a complete circle of particles emitted from the source).
22 | public struct FireworksConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
:
35 |
36 | /// We need to define custom public initializers as they're internal by default.
37 | public init(
| `- note: add @available attribute to enclosing initializer
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), nil, 1)
40 | ],
41 | backgroundColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
42 | intensity: Intensity = .medium,
43 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:13:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
14 | var config: FireworksConfig
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireworksConfig
15 |
16 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
17 | return SpriteView(
18 | scene: createScene(of: proxy.size),
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:17:16: error: 'SpriteView' is only available in macOS 11.0 or newer
9 | import SpriteKit
10 |
11 | struct FireworksContainerView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | var proxy: GeometryProxy
14 | var config: FireworksConfig
15 |
16 | var body: some View {
| `- note: add @available attribute to enclosing property
17 | return SpriteView(
| |- error: 'SpriteView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:18:27: error: cannot find 'UIColor' in scope
16 | super.init(size: size)
17 |
18 | backgroundColor = UIColor(config.backgroundColor)
| `- error: cannot find 'UIColor' in scope
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:86:30: error: cannot find 'UIColor' in scope
84 |
85 | // Particle Color
86 | node.particleColor = UIColor(red: 171 / 255.0, green: 80 / 255.0, blue: 21 / 255.0, alpha: 1.0)
| `- error: cannot find 'UIColor' in scope
87 | node.particleBlendMode = .add
88 | node.particleColorBlendFactor = 0.8
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/BaseConfig.swift:12:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | protocol BaseConfig {
| `- note: add @available attribute to enclosing protocol
11 | var content: [Content] { get }
12 | var backgroundColor: Color { get }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | var intensity: Intensity { get }
14 | var lifetime: Lifetime { get }
[43/46] Compiling EffectsLibrary SnowConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:16: error: cannot find 'UIImage' in scope
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot find 'UIImage' in scope
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:47: error: cannot infer contextual base in reference to member 'snow'
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'snow'
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:55: error: cannot infer contextual base in reference to member 'white'
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'white'
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:31:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
30 | ]
31 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
32 | var intensity: Intensity = .medium
33 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:31:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
30 | ]
31 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
32 | var intensity: Intensity = .medium
33 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:51:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
:
45 |
46 | /// We need to define custom public initializers as they're internal by default.
47 | public init(
| `- note: add @available attribute to enclosing initializer
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
50 | ],
51 | backgroundColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
52 | intensity: Intensity = .medium,
53 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:20: error: cannot find 'UIImage' in scope
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot find 'UIImage' in scope
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:51: error: cannot infer contextual base in reference to member 'snow'
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'snow'
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:59: error: cannot infer contextual base in reference to member 'white'
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'white'
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:51:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
:
45 |
46 | /// We need to define custom public initializers as they're internal by default.
47 | public init(
| `- note: add @available attribute to enclosing initializer
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
50 | ],
51 | backgroundColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
52 | intensity: Intensity = .medium,
53 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct SnowView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
27 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
28 | SnowView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | SnowViewRepresentable(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:20:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
18 | public var body: some View {
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
21 | }
22 | .edgesIgnoringSafeArea(.all)
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
21 | }
22 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/View/SnowViewRepresentable.swift:12:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct SnowViewRepresentable: EffectsViewRepresentable {
| `- note: add @available attribute to enclosing struct
11 |
12 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
13 | var config: SnowConfig
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:10:36: error: cannot find type 'UIViewRepresentable' in scope
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
11 |
12 | associatedtype Config: EmitterLayerConfig
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:20:26: error: cannot find type 'UIView' in scope
18 | var viewRenderMode: CAEmitterLayerRenderMode { get }
19 |
20 | func createView() -> UIView
| `- error: cannot find type 'UIView' in scope
21 | func createBaseView() -> UIView
22 | func createBaseLayer() -> CAEmitterLayer
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:21:30: error: cannot find type 'UIView' in scope
19 |
20 | func createView() -> UIView
21 | func createBaseView() -> UIView
| `- error: cannot find type 'UIView' in scope
22 | func createBaseLayer() -> CAEmitterLayer
23 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:26:16: error: cannot find type 'UIColor' in scope
24 |
25 | extension Content {
26 | var color: UIColor? {
| `- error: cannot find type 'UIColor' in scope
27 | switch self {
28 | case let .image(_, color?, _),
[44/46] Compiling EffectsLibrary SnowView.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:16: error: cannot find 'UIImage' in scope
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot find 'UIImage' in scope
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:47: error: cannot infer contextual base in reference to member 'snow'
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'snow'
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:55: error: cannot infer contextual base in reference to member 'white'
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'white'
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:31:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
30 | ]
31 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
32 | var intensity: Intensity = .medium
33 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:31:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
30 | ]
31 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
32 | var intensity: Intensity = .medium
33 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:51:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
:
45 |
46 | /// We need to define custom public initializers as they're internal by default.
47 | public init(
| `- note: add @available attribute to enclosing initializer
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
50 | ],
51 | backgroundColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
52 | intensity: Intensity = .medium,
53 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:20: error: cannot find 'UIImage' in scope
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot find 'UIImage' in scope
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:51: error: cannot infer contextual base in reference to member 'snow'
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'snow'
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:59: error: cannot infer contextual base in reference to member 'white'
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'white'
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:51:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
:
45 |
46 | /// We need to define custom public initializers as they're internal by default.
47 | public init(
| `- note: add @available attribute to enclosing initializer
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
50 | ],
51 | backgroundColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
52 | intensity: Intensity = .medium,
53 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct SnowView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
27 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
28 | SnowView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | SnowViewRepresentable(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:20:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
18 | public var body: some View {
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
21 | }
22 | .edgesIgnoringSafeArea(.all)
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
21 | }
22 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/View/SnowViewRepresentable.swift:12:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct SnowViewRepresentable: EffectsViewRepresentable {
| `- note: add @available attribute to enclosing struct
11 |
12 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
13 | var config: SnowConfig
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:10:36: error: cannot find type 'UIViewRepresentable' in scope
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
11 |
12 | associatedtype Config: EmitterLayerConfig
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:20:26: error: cannot find type 'UIView' in scope
18 | var viewRenderMode: CAEmitterLayerRenderMode { get }
19 |
20 | func createView() -> UIView
| `- error: cannot find type 'UIView' in scope
21 | func createBaseView() -> UIView
22 | func createBaseLayer() -> CAEmitterLayer
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:21:30: error: cannot find type 'UIView' in scope
19 |
20 | func createView() -> UIView
21 | func createBaseView() -> UIView
| `- error: cannot find type 'UIView' in scope
22 | func createBaseLayer() -> CAEmitterLayer
23 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:26:16: error: cannot find type 'UIColor' in scope
24 |
25 | extension Content {
26 | var color: UIColor? {
| `- error: cannot find type 'UIColor' in scope
27 | switch self {
28 | case let .image(_, color?, _),
[45/46] Compiling EffectsLibrary SnowViewRepresentable.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:16: error: cannot find 'UIImage' in scope
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot find 'UIImage' in scope
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:47: error: cannot infer contextual base in reference to member 'snow'
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'snow'
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:55: error: cannot infer contextual base in reference to member 'white'
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'white'
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:31:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
30 | ]
31 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
32 | var intensity: Intensity = .medium
33 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:31:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
30 | ]
31 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
32 | var intensity: Intensity = .medium
33 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:51:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
:
45 |
46 | /// We need to define custom public initializers as they're internal by default.
47 | public init(
| `- note: add @available attribute to enclosing initializer
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
50 | ],
51 | backgroundColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
52 | intensity: Intensity = .medium,
53 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:20: error: cannot find 'UIImage' in scope
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot find 'UIImage' in scope
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:51: error: cannot infer contextual base in reference to member 'snow'
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'snow'
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:59: error: cannot infer contextual base in reference to member 'white'
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'white'
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:51:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
:
45 |
46 | /// We need to define custom public initializers as they're internal by default.
47 | public init(
| `- note: add @available attribute to enclosing initializer
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
50 | ],
51 | backgroundColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
52 | intensity: Intensity = .medium,
53 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct SnowView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
27 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
28 | SnowView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | SnowViewRepresentable(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:20:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
18 | public var body: some View {
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
21 | }
22 | .edgesIgnoringSafeArea(.all)
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
21 | }
22 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/View/SnowViewRepresentable.swift:12:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct SnowViewRepresentable: EffectsViewRepresentable {
| `- note: add @available attribute to enclosing struct
11 |
12 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
13 | var config: SnowConfig
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:10:36: error: cannot find type 'UIViewRepresentable' in scope
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
11 |
12 | associatedtype Config: EmitterLayerConfig
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:20:26: error: cannot find type 'UIView' in scope
18 | var viewRenderMode: CAEmitterLayerRenderMode { get }
19 |
20 | func createView() -> UIView
| `- error: cannot find type 'UIView' in scope
21 | func createBaseView() -> UIView
22 | func createBaseLayer() -> CAEmitterLayer
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:21:30: error: cannot find type 'UIView' in scope
19 |
20 | func createView() -> UIView
21 | func createBaseView() -> UIView
| `- error: cannot find type 'UIView' in scope
22 | func createBaseLayer() -> CAEmitterLayer
23 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:26:16: error: cannot find type 'UIColor' in scope
24 |
25 | extension Content {
26 | var color: UIColor? {
| `- error: cannot find type 'UIColor' in scope
27 | switch self {
28 | case let .image(_, color?, _),
[46/46] Compiling EffectsLibrary resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:16: error: cannot find 'UIImage' in scope
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot find 'UIImage' in scope
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:16: error: cannot find type 'UIImage' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIImage' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:21:25: error: cannot find type 'UIColor' in scope
19 |
20 | case shape(Shape, UIColor?, CGFloat = 1)
21 | case image(UIImage, UIColor?, CGFloat = 1)
| `- error: cannot find type 'UIColor' in scope
22 | case emoji(Character, CGFloat = 1)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:36:16: error: cannot find type 'UIImage' in scope
34 | }
35 |
36 | var image: UIImage {
| `- error: cannot find type 'UIImage' in scope
37 | switch self {
38 | case let .image(image, _, _):
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:47: error: cannot infer contextual base in reference to member 'snow'
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'snow'
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:29:55: error: cannot infer contextual base in reference to member 'white'
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'white'
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:31:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
30 | ]
31 | var backgroundColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
32 | var intensity: Intensity = .medium
33 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:31:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .snow), .white)
30 | ]
31 | var backgroundColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
32 | var intensity: Intensity = .medium
33 | var lifetime: Lifetime = .medium
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:51:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
:
45 |
46 | /// We need to define custom public initializers as they're internal by default.
47 | public init(
| `- note: add @available attribute to enclosing initializer
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
50 | ],
51 | backgroundColor: Color = .clear,
| `- error: 'Color' is only available in macOS 10.15 or newer
52 | intensity: Intensity = .medium,
53 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:20: error: cannot find 'UIImage' in scope
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot find 'UIImage' in scope
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:51: error: cannot infer contextual base in reference to member 'snow'
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'snow'
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:49:59: error: cannot infer contextual base in reference to member 'white'
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
| `- error: cannot infer contextual base in reference to member 'white'
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/Model/SnowConfig.swift:51:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `SnowView` itself or can leak around. Default is `false` (effect leaks outside).
25 | /// - fallDirection: an enum value of type `FallDirection`. There are two options for now, being `.upwards` (particles are moving up the screen from the source they are emitted) and `.downwards` (particles are falling downwards from the origin of the source). Default is `.downwards`.
26 | public struct SnowConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
:
45 |
46 | /// We need to define custom public initializers as they're internal by default.
47 | public init(
| `- note: add @available attribute to enclosing initializer
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .snow), .white)
50 | ],
51 | backgroundColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
52 | intensity: Intensity = .medium,
53 | lifetime: Lifetime = .medium,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct SnowView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
27 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
28 | SnowView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | SnowViewRepresentable(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:20:13: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
18 | public var body: some View {
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
21 | }
22 | .edgesIgnoringSafeArea(.all)
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/SnowView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct SnowView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: SnowConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | SnowViewRepresentable(proxy: proxy, config: config)
21 | }
22 | .edgesIgnoringSafeArea(.all)
| |- error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/SnowEffect/View/SnowViewRepresentable.swift:12:16: error: 'GeometryProxy' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct SnowViewRepresentable: EffectsViewRepresentable {
| `- note: add @available attribute to enclosing struct
11 |
12 | var proxy: GeometryProxy
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
13 | var config: SnowConfig
14 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:10:36: error: cannot find type 'UIViewRepresentable' in scope
8 | import SwiftUI
9 |
10 | protocol EffectsViewRepresentable: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
11 |
12 | associatedtype Config: EmitterLayerConfig
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:20:26: error: cannot find type 'UIView' in scope
18 | var viewRenderMode: CAEmitterLayerRenderMode { get }
19 |
20 | func createView() -> UIView
| `- error: cannot find type 'UIView' in scope
21 | func createBaseView() -> UIView
22 | func createBaseLayer() -> CAEmitterLayer
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/EffectsViewRepresentable.swift:21:30: error: cannot find type 'UIView' in scope
19 |
20 | func createView() -> UIView
21 | func createBaseView() -> UIView
| `- error: cannot find type 'UIView' in scope
22 | func createBaseLayer() -> CAEmitterLayer
23 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Model/Content.swift:26:16: error: cannot find type 'UIColor' in scope
24 |
25 | extension Content {
26 | var color: UIColor? {
| `- error: cannot find type 'UIColor' in scope
27 | switch self {
28 | case let .image(_, color?, _),
BUILD FAILURE 6.1 macosSpm