Build Information
Failed to build Gradiente, reference main (929208
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 20:08:40 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/letvarhq/Gradiente.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/letvarhq/Gradiente
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 9292086 Updated readme image
Cloned https://github.com/letvarhq/Gradiente.git
Revision (git rev-parse @):
9292086cd80d4652d4b44d3967cdbba9c71c932f
SUCCESS checkout https://github.com/letvarhq/Gradiente.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "gradiente",
"name": "Gradiente",
"url": "https://github.com/letvarhq/Gradiente.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Gradiente",
"dependencies": [
]
}
]
}
Fetching https://github.com/letvarhq/Gradiente.git
[1/48] Fetching gradiente
Fetched https://github.com/letvarhq/Gradiente.git from cache (1.40s)
Creating working copy for https://github.com/letvarhq/Gradiente.git
Working copy of https://github.com/letvarhq/Gradiente.git resolved at main (9292086)
warning: '.resolve-product-dependencies': dependency 'gradiente' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/letvarhq/Gradiente.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module Gradiente
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:14:25: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public enum Position {
| `- note: add @available attribute to enclosing enum
11 | case top
12 | case bottom
13 |
14 | var shadowGradient: LinearGradient {
| | `- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
15 | switch self {
16 | case .top:
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
| `- error: 'State' is only available in macOS 10.15 or newer
35 | @State var colors: [Color]?
36 | @State var gradient: Gradient?
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:35:25: error: 'Color' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
35 | @State var colors: [Color]?
| `- error: 'Color' is only available in macOS 10.15 or newer
36 | @State var gradient: Gradient?
37 | @State var opacity: Double
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:35:6: error: 'State' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
35 | @State var colors: [Color]?
| `- error: 'State' is only available in macOS 10.15 or newer
36 | @State var gradient: Gradient?
37 | @State var opacity: Double
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:36:26: error: 'Gradient' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
35 | @State var colors: [Color]?
36 | @State var gradient: Gradient?
| `- error: 'Gradient' is only available in macOS 10.15 or newer
37 | @State var opacity: Double
38 | @State var height: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:36:6: error: 'State' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
35 | @State var colors: [Color]?
36 | @State var gradient: Gradient?
| `- error: 'State' is only available in macOS 10.15 or newer
37 | @State var opacity: Double
38 | @State var height: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:37:6: error: 'State' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
35 | @State var colors: [Color]?
36 | @State var gradient: Gradient?
37 | @State var opacity: Double
| `- error: 'State' is only available in macOS 10.15 or newer
38 | @State var height: CGFloat
39 |
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:38:6: error: 'State' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
36 | @State var gradient: Gradient?
37 | @State var opacity: Double
38 | @State var height: CGFloat
| `- error: 'State' is only available in macOS 10.15 or newer
39 |
40 | init(position: Position, opacity: Double, height: CGFloat, colors: [Color]) {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:40:73: error: 'Color' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
38 | @State var height: CGFloat
39 |
40 | init(position: Position, opacity: Double, height: CGFloat, colors: [Color]) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
41 | var colors = colors
42 | if colors.count > 1, colors.first != colors.last, let first = colors.first {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:54:74: error: 'Gradient' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
52 | }
53 |
54 | init(position: Position, opacity: Double, height: CGFloat, gradient: Gradient) {
| | `- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
55 | self.position = position
56 | self.gradient = gradient
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:61:48: error: 'View' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:92:26: error: 'AngularGradient' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
90 | }
91 |
92 | var angularGradient: AngularGradient {
| | `- error: 'AngularGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
93 | let center = UnitPoint(x: 0.5, y: 0.5)
94 | if let gradient {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:108:46: error: 'Color' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
106 | opacity: Double = 1.0,
107 | height: CGFloat = 300.0,
108 | colors: [Color]) -> some View {
| `- error: 'Color' is only available in macOS 10.15 or newer
109 | modifier(Gradiente(position: position, opacity: opacity, height: height, colors: colors))
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:108:62: error: 'View' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
106 | opacity: Double = 1.0,
107 | height: CGFloat = 300.0,
108 | colors: [Color]) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
109 | modifier(Gradiente(position: position, opacity: opacity, height: height, colors: colors))
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:115:47: error: 'Gradient' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
106 | opacity: Double = 1.0,
:
110 | }
111 |
112 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
113 | opacity: Double = 1.0,
114 | height: CGFloat = 300.0,
115 | gradient: Gradient) -> some View {
| `- error: 'Gradient' is only available in macOS 10.15 or newer
116 | modifier(Gradiente(position: position, opacity: opacity, height: height, gradient: gradient))
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:115:65: error: 'View' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
106 | opacity: Double = 1.0,
:
110 | }
111 |
112 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
113 | opacity: Double = 1.0,
114 | height: CGFloat = 300.0,
115 | gradient: Gradient) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
116 | modifier(Gradiente(position: position, opacity: opacity, height: height, gradient: gradient))
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:104:11: error: 'View' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
106 | opacity: Double = 1.0,
[4/4] Compiling Gradiente Gradiente.swift
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:14:25: error: 'LinearGradient' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public enum Position {
| `- note: add @available attribute to enclosing enum
11 | case top
12 | case bottom
13 |
14 | var shadowGradient: LinearGradient {
| | `- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
15 | switch self {
16 | case .top:
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
| `- error: 'State' is only available in macOS 10.15 or newer
35 | @State var colors: [Color]?
36 | @State var gradient: Gradient?
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:35:25: error: 'Color' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
35 | @State var colors: [Color]?
| `- error: 'Color' is only available in macOS 10.15 or newer
36 | @State var gradient: Gradient?
37 | @State var opacity: Double
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:35:6: error: 'State' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
35 | @State var colors: [Color]?
| `- error: 'State' is only available in macOS 10.15 or newer
36 | @State var gradient: Gradient?
37 | @State var opacity: Double
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:36:26: error: 'Gradient' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
35 | @State var colors: [Color]?
36 | @State var gradient: Gradient?
| `- error: 'Gradient' is only available in macOS 10.15 or newer
37 | @State var opacity: Double
38 | @State var height: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:36:6: error: 'State' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
35 | @State var colors: [Color]?
36 | @State var gradient: Gradient?
| `- error: 'State' is only available in macOS 10.15 or newer
37 | @State var opacity: Double
38 | @State var height: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:37:6: error: 'State' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
35 | @State var colors: [Color]?
36 | @State var gradient: Gradient?
37 | @State var opacity: Double
| `- error: 'State' is only available in macOS 10.15 or newer
38 | @State var height: CGFloat
39 |
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:38:6: error: 'State' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
36 | @State var gradient: Gradient?
37 | @State var opacity: Double
38 | @State var height: CGFloat
| `- error: 'State' is only available in macOS 10.15 or newer
39 |
40 | init(position: Position, opacity: Double, height: CGFloat, colors: [Color]) {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:40:73: error: 'Color' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
38 | @State var height: CGFloat
39 |
40 | init(position: Position, opacity: Double, height: CGFloat, colors: [Color]) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
41 | var colors = colors
42 | if colors.count > 1, colors.first != colors.last, let first = colors.first {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:54:74: error: 'Gradient' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
52 | }
53 |
54 | init(position: Position, opacity: Double, height: CGFloat, gradient: Gradient) {
| | `- error: 'Gradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
55 | self.position = position
56 | self.gradient = gradient
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:61:48: error: 'View' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:92:26: error: 'AngularGradient' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
90 | }
91 |
92 | var angularGradient: AngularGradient {
| | `- error: 'AngularGradient' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
93 | let center = UnitPoint(x: 0.5, y: 0.5)
94 | if let gradient {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:108:46: error: 'Color' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
106 | opacity: Double = 1.0,
107 | height: CGFloat = 300.0,
108 | colors: [Color]) -> some View {
| `- error: 'Color' is only available in macOS 10.15 or newer
109 | modifier(Gradiente(position: position, opacity: opacity, height: height, colors: colors))
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:108:62: error: 'View' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
106 | opacity: Double = 1.0,
107 | height: CGFloat = 300.0,
108 | colors: [Color]) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
109 | modifier(Gradiente(position: position, opacity: opacity, height: height, colors: colors))
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:115:47: error: 'Gradient' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
106 | opacity: Double = 1.0,
:
110 | }
111 |
112 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
113 | opacity: Double = 1.0,
114 | height: CGFloat = 300.0,
115 | gradient: Gradient) -> some View {
| `- error: 'Gradient' is only available in macOS 10.15 or newer
116 | modifier(Gradiente(position: position, opacity: opacity, height: height, gradient: gradient))
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:115:65: error: 'View' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
106 | opacity: Double = 1.0,
:
110 | }
111 |
112 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
113 | opacity: Double = 1.0,
114 | height: CGFloat = 300.0,
115 | gradient: Gradient) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
116 | modifier(Gradiente(position: position, opacity: opacity, height: height, gradient: gradient))
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:104:11: error: 'View' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
106 | opacity: Double = 1.0,
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:18:41: error: reference to member 'systemBackground' cannot be resolved without a contextual type
16 | case .top:
17 | return LinearGradient(
18 | colors: [.clear, Color(.systemBackground)],
| `- error: reference to member 'systemBackground' cannot be resolved without a contextual type
19 | startPoint: UnitPoint(x: 0, y: -0.25),
20 | endPoint: UnitPoint(x: 0, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:24:33: error: reference to member 'systemBackground' cannot be resolved without a contextual type
22 | case .bottom:
23 | return LinearGradient(
24 | colors: [Color(.systemBackground), .clear],
| `- error: reference to member 'systemBackground' cannot be resolved without a contextual type
25 | startPoint: UnitPoint(x: 0, y: 0),
26 | endPoint: UnitPoint(x: 0, y: 1.25)
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:48:9: error: setter for 'colors' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
38 | @State var height: CGFloat
39 |
40 | init(position: Position, opacity: Double, height: CGFloat, colors: [Color]) {
| `- note: add @available attribute to enclosing initializer
41 | var colors = colors
42 | if colors.count > 1, colors.first != colors.last, let first = colors.first {
:
46 | colors.reverse()
47 | }
48 | self.colors = colors
| |- error: setter for 'colors' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | self.position = position
50 | self.opacity = opacity
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:49:9: error: setter for 'position' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
38 | @State var height: CGFloat
39 |
40 | init(position: Position, opacity: Double, height: CGFloat, colors: [Color]) {
| `- note: add @available attribute to enclosing initializer
41 | var colors = colors
42 | if colors.count > 1, colors.first != colors.last, let first = colors.first {
:
47 | }
48 | self.colors = colors
49 | self.position = position
| |- error: setter for 'position' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | self.opacity = opacity
51 | self.height = height
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:50:9: error: setter for 'opacity' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
38 | @State var height: CGFloat
39 |
40 | init(position: Position, opacity: Double, height: CGFloat, colors: [Color]) {
| `- note: add @available attribute to enclosing initializer
41 | var colors = colors
42 | if colors.count > 1, colors.first != colors.last, let first = colors.first {
:
48 | self.colors = colors
49 | self.position = position
50 | self.opacity = opacity
| |- error: setter for 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | self.height = height
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:51:9: error: setter for 'height' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
38 | @State var height: CGFloat
39 |
40 | init(position: Position, opacity: Double, height: CGFloat, colors: [Color]) {
| `- note: add @available attribute to enclosing initializer
41 | var colors = colors
42 | if colors.count > 1, colors.first != colors.last, let first = colors.first {
:
49 | self.position = position
50 | self.opacity = opacity
51 | self.height = height
| |- error: setter for 'height' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 |
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:55:9: error: setter for 'position' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
52 | }
53 |
54 | init(position: Position, opacity: Double, height: CGFloat, gradient: Gradient) {
| `- note: add @available attribute to enclosing initializer
55 | self.position = position
| |- error: setter for 'position' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | self.gradient = gradient
57 | self.opacity = opacity
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:56:9: error: setter for 'gradient' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
52 | }
53 |
54 | init(position: Position, opacity: Double, height: CGFloat, gradient: Gradient) {
| `- note: add @available attribute to enclosing initializer
55 | self.position = position
56 | self.gradient = gradient
| |- error: setter for 'gradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | self.opacity = opacity
58 | self.height = height
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:57:9: error: setter for 'opacity' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
52 | }
53 |
54 | init(position: Position, opacity: Double, height: CGFloat, gradient: Gradient) {
| `- note: add @available attribute to enclosing initializer
55 | self.position = position
56 | self.gradient = gradient
57 | self.opacity = opacity
| |- error: setter for 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | self.height = height
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:58:9: error: setter for 'height' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
52 | }
53 |
54 | init(position: Position, opacity: Double, height: CGFloat, gradient: Gradient) {
| `- note: add @available attribute to enclosing initializer
55 | self.position = position
56 | self.gradient = gradient
57 | self.opacity = opacity
58 | self.height = height
| |- error: setter for 'height' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:62:9: error: 'ZStack' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | VStack {
64 |
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:63:13: error: 'VStack' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 |
65 | if position == .bottom {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:66:21: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
64 |
65 | if position == .bottom {
66 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:66:21: error: 'Spacer' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
64 |
65 | if position == .bottom {
66 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:65:40: error: 'buildIf' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
64 |
65 | if position == .bottom {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | Spacer()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:65:40: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
64 |
65 | if position == .bottom {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
66 | Spacer()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:67:17: error: 'buildIf' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
65 | if position == .bottom {
66 | Spacer()
67 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 |
69 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:69:17: error: 'ZStack' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
67 | }
68 |
69 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | Rectangle()
71 | .fill(angularGradient)
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:70:21: error: 'Rectangle' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
68 |
69 | ZStack {
70 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .fill(angularGradient)
72 | .blur(radius: 50.0, opaque: true)
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:71:26: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
69 | ZStack {
70 | Rectangle()
71 | .fill(angularGradient)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
72 | .blur(radius: 50.0, opaque: true)
73 | .clipped()
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:72:26: error: 'blur(radius:opaque:)' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
70 | Rectangle()
71 | .fill(angularGradient)
72 | .blur(radius: 50.0, opaque: true)
| |- error: 'blur(radius:opaque:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | .clipped()
74 | .opacity(opacity)
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:73:26: error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
71 | .fill(angularGradient)
72 | .blur(radius: 50.0, opaque: true)
73 | .clipped()
| |- error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | .opacity(opacity)
75 |
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:74:26: error: 'opacity' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
72 | .blur(radius: 50.0, opaque: true)
73 | .clipped()
74 | .opacity(opacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 |
76 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:76:21: error: 'Rectangle' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
74 | .opacity(opacity)
75 |
76 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .fill(position.shadowGradient)
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:77:26: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
75 |
76 | Rectangle()
77 | .fill(position.shadowGradient)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
78 | }
79 | .frame(height: height)
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:79:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
77 | .fill(position.shadowGradient)
78 | }
79 | .frame(height: height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 |
81 | if position == .top {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:82:21: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
80 |
81 | if position == .top {
82 | Spacer()
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:82:21: error: 'Spacer' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
80 |
81 | if position == .top {
82 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:81:37: error: 'buildIf' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
79 | .frame(height: height)
80 |
81 | if position == .top {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Spacer()
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:81:37: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
79 | .frame(height: height)
80 |
81 | if position == .top {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
82 | Spacer()
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:83:17: error: 'buildIf' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
81 | if position == .top {
82 | Spacer()
83 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | }
85 | .ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:63:20: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
64 |
65 | if position == .bottom {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:63:20: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
64 |
65 | if position == .bottom {
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:85:14: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
83 | }
84 | }
85 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
86 |
87 | content
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:88:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
86 |
87 | content
88 | .background(.clear)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
89 | }
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:88:30: error: 'clear' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
59 | }
60 |
61 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
62 | ZStack {
63 | VStack {
:
86 |
87 | content
88 | .background(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:93:22: error: 'UnitPoint' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
90 | }
91 |
92 | var angularGradient: AngularGradient {
| `- note: add @available attribute to enclosing property
93 | let center = UnitPoint(x: 0.5, y: 0.5)
| |- error: 'UnitPoint' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | if let gradient {
95 | return AngularGradient(gradient: gradient, center: center)
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:95:20: error: 'AngularGradient' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
90 | }
91 |
92 | var angularGradient: AngularGradient {
| `- note: add @available attribute to enclosing property
93 | let center = UnitPoint(x: 0.5, y: 0.5)
94 | if let gradient {
95 | return AngularGradient(gradient: gradient, center: center)
| |- error: 'AngularGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | } else if let colors {
97 | return AngularGradient(colors: colors, center: center)
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:97:20: error: 'AngularGradient' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
90 | }
91 |
92 | var angularGradient: AngularGradient {
| `- note: add @available attribute to enclosing property
93 | let center = UnitPoint(x: 0.5, y: 0.5)
94 | if let gradient {
95 | return AngularGradient(gradient: gradient, center: center)
96 | } else if let colors {
97 | return AngularGradient(colors: colors, center: center)
| |- error: 'AngularGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | } else {
99 | return AngularGradient(colors: [.accentColor], center: center)
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:99:20: error: 'AngularGradient' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
90 | }
91 |
92 | var angularGradient: AngularGradient {
| `- note: add @available attribute to enclosing property
93 | let center = UnitPoint(x: 0.5, y: 0.5)
94 | if let gradient {
:
97 | return AngularGradient(colors: colors, center: center)
98 | } else {
99 | return AngularGradient(colors: [.accentColor], center: center)
| |- error: 'AngularGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:99:46: error: 'accentColor' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct Gradiente: ViewModifier {
| `- note: add @available attribute to enclosing struct
33 |
34 | @State var position: Position
:
90 | }
91 |
92 | var angularGradient: AngularGradient {
| `- note: add @available attribute to enclosing property
93 | let center = UnitPoint(x: 0.5, y: 0.5)
94 | if let gradient {
:
97 | return AngularGradient(colors: colors, center: center)
98 | } else {
99 | return AngularGradient(colors: [.accentColor], center: center)
| |- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:109:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
106 | opacity: Double = 1.0,
107 | height: CGFloat = 300.0,
108 | colors: [Color]) -> some View {
109 | modifier(Gradiente(position: position, opacity: opacity, height: height, colors: colors))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
110 | }
111 |
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:109:9: error: 'modifier' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
106 | opacity: Double = 1.0,
107 | height: CGFloat = 300.0,
108 | colors: [Color]) -> some View {
109 | modifier(Gradiente(position: position, opacity: opacity, height: height, colors: colors))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | }
111 |
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:116:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
106 | opacity: Double = 1.0,
:
110 | }
111 |
112 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
113 | opacity: Double = 1.0,
114 | height: CGFloat = 300.0,
115 | gradient: Gradient) -> some View {
116 | modifier(Gradiente(position: position, opacity: opacity, height: height, gradient: gradient))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Gradiente/Gradiente.swift:116:9: error: 'modifier' is only available in macOS 10.15 or newer
102 | }
103 |
104 | extension View {
| `- note: add @available attribute to enclosing extension
105 | public func gradienteBackground(position: Position = .top,
106 | opacity: Double = 1.0,
:
110 | }
111 |
112 | public func gradienteBackground(position: Position = .top,
| `- note: add @available attribute to enclosing instance method
113 | opacity: Double = 1.0,
114 | height: CGFloat = 300.0,
115 | gradient: Gradient) -> some View {
116 | modifier(Gradiente(position: position, opacity: opacity, height: height, gradient: gradient))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
117 | }
118 | }
BUILD FAILURE 6.0 macosSpm