Build Information
Failed to build StarRateView, reference main (b62286), with Swift 6.2 for macOS (SPM) on 20 Jun 2025 10:49:21 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/giiiita/StarRateView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/giiiita/StarRateView
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b62286a Merge pull request #1 from sajjadhajavi/add_new_properties
Cloned https://github.com/giiiita/StarRateView.git
Revision (git rev-parse @):
b62286a6c576b935317f68509d23a181935915e0
SUCCESS checkout https://github.com/giiiita/StarRateView.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/giiiita/StarRateView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module StarRateView
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/Star.swift:14:35: error: 'Path' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | struct Star: Shape {
| `- note: add @available attribute to enclosing struct
12 | let corners: Int
13 | let smoothness: CGFloat
14 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | guard corners >= 2 else { return Path() }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | private var starSize: CGFloat = 20
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:17:38: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
15 | private var starSize: CGFloat = 20
16 | private var starPadding: CGFloat = 8.0
17 | private var backgroundStarColor: Color = .white
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | private var borderStarColor: Color = .gray
19 | private var forgroundStarColor: Color = .yellow
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:17:47: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
15 | private var starSize: CGFloat = 20
16 | private var starPadding: CGFloat = 8.0
17 | private var backgroundStarColor: Color = .white
| `- error: 'white' is only available in macOS 10.15 or newer
18 | private var borderStarColor: Color = .gray
19 | private var forgroundStarColor: Color = .yellow
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:18:34: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
16 | private var starPadding: CGFloat = 8.0
17 | private var backgroundStarColor: Color = .white
18 | private var borderStarColor: Color = .gray
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | private var forgroundStarColor: Color = .yellow
20 | private var corners: Int = 5
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:18:43: error: 'gray' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
16 | private var starPadding: CGFloat = 8.0
17 | private var backgroundStarColor: Color = .white
18 | private var borderStarColor: Color = .gray
| `- error: 'gray' is only available in macOS 10.15 or newer
19 | private var forgroundStarColor: Color = .yellow
20 | private var corners: Int = 5
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:19:37: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
17 | private var backgroundStarColor: Color = .white
18 | private var borderStarColor: Color = .gray
19 | private var forgroundStarColor: Color = .yellow
| `- error: 'Color' is only available in macOS 10.15 or newer
20 | private var corners: Int = 5
21 | private var smoothness: CGFloat = 0.45
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:19:46: error: 'yellow' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
17 | private var backgroundStarColor: Color = .white
18 | private var borderStarColor: Color = .gray
19 | private var forgroundStarColor: Color = .yellow
| `- error: 'yellow' is only available in macOS 10.15 or newer
20 | private var corners: Int = 5
21 | private var smoothness: CGFloat = 0.45
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:25:39: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
23 | private var borderWidth: CGFloat = 5
24 |
25 | public init(starCount: Int, rate: Binding<Double>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.starCount = starCount
27 | self._rate = rate
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:39:27: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:71:58: error: 'Color' is only available in macOS 10.15 or newer
62 |
63 | @available(iOS 13.0, *)
64 | extension StarRateView: Buildable {
| `- note: add @available attribute to enclosing extension
65 | public func starSize(_ starSize: CGFloat) -> Self {
66 | mutating(keyPath: \.starSize, value: starSize)
:
69 | mutating(keyPath: \.starPadding, value: starPadding)
70 | }
71 | public func forgroundStarColor(_ forgroundStarColor: Color) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
72 | mutating(keyPath: \.forgroundStarColor, value: forgroundStarColor)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:74:60: error: 'Color' is only available in macOS 10.15 or newer
62 |
63 | @available(iOS 13.0, *)
64 | extension StarRateView: Buildable {
| `- note: add @available attribute to enclosing extension
65 | public func starSize(_ starSize: CGFloat) -> Self {
66 | mutating(keyPath: \.starSize, value: starSize)
:
72 | mutating(keyPath: \.forgroundStarColor, value: forgroundStarColor)
73 | }
74 | public func backgroundStarColor(_ backgroundStarColor: Color) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
75 | mutating(keyPath: \.backgroundStarColor, value: backgroundStarColor)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:77:52: error: 'Color' is only available in macOS 10.15 or newer
62 |
63 | @available(iOS 13.0, *)
64 | extension StarRateView: Buildable {
| `- note: add @available attribute to enclosing extension
65 | public func starSize(_ starSize: CGFloat) -> Self {
66 | mutating(keyPath: \.starSize, value: starSize)
:
75 | mutating(keyPath: \.backgroundStarColor, value: backgroundStarColor)
76 | }
77 | public func borderStarColor(_ borderStarColor: Color) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
78 | mutating(keyPath: \.borderStarColor, value: borderStarColor)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:94:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
92 | }
93 |
94 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
95 | StarRateView(starCount: 5, rate: .constant(2.5))
96 | .borderStarColor(.gray)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:96:27: error: 'gray' is only available in macOS 10.15 or newer
94 | #Preview {
95 | StarRateView(starCount: 5, rate: .constant(2.5))
96 | .borderStarColor(.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 |
[4/6] Compiling StarRateView Buildable.swift
[5/6] Compiling StarRateView Star.swift
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/Star.swift:14:35: error: 'Path' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | struct Star: Shape {
| `- note: add @available attribute to enclosing struct
12 | let corners: Int
13 | let smoothness: CGFloat
14 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 | guard corners >= 2 else { return Path() }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/Star.swift:15:42: error: 'Path' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | struct Star: Shape {
| `- note: add @available attribute to enclosing struct
12 | let corners: Int
13 | let smoothness: CGFloat
14 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
15 | guard corners >= 2 else { return Path() }
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 |
17 | let center = CGPoint(x: rect.width / 2, y: rect.height / 2)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/Star.swift:23:20: error: 'Path' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | struct Star: Shape {
| `- note: add @available attribute to enclosing struct
12 | let corners: Int
13 | let smoothness: CGFloat
14 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
15 | guard corners >= 2 else { return Path() }
16 |
:
21 | let innerY = center.y * smoothness
22 |
23 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | path.move(to: CGPoint(x: center.x * cos(currentAngle), y: center.y * sin(currentAngle)))
25 | var bottomEdge: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/Star.swift:24:14: error: 'move(to:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | struct Star: Shape {
| `- note: add @available attribute to enclosing struct
12 | let corners: Int
13 | let smoothness: CGFloat
14 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
15 | guard corners >= 2 else { return Path() }
16 |
:
22 |
23 | var path = Path()
24 | path.move(to: CGPoint(x: center.x * cos(currentAngle), y: center.y * sin(currentAngle)))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | var bottomEdge: CGFloat = 0
26 | for corner in 0..<corners * 2 {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/Star.swift:33:22: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | struct Star: Shape {
| `- note: add @available attribute to enclosing struct
12 | let corners: Int
13 | let smoothness: CGFloat
14 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
15 | guard corners >= 2 else { return Path() }
16 |
:
31 | if corner.isMultiple(of: 2) {
32 | bottom = center.y * sinAngle
33 | path.addLine(to: CGPoint(x: center.x * cosAngle, y: bottom))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | } else {
35 | bottom = innerY * sinAngle
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/Star.swift:36:22: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | struct Star: Shape {
| `- note: add @available attribute to enclosing struct
12 | let corners: Int
13 | let smoothness: CGFloat
14 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
15 | guard corners >= 2 else { return Path() }
16 |
:
34 | } else {
35 | bottom = innerY * sinAngle
36 | path.addLine(to: CGPoint(x: innerX * cosAngle, y: bottom))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/Star.swift:49:21: error: 'applying' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | struct Star: Shape {
| `- note: add @available attribute to enclosing struct
12 | let corners: Int
13 | let smoothness: CGFloat
14 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
15 | guard corners >= 2 else { return Path() }
16 |
:
47 |
48 | let transform = CGAffineTransform(translationX: center.x, y: center.y + unusedSpace)
49 | return path.applying(transform)
| |- error: 'applying' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | }
51 | }
[6/6] Compiling StarRateView StarRateView.swift
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | private var starSize: CGFloat = 20
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:17:38: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
15 | private var starSize: CGFloat = 20
16 | private var starPadding: CGFloat = 8.0
17 | private var backgroundStarColor: Color = .white
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | private var borderStarColor: Color = .gray
19 | private var forgroundStarColor: Color = .yellow
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:17:47: error: 'white' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
15 | private var starSize: CGFloat = 20
16 | private var starPadding: CGFloat = 8.0
17 | private var backgroundStarColor: Color = .white
| `- error: 'white' is only available in macOS 10.15 or newer
18 | private var borderStarColor: Color = .gray
19 | private var forgroundStarColor: Color = .yellow
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:18:34: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
16 | private var starPadding: CGFloat = 8.0
17 | private var backgroundStarColor: Color = .white
18 | private var borderStarColor: Color = .gray
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | private var forgroundStarColor: Color = .yellow
20 | private var corners: Int = 5
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:18:43: error: 'gray' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
16 | private var starPadding: CGFloat = 8.0
17 | private var backgroundStarColor: Color = .white
18 | private var borderStarColor: Color = .gray
| `- error: 'gray' is only available in macOS 10.15 or newer
19 | private var forgroundStarColor: Color = .yellow
20 | private var corners: Int = 5
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:19:37: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
17 | private var backgroundStarColor: Color = .white
18 | private var borderStarColor: Color = .gray
19 | private var forgroundStarColor: Color = .yellow
| `- error: 'Color' is only available in macOS 10.15 or newer
20 | private var corners: Int = 5
21 | private var smoothness: CGFloat = 0.45
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:19:46: error: 'yellow' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
17 | private var backgroundStarColor: Color = .white
18 | private var borderStarColor: Color = .gray
19 | private var forgroundStarColor: Color = .yellow
| `- error: 'yellow' is only available in macOS 10.15 or newer
20 | private var corners: Int = 5
21 | private var smoothness: CGFloat = 0.45
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:25:39: error: 'Binding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
23 | private var borderWidth: CGFloat = 5
24 |
25 | public init(starCount: Int, rate: Binding<Double>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.starCount = starCount
27 | self._rate = rate
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:39:27: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:71:58: error: 'Color' is only available in macOS 10.15 or newer
62 |
63 | @available(iOS 13.0, *)
64 | extension StarRateView: Buildable {
| `- note: add @available attribute to enclosing extension
65 | public func starSize(_ starSize: CGFloat) -> Self {
66 | mutating(keyPath: \.starSize, value: starSize)
:
69 | mutating(keyPath: \.starPadding, value: starPadding)
70 | }
71 | public func forgroundStarColor(_ forgroundStarColor: Color) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
72 | mutating(keyPath: \.forgroundStarColor, value: forgroundStarColor)
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:74:60: error: 'Color' is only available in macOS 10.15 or newer
62 |
63 | @available(iOS 13.0, *)
64 | extension StarRateView: Buildable {
| `- note: add @available attribute to enclosing extension
65 | public func starSize(_ starSize: CGFloat) -> Self {
66 | mutating(keyPath: \.starSize, value: starSize)
:
72 | mutating(keyPath: \.forgroundStarColor, value: forgroundStarColor)
73 | }
74 | public func backgroundStarColor(_ backgroundStarColor: Color) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
75 | mutating(keyPath: \.backgroundStarColor, value: backgroundStarColor)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:77:52: error: 'Color' is only available in macOS 10.15 or newer
62 |
63 | @available(iOS 13.0, *)
64 | extension StarRateView: Buildable {
| `- note: add @available attribute to enclosing extension
65 | public func starSize(_ starSize: CGFloat) -> Self {
66 | mutating(keyPath: \.starSize, value: starSize)
:
75 | mutating(keyPath: \.backgroundStarColor, value: backgroundStarColor)
76 | }
77 | public func borderStarColor(_ borderStarColor: Color) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
78 | mutating(keyPath: \.borderStarColor, value: borderStarColor)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:94:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
92 | }
93 |
94 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
95 | StarRateView(starCount: 5, rate: .constant(2.5))
96 | .borderStarColor(.gray)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:96:27: error: 'gray' is only available in macOS 10.15 or newer
94 | #Preview {
95 | StarRateView(starCount: 5, rate: .constant(2.5))
96 | .borderStarColor(.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 |
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:40:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:40:9: error: 'HStack' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:40:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:40:28: error: 'center' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:40:63: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
| |- warning: conformance of 'Color' to 'ShapeStyle' 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
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:40:63: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
| |- warning: conformance of 'Color' to 'ShapeStyle' 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
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:40:63: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
| |- warning: conformance of 'Color' to 'ShapeStyle' 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
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:41:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
42 | ZStack(alignment: .center) {
43 | Star(corners: self.corners, smoothness: self.smoothness)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:41:13: error: 'ForEach' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | ZStack(alignment: .center) {
43 | Star(corners: self.corners, smoothness: self.smoothness)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:41:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | ZStack(alignment: .center) {
43 | Star(corners: self.corners, smoothness: self.smoothness)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:41:53: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
| |- warning: conformance of 'Color' to 'ShapeStyle' 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
42 | ZStack(alignment: .center) {
43 | Star(corners: self.corners, smoothness: self.smoothness)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:41:53: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
| |- warning: conformance of 'Color' to 'ShapeStyle' 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
42 | ZStack(alignment: .center) {
43 | Star(corners: self.corners, smoothness: self.smoothness)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:41:53: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
| |- warning: conformance of 'Color' to 'ShapeStyle' 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
42 | ZStack(alignment: .center) {
43 | Star(corners: self.corners, smoothness: self.smoothness)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:42:17: error: 'ZStack' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | Star(corners: self.corners, smoothness: self.smoothness)
44 | .fill(self.borderStarColor)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:42:36: error: 'center' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | Star(corners: self.corners, smoothness: self.smoothness)
44 | .fill(self.borderStarColor)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:42:44: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
| |- warning: conformance of 'Color' to 'ShapeStyle' 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
43 | Star(corners: self.corners, smoothness: self.smoothness)
44 | .fill(self.borderStarColor)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:42:44: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
| |- warning: conformance of 'Color' to 'ShapeStyle' 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
43 | Star(corners: self.corners, smoothness: self.smoothness)
44 | .fill(self.borderStarColor)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:42:44: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
| |- warning: conformance of 'Color' to 'ShapeStyle' 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
43 | Star(corners: self.corners, smoothness: self.smoothness)
44 | .fill(self.borderStarColor)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:44:26: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
43 | Star(corners: self.corners, smoothness: self.smoothness)
44 | .fill(self.borderStarColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
45 | .frame(width: self.starSize, height: self.starSize)
46 | Star(corners: self.corners, smoothness: self.smoothness)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:45:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
:
43 | Star(corners: self.corners, smoothness: self.smoothness)
44 | .fill(self.borderStarColor)
45 | .frame(width: self.starSize, height: self.starSize)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | Star(corners: self.corners, smoothness: self.smoothness)
47 | .fill(self.backgroundStarColor)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:47:26: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
:
45 | .frame(width: self.starSize, height: self.starSize)
46 | Star(corners: self.corners, smoothness: self.smoothness)
47 | .fill(self.backgroundStarColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
48 | .frame(width: self.starSize - 5, height: self.starSize - 5)
49 | .offset(y: self.borderOffset)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:48:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
:
46 | Star(corners: self.corners, smoothness: self.smoothness)
47 | .fill(self.backgroundStarColor)
48 | .frame(width: self.starSize - 5, height: self.starSize - 5)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .offset(y: self.borderOffset)
50 | Star(corners: self.corners, smoothness: self.smoothness)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:49:26: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
:
47 | .fill(self.backgroundStarColor)
48 | .frame(width: self.starSize - 5, height: self.starSize - 5)
49 | .offset(y: self.borderOffset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | Star(corners: self.corners, smoothness: self.smoothness)
51 | .fill(self.forgroundStarColor)
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:51:26: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
:
49 | .offset(y: self.borderOffset)
50 | Star(corners: self.corners, smoothness: self.smoothness)
51 | .fill(self.forgroundStarColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
52 | .frame(width: self.starSize, height: self.starSize)
53 | .mask( Rectangle().padding(.trailing, self.calcStarSize(index: index)))
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:52:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
:
50 | Star(corners: self.corners, smoothness: self.smoothness)
51 | .fill(self.forgroundStarColor)
52 | .frame(width: self.starSize, height: self.starSize)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .mask( Rectangle().padding(.trailing, self.calcStarSize(index: index)))
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:53:26: error: 'mask' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
:
51 | .fill(self.forgroundStarColor)
52 | .frame(width: self.starSize, height: self.starSize)
53 | .mask( Rectangle().padding(.trailing, self.calcStarSize(index: index)))
| |- error: 'mask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:53:32: error: 'Rectangle' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
:
51 | .fill(self.forgroundStarColor)
52 | .frame(width: self.starSize, height: self.starSize)
53 | .mask( Rectangle().padding(.trailing, self.calcStarSize(index: index)))
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:53:44: error: 'padding' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
:
51 | .fill(self.forgroundStarColor)
52 | .frame(width: self.starSize, height: self.starSize)
53 | .mask( Rectangle().padding(.trailing, self.calcStarSize(index: index)))
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:55:18: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
:
53 | .mask( Rectangle().padding(.trailing, self.calcStarSize(index: index)))
54 | }
55 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | rate = Double(index + 1)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:56:21: error: setter for 'rate' is only available in macOS 10.15 or newer
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
:
54 | }
55 | .onTapGesture {
56 | rate = Double(index + 1)
| |- error: setter for 'rate' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:40:63: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
41 | ForEach(0..<self.starCount, id: \.self) { index in
42 | ZStack(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:39:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/StarRateView/StarRateView.swift:39:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | @available(iOS 13.0, *)
11 | public struct StarRateView: View {
| `- note: add @available attribute to enclosing struct
12 | let starCount: Int
13 | @Binding var rate: Double
:
37 | }
38 |
39 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
40 | HStack(alignment: .center, spacing: self.starPadding) {
41 | ForEach(0..<self.starCount, id: \.self) { index in
BUILD FAILURE 6.2 macosSpm