Build Information
Failed to build EffectsLibrary with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- 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/RainEffect/Model/RainConfig.swift:29:47: error: cannot infer contextual base in reference to member 'raindrop'
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- error: cannot infer contextual base in reference to member 'raindrop'
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/RainEffect/Model/RainConfig.swift:29:58: error: 'nil' requires a contextual type
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- error: 'nil' requires a contextual type
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/RainEffect/Model/RainConfig.swift:31:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `RainView` 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 RainConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
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/RainEffect/Model/RainConfig.swift:31:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `RainView` 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 RainConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
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/RainEffect/Model/RainConfig.swift:51:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `RainView` 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 RainConfig: 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: .raindrop), nil, 0.004)
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/RainEffect/Model/RainConfig.swift:49:20: error: cannot find 'UIImage' in scope
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- error: cannot find 'UIImage' in scope
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/RainEffect/Model/RainConfig.swift:49:51: error: cannot infer contextual base in reference to member 'raindrop'
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- error: cannot infer contextual base in reference to member 'raindrop'
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/RainEffect/Model/RainConfig.swift:49:62: error: 'nil' requires a contextual type
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- error: 'nil' requires a contextual type
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/RainEffect/Model/RainConfig.swift:51:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `RainView` 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 RainConfig: 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: .raindrop), nil, 0.004)
50 | ],
51 | backgroundColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
52 | intensity: Intensity = .medium,
53 | lifetime: Lifetime = .medium,
[35/48] Compiling EffectsLibrary RainConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/RainEffect/Model/RainConfig.swift:29:16: error: cannot find 'UIImage' in scope
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- 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/RainEffect/Model/RainConfig.swift:29:47: error: cannot infer contextual base in reference to member 'raindrop'
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- error: cannot infer contextual base in reference to member 'raindrop'
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/RainEffect/Model/RainConfig.swift:29:58: error: 'nil' requires a contextual type
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- error: 'nil' requires a contextual type
30 | ]
31 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/RainEffect/Model/RainConfig.swift:31:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `RainView` 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 RainConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
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/RainEffect/Model/RainConfig.swift:31:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `RainView` 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 RainConfig: EmitterLayerConfig {
| `- note: add @available attribute to enclosing struct
27 | // base config parameters
28 | var content: [Content] = [
29 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
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/RainEffect/Model/RainConfig.swift:51:26: error: 'Color' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `RainView` 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 RainConfig: 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: .raindrop), nil, 0.004)
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/RainEffect/Model/RainConfig.swift:49:20: error: cannot find 'UIImage' in scope
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- error: cannot find 'UIImage' in scope
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/RainEffect/Model/RainConfig.swift:49:51: error: cannot infer contextual base in reference to member 'raindrop'
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- error: cannot infer contextual base in reference to member 'raindrop'
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/RainEffect/Model/RainConfig.swift:49:62: error: 'nil' requires a contextual type
47 | public init(
48 | content: [Content] = [
49 | .image(UIImage.loadFromBundle(named: .raindrop), nil, 0.004)
| `- error: 'nil' requires a contextual type
50 | ],
51 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/RainEffect/Model/RainConfig.swift:51:35: error: 'clear' is only available in macOS 10.15 or newer
24 | /// - clipsToBounds: specifies whether the effect is constrained to the `RainView` 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 RainConfig: 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: .raindrop), nil, 0.004)
50 | ],
51 | backgroundColor: Color = .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
52 | intensity: Intensity = .medium,
53 | lifetime: Lifetime = .medium,
[36/48] 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
[37/48] 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
[38/48] 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
[39/48] 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
[40/48] 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: cannot find 'SpriteView' in scope
15 |
16 | var body: some View {
17 | return SpriteView(
| `- error: cannot find 'SpriteView' in scope
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:19:24: error: reference to member 'allowsTransparency' cannot be resolved without a contextual type
17 | return SpriteView(
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
| `- error: reference to member 'allowsTransparency' cannot be resolved without a contextual type
20 | )
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:24:16: warning: call to main actor-isolated initializer 'init(size:config:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
23 | func createScene(of size: CGSize) -> SKScene {
| `- note: add '@MainActor' to make instance method 'createScene(of:)' part of global actor 'MainActor'
24 | return FireworksScene(size: size, config: config)
| `- warning: call to main actor-isolated initializer 'init(size:config:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:14:5: note: calls to initializer 'init(size:config:)' from outside of its actor context are implicitly asynchronous
12 | var config: FireworksConfig
13 |
14 | init(size: CGSize, config: FireworksConfig) {
| `- note: calls to initializer 'init(size:config:)' from outside of its actor context are implicitly asynchronous
15 | self.config = config
16 | super.init(size: size)
/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/48] 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: cannot find 'SpriteView' in scope
15 |
16 | var body: some View {
17 | return SpriteView(
| `- error: cannot find 'SpriteView' in scope
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:19:24: error: reference to member 'allowsTransparency' cannot be resolved without a contextual type
17 | return SpriteView(
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
| `- error: reference to member 'allowsTransparency' cannot be resolved without a contextual type
20 | )
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:24:16: warning: call to main actor-isolated initializer 'init(size:config:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
23 | func createScene(of size: CGSize) -> SKScene {
| `- note: add '@MainActor' to make instance method 'createScene(of:)' part of global actor 'MainActor'
24 | return FireworksScene(size: size, config: config)
| `- warning: call to main actor-isolated initializer 'init(size:config:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:14:5: note: calls to initializer 'init(size:config:)' from outside of its actor context are implicitly asynchronous
12 | var config: FireworksConfig
13 |
14 | init(size: CGSize, config: FireworksConfig) {
| `- note: calls to initializer 'init(size:config:)' from outside of its actor context are implicitly asynchronous
15 | self.config = config
16 | super.init(size: size)
/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/48] 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: cannot find 'SpriteView' in scope
15 |
16 | var body: some View {
17 | return SpriteView(
| `- error: cannot find 'SpriteView' in scope
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:19:24: error: reference to member 'allowsTransparency' cannot be resolved without a contextual type
17 | return SpriteView(
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
| `- error: reference to member 'allowsTransparency' cannot be resolved without a contextual type
20 | )
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:24:16: warning: call to main actor-isolated initializer 'init(size:config:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
23 | func createScene(of size: CGSize) -> SKScene {
| `- note: add '@MainActor' to make instance method 'createScene(of:)' part of global actor 'MainActor'
24 | return FireworksScene(size: size, config: config)
| `- warning: call to main actor-isolated initializer 'init(size:config:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:14:5: note: calls to initializer 'init(size:config:)' from outside of its actor context are implicitly asynchronous
12 | var config: FireworksConfig
13 |
14 | init(size: CGSize, config: FireworksConfig) {
| `- note: calls to initializer 'init(size:config:)' from outside of its actor context are implicitly asynchronous
15 | self.config = config
16 | super.init(size: size)
/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/48] 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: cannot find 'SpriteView' in scope
15 |
16 | var body: some View {
17 | return SpriteView(
| `- error: cannot find 'SpriteView' in scope
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:19:24: error: reference to member 'allowsTransparency' cannot be resolved without a contextual type
17 | return SpriteView(
18 | scene: createScene(of: proxy.size),
19 | options: [.allowsTransparency]
| `- error: reference to member 'allowsTransparency' cannot be resolved without a contextual type
20 | )
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksContainerView.swift:24:16: warning: call to main actor-isolated initializer 'init(size:config:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
23 | func createScene(of size: CGSize) -> SKScene {
| `- note: add '@MainActor' to make instance method 'createScene(of:)' part of global actor 'MainActor'
24 | return FireworksScene(size: size, config: config)
| `- warning: call to main actor-isolated initializer 'init(size:config:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireworksEffect/View/FireworksScene.swift:14:5: note: calls to initializer 'init(size:config:)' from outside of its actor context are implicitly asynchronous
12 | var config: FireworksConfig
13 |
14 | init(size: CGSize, config: FireworksConfig) {
| `- note: calls to initializer 'init(size:config:)' from outside of its actor context are implicitly asynchronous
15 | self.config = config
16 | super.init(size: size)
/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 }
[44/48] Compiling EffectsLibrary String+ImageNames.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:11:16: warning: static property 'spark' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public extension String {
11 | static var spark = "spark"
| |- warning: static property 'spark' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'spark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'spark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static var raindrop = "raindrop"
13 | static var snow = "snow"
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:12:16: warning: static property 'raindrop' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public extension String {
11 | static var spark = "spark"
12 | static var raindrop = "raindrop"
| |- warning: static property 'raindrop' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'raindrop' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'raindrop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static var snow = "snow"
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:13:16: warning: static property 'snow' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | static var spark = "spark"
12 | static var raindrop = "raindrop"
13 | static var snow = "snow"
| |- warning: static property 'snow' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'snow' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'snow' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/UIImage+fromBundle.swift:10:11: error: cannot find type 'UIImage' in scope
8 | import SwiftUI
9 |
10 | extension UIImage {
| `- error: cannot find type 'UIImage' in scope
11 |
12 | public static func loadFromBundle(named name: String) -> UIImage {
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
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 | FireContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct FireView_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 | FireView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
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 | FireContainerView(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | FireContainerView(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/FireEffect/Model/FireConfig.swift:24:16: error: cannot find 'UIImage' in scope
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.swift:24:47: error: cannot infer contextual base in reference to member 'spark'
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.swift:24:56: error: cannot infer contextual base in reference to member 'fireRed'
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 1)
| `- error: cannot infer contextual base in reference to member 'fireRed'
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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), .fireRed, 0.5)
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/FireEffect/Model/FireConfig.swift:39:20: error: cannot find 'UIImage' in scope
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 0.5)
| `- error: cannot find 'UIImage' in scope
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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), .fireRed, 0.5)
| `- error: cannot infer contextual base in reference to member 'spark'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.swift:39:60: error: cannot infer contextual base in reference to member 'fireRed'
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 0.5)
| `- error: cannot infer contextual base in reference to member 'fireRed'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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), .fireRed, 0.5)
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/Extensions/UIImage+fromBundle.swift:12:62: error: cannot find type 'UIImage' in scope
10 | extension UIImage {
11 |
12 | public static func loadFromBundle(named name: String) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
13 | return UIImage(named: name, in: Bundle.module, with: .none)!.withRenderingMode(.alwaysTemplate)
14 | }
[45/48] Compiling EffectsLibrary UIImage+fromBundle.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:11:16: warning: static property 'spark' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public extension String {
11 | static var spark = "spark"
| |- warning: static property 'spark' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'spark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'spark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static var raindrop = "raindrop"
13 | static var snow = "snow"
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:12:16: warning: static property 'raindrop' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public extension String {
11 | static var spark = "spark"
12 | static var raindrop = "raindrop"
| |- warning: static property 'raindrop' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'raindrop' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'raindrop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static var snow = "snow"
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:13:16: warning: static property 'snow' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | static var spark = "spark"
12 | static var raindrop = "raindrop"
13 | static var snow = "snow"
| |- warning: static property 'snow' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'snow' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'snow' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/UIImage+fromBundle.swift:10:11: error: cannot find type 'UIImage' in scope
8 | import SwiftUI
9 |
10 | extension UIImage {
| `- error: cannot find type 'UIImage' in scope
11 |
12 | public static func loadFromBundle(named name: String) -> UIImage {
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
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 | FireContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct FireView_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 | FireView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
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 | FireContainerView(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | FireContainerView(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/FireEffect/Model/FireConfig.swift:24:16: error: cannot find 'UIImage' in scope
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.swift:24:47: error: cannot infer contextual base in reference to member 'spark'
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.swift:24:56: error: cannot infer contextual base in reference to member 'fireRed'
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 1)
| `- error: cannot infer contextual base in reference to member 'fireRed'
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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), .fireRed, 0.5)
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/FireEffect/Model/FireConfig.swift:39:20: error: cannot find 'UIImage' in scope
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 0.5)
| `- error: cannot find 'UIImage' in scope
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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), .fireRed, 0.5)
| `- error: cannot infer contextual base in reference to member 'spark'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.swift:39:60: error: cannot infer contextual base in reference to member 'fireRed'
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 0.5)
| `- error: cannot infer contextual base in reference to member 'fireRed'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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), .fireRed, 0.5)
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/Extensions/UIImage+fromBundle.swift:12:62: error: cannot find type 'UIImage' in scope
10 | extension UIImage {
11 |
12 | public static func loadFromBundle(named name: String) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
13 | return UIImage(named: name, in: Bundle.module, with: .none)!.withRenderingMode(.alwaysTemplate)
14 | }
[46/48] Compiling EffectsLibrary FireView.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:11:16: warning: static property 'spark' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public extension String {
11 | static var spark = "spark"
| |- warning: static property 'spark' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'spark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'spark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static var raindrop = "raindrop"
13 | static var snow = "snow"
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:12:16: warning: static property 'raindrop' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public extension String {
11 | static var spark = "spark"
12 | static var raindrop = "raindrop"
| |- warning: static property 'raindrop' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'raindrop' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'raindrop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static var snow = "snow"
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:13:16: warning: static property 'snow' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | static var spark = "spark"
12 | static var raindrop = "raindrop"
13 | static var snow = "snow"
| |- warning: static property 'snow' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'snow' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'snow' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/UIImage+fromBundle.swift:10:11: error: cannot find type 'UIImage' in scope
8 | import SwiftUI
9 |
10 | extension UIImage {
| `- error: cannot find type 'UIImage' in scope
11 |
12 | public static func loadFromBundle(named name: String) -> UIImage {
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
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 | FireContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct FireView_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 | FireView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
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 | FireContainerView(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | FireContainerView(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/FireEffect/Model/FireConfig.swift:24:16: error: cannot find 'UIImage' in scope
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.swift:24:47: error: cannot infer contextual base in reference to member 'spark'
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.swift:24:56: error: cannot infer contextual base in reference to member 'fireRed'
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 1)
| `- error: cannot infer contextual base in reference to member 'fireRed'
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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), .fireRed, 0.5)
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/FireEffect/Model/FireConfig.swift:39:20: error: cannot find 'UIImage' in scope
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 0.5)
| `- error: cannot find 'UIImage' in scope
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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), .fireRed, 0.5)
| `- error: cannot infer contextual base in reference to member 'spark'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.swift:39:60: error: cannot infer contextual base in reference to member 'fireRed'
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 0.5)
| `- error: cannot infer contextual base in reference to member 'fireRed'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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), .fireRed, 0.5)
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/Extensions/UIImage+fromBundle.swift:12:62: error: cannot find type 'UIImage' in scope
10 | extension UIImage {
11 |
12 | public static func loadFromBundle(named name: String) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
13 | return UIImage(named: name, in: Bundle.module, with: .none)!.withRenderingMode(.alwaysTemplate)
14 | }
[47/48] Compiling EffectsLibrary FireConfig+DefaultValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:11:16: warning: static property 'spark' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public extension String {
11 | static var spark = "spark"
| |- warning: static property 'spark' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'spark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'spark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static var raindrop = "raindrop"
13 | static var snow = "snow"
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:12:16: warning: static property 'raindrop' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public extension String {
11 | static var spark = "spark"
12 | static var raindrop = "raindrop"
| |- warning: static property 'raindrop' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'raindrop' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'raindrop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static var snow = "snow"
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:13:16: warning: static property 'snow' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | static var spark = "spark"
12 | static var raindrop = "raindrop"
13 | static var snow = "snow"
| |- warning: static property 'snow' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'snow' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'snow' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/UIImage+fromBundle.swift:10:11: error: cannot find type 'UIImage' in scope
8 | import SwiftUI
9 |
10 | extension UIImage {
| `- error: cannot find type 'UIImage' in scope
11 |
12 | public static func loadFromBundle(named name: String) -> UIImage {
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
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 | FireContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct FireView_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 | FireView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
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 | FireContainerView(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | FireContainerView(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/FireEffect/Model/FireConfig.swift:24:16: error: cannot find 'UIImage' in scope
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.swift:24:47: error: cannot infer contextual base in reference to member 'spark'
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.swift:24:56: error: cannot infer contextual base in reference to member 'fireRed'
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 1)
| `- error: cannot infer contextual base in reference to member 'fireRed'
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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), .fireRed, 0.5)
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/FireEffect/Model/FireConfig.swift:39:20: error: cannot find 'UIImage' in scope
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 0.5)
| `- error: cannot find 'UIImage' in scope
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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), .fireRed, 0.5)
| `- error: cannot infer contextual base in reference to member 'spark'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.swift:39:60: error: cannot infer contextual base in reference to member 'fireRed'
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 0.5)
| `- error: cannot infer contextual base in reference to member 'fireRed'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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), .fireRed, 0.5)
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/Extensions/UIImage+fromBundle.swift:12:62: error: cannot find type 'UIImage' in scope
10 | extension UIImage {
11 |
12 | public static func loadFromBundle(named name: String) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
13 | return UIImage(named: name, in: Bundle.module, with: .none)!.withRenderingMode(.alwaysTemplate)
14 | }
[48/48] Compiling EffectsLibrary FireConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:11:16: warning: static property 'spark' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | public extension String {
11 | static var spark = "spark"
| |- warning: static property 'spark' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'spark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'spark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | static var raindrop = "raindrop"
13 | static var snow = "snow"
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:12:16: warning: static property 'raindrop' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public extension String {
11 | static var spark = "spark"
12 | static var raindrop = "raindrop"
| |- warning: static property 'raindrop' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'raindrop' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'raindrop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static var snow = "snow"
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/String+ImageNames.swift:13:16: warning: static property 'snow' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | static var spark = "spark"
12 | static var raindrop = "raindrop"
13 | static var snow = "snow"
| |- warning: static property 'snow' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'snow' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'snow' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/Extensions/UIImage+fromBundle.swift:10:11: error: cannot find type 'UIImage' in scope
8 | import SwiftUI
9 |
10 | extension UIImage {
| `- error: cannot find type 'UIImage' in scope
11 |
12 | public static func loadFromBundle(named name: String) -> UIImage {
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:18:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
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 | FireContainerView(proxy: proxy, config: config)
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct FireView_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 | FireView()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:19:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
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 | FireContainerView(proxy: proxy, config: config)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/FireView.swift:22:10: error: 'edgesIgnoringSafeArea' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct FireView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | private var config: FireConfig
:
16 | }
17 |
18 | public var body: some View {
| `- note: add @available attribute to enclosing property
19 | GeometryReader { proxy in
20 | FireContainerView(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/FireEffect/Model/FireConfig.swift:24:16: error: cannot find 'UIImage' in scope
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.swift:24:47: error: cannot infer contextual base in reference to member 'spark'
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.swift:24:56: error: cannot infer contextual base in reference to member 'fireRed'
22 | public struct FireConfig: BaseConfig {
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 1)
| `- error: cannot infer contextual base in reference to member 'fireRed'
25 | ]
26 | var backgroundColor: Color = .clear
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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), .fireRed, 0.5)
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/FireEffect/Model/FireConfig.swift:39:20: error: cannot find 'UIImage' in scope
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 0.5)
| `- error: cannot find 'UIImage' in scope
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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), .fireRed, 0.5)
| `- error: cannot infer contextual base in reference to member 'spark'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.swift:39:60: error: cannot infer contextual base in reference to member 'fireRed'
37 | public init(
38 | content: [Content] = [
39 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 0.5)
| `- error: cannot infer contextual base in reference to member 'fireRed'
40 | ],
41 | backgroundColor: Color = .clear,
/Users/admin/builder/spi-builder-workspace/Sources/EffectsLibrary/FireEffect/Model/FireConfig.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 FireConfig: BaseConfig {
| `- note: add @available attribute to enclosing struct
23 | var content: [Content] = [
24 | .image(UIImage.loadFromBundle(named: .spark), .fireRed, 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), .fireRed, 0.5)
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/Extensions/UIImage+fromBundle.swift:12:62: error: cannot find type 'UIImage' in scope
10 | extension UIImage {
11 |
12 | public static func loadFromBundle(named name: String) -> UIImage {
| `- error: cannot find type 'UIImage' in scope
13 | return UIImage(named: name, in: Bundle.module, with: .none)!.withRenderingMode(.alwaysTemplate)
14 | }
BUILD FAILURE 6.0 macosSpm