Build Information
Failed to build WWCircularRangePickerUI, reference 1.0.1 (78dc3b), with Swift 6.1 for macOS (SPM) on 16 Jul 2026 19:20:34 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
21 | set {
22 | startAngle = .degrees(newValue.first)
| |- warning: conformance of 'Double' to 'VectorArithmetic' 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
23 | endAngle = .degrees(newValue.second)
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:23:42: warning: conformance of 'Double' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
21 | set {
22 | startAngle = .degrees(newValue.first)
23 | endAngle = .degrees(newValue.second)
| |- warning: conformance of 'Double' to 'VectorArithmetic' 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
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:23:42: warning: conformance of 'Double' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
21 | set {
22 | startAngle = .degrees(newValue.first)
23 | endAngle = .degrees(newValue.second)
| |- warning: conformance of 'Double' to 'VectorArithmetic' 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
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:45:20: error: 'Path' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
33 | /// - Parameter rect: 圖形繪製所使用的矩形範圍
34 | /// - Returns: 對應起始角度與結束角度的圓弧路徑
35 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
36 |
37 | let center = rect.center
:
43 | if end < start { end += 360 }
44 |
45 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | path.addArc(center: center, radius: radius, startAngle: .degrees(start), endAngle: .degrees(end), clockwise: false)
47 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:46:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
33 | /// - Parameter rect: 圖形繪製所使用的矩形範圍
34 | /// - Returns: 對應起始角度與結束角度的圓弧路徑
35 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
36 |
37 | let center = rect.center
:
44 |
45 | var path = Path()
46 | path.addArc(center: center, radius: radius, startAngle: .degrees(start), endAngle: .degrees(end), clockwise: false)
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 |
48 | return path
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/10] Emitting module WWCircularRangePickerUI
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:94:46: error: 'Angle' is only available in macOS 10.15 or newer
80 |
81 | // MARK: - CGPoint
82 | extension CGPoint {
| `- note: add @available attribute to enclosing extension
83 |
84 | /// 以 `self` 為圓心,計算指向指定座標的「時鐘角度」
:
92 | /// - Parameter location: 使用者目前拖曳到的位置,通常是手指或 handle 的座標
93 | /// - Returns: 以 12 點鐘方向為起點的角度值
94 | func clockAngle(to location: CGPoint) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
95 |
96 | let dx = location.x - x
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:126:68: error: 'Angle' is only available in macOS 10.15 or newer
114 |
115 | // MARK: - Angle
116 | extension Angle {
| `- note: add @available attribute to enclosing extension
117 |
118 | /// 將分鐘值映射為圓形控制項上的角度
:
124 | /// - totalMinutes: 整個圓周代表的總分鐘數
125 | /// - Returns: 對應的時鐘角度
126 | static func clockAngle(for minutes: Int, totalMinutes: Int) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
127 | .degrees((Double(minutes) / Double(totalMinutes)) * 360.0)
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:116:11: error: 'Angle' is only available in macOS 10.15 or newer
114 |
115 | // MARK: - Angle
116 | extension Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
117 |
118 | /// 將分鐘值映射為圓形控制項上的角度
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:135:21: error: 'Angle' is only available in macOS 10.15 or newer
130 |
131 | // MARK: - Angle
132 | extension Angle {
| `- note: add @available attribute to enclosing extension
133 |
134 | /// 0° ..< 360°
135 | var normalized: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
136 | let value = (degrees.truncatingRemainder(dividingBy: 360) + 360).truncatingRemainder(dividingBy: 360)
137 | return .degrees(value)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:141:27: error: 'Angle' is only available in macOS 10.15 or newer
130 |
131 | // MARK: - Angle
132 | extension Angle {
| `- note: add @available attribute to enclosing extension
133 |
134 | /// 0° ..< 360°
:
139 |
140 | /// -180° ..< 180°
141 | var signedNormalized: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
142 | let value = normalized.degrees
143 | return value >= 180 ? .degrees(value - 360) : .degrees(value)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:132:11: error: 'Angle' is only available in macOS 10.15 or newer
130 |
131 | // MARK: - Angle
132 | extension Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
133 |
134 | /// 0° ..< 360°
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:189:48: error: 'Angle' is only available in macOS 10.15 or newer
146 |
147 | // MARK: - Angle
148 | extension Angle {
| `- note: add @available attribute to enclosing extension
149 |
150 | /// 將目前角度轉換為圓周上的座標點
:
187 |
188 | /// 先正規化再吸附,適合 UI 顯示值
189 | func normalizedAndSnapped(step: Double) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
190 | normalized.snapped(step: step)
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:195:39: error: 'Angle' is only available in macOS 10.15 or newer
146 |
147 | // MARK: - Angle
148 | extension Angle {
| `- note: add @available attribute to enclosing extension
149 |
150 | /// 將目前角度轉換為圓周上的座標點
:
193 | /// 為了動畫連續性,回傳最接近 current 的等價角度
194 | /// 例如 current = 350, target = 10,會回傳 370 而不是 10
195 | func unwrapped(closestTo current: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
196 | current + current.shortestDelta(to: self)
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:195:49: error: 'Angle' is only available in macOS 10.15 or newer
146 |
147 | // MARK: - Angle
148 | extension Angle {
| `- note: add @available attribute to enclosing extension
149 |
150 | /// 將目前角度轉換為圓周上的座標點
:
193 | /// 為了動畫連續性,回傳最接近 current 的等價角度
194 | /// 例如 current = 350, target = 10,會回傳 370 而不是 10
195 | func unwrapped(closestTo current: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
196 | current + current.shortestDelta(to: self)
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:148:11: error: 'Angle' is only available in macOS 10.15 or newer
146 |
147 | // MARK: - Angle
148 | extension Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
149 |
150 | /// 將目前角度轉換為圓周上的座標點
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:204:35: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
204 | func snapped(step: Double) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
205 | guard step != 0 else { return self }
206 | let snapped = (degrees / step).rounded() * step
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:211:35: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
:
209 |
210 | /// 沿最短路徑前進後的新角度
211 | func advancedToward(_ target: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
212 | self + shortestDelta(to: target)
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:211:45: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
:
209 |
210 | /// 沿最短路徑前進後的新角度
211 | func advancedToward(_ target: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
212 | self + shortestDelta(to: target)
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:216:35: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
:
214 |
215 | /// self 到 target 的最短角度差,結果落在 -180° ..< 180°
216 | func shortestDelta(to target: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
217 | (target - self).signedNormalized
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:216:45: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
:
214 |
215 | /// self 到 target 的最短角度差,結果落在 -180° ..< 180°
216 | func shortestDelta(to target: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
217 | (target - self).signedNormalized
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:201:19: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:18:20: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個型別用來描述單一刻度線的幾何與視覺屬性,包含刻度線相對圓周的內縮與外凸距離、線寬,以及顏色
13 | public struct DialTickStyle {
| `- note: add @available attribute to enclosing struct
14 |
15 | let inset: CGFloat
16 | let outset: CGFloat
17 | let lineWidth: CGFloat
18 | let lineColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
19 |
20 | /// 建立一組刻度線樣式
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:27:81: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個型別用來描述單一刻度線的幾何與視覺屬性,包含刻度線相對圓周的內縮與外凸距離、線寬,以及顏色
13 | public struct DialTickStyle {
| `- note: add @available attribute to enclosing struct
14 |
15 | let inset: CGFloat
:
25 | /// - lineWidth: 刻度線的粗細
26 | /// - lineColor: 刻度線的顏色
27 | public init(inset: CGFloat, outset: CGFloat, lineWidth: CGFloat, lineColor: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
28 | self.inset = inset
29 | self.outset = outset
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:38:21: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct Configure {
| `- note: add @available attribute to enclosing struct
36 |
37 | let lineWidth: CGFloat
38 | let innerColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
39 | let outerColor: Color
40 | let tickCount: Int
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:39:21: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct Configure {
| `- note: add @available attribute to enclosing struct
36 |
37 | let lineWidth: CGFloat
38 | let innerColor: Color
39 | let outerColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
40 | let tickCount: Int
41 | let tickStride: Int
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:43:49: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct Configure {
| `- note: add @available attribute to enclosing struct
36 |
37 | let lineWidth: CGFloat
:
41 | let tickStride: Int
42 |
43 | public init(lineWidth: CGFloat, innerColor: Color, outerColor: Color, tickCount: Int, tickStride: Int) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
44 | self.lineWidth = lineWidth
45 | self.innerColor = innerColor
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:43:68: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct Configure {
| `- note: add @available attribute to enclosing struct
36 |
37 | let lineWidth: CGFloat
:
41 | let tickStride: Int
42 |
43 | public init(lineWidth: CGFloat, innerColor: Color, outerColor: Color, tickCount: Int, tickStride: Int) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
44 | self.lineWidth = lineWidth
45 | self.innerColor = innerColor
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:17:27: error: 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:59:20: error: 'Color' is only available in macOS 10.15 or newer
46 |
47 | // MARK: - 私有屬性
48 | private extension DialHandleIcon.Kind {
| `- note: add @available attribute to enclosing extension
49 |
50 | /// 各種把手樣式對應的 SF Symbol 名稱
:
57 |
58 | /// 各種把手樣式對應的主色
59 | var iconColor: Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
60 | switch self {
61 | case .moon: return .blue
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:190: error: 'primary' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'primary' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:198: error: 'opacity' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:301: error: 'primary' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'primary' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:309: error: 'opacity' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:40:27: error: 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
38 | }
39 |
40 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
41 |
42 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:62:85: error: 'View' is only available in macOS 10.15 or newer
49 |
50 | // MARK: - 私有API
51 | private extension DialTicksLayer {
| `- note: add @available attribute to enclosing extension
52 |
53 | /// 建立指定索引的刻度線視圖
:
60 | /// - majorTickStride: 主要刻度的間隔
61 | /// - Returns: 對應索引的刻度線視圖
62 | func tickView(at index: Int, totalTickCount: Int, majorTickStride: Int) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
63 |
64 | let isMajor = index % majorTickStride == 0
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:84:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
82 | }
83 |
84 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
85 | DialTicksLayer(center: .init(x: 180, y: 180), radius: 156)
86 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:86:10: error: 'padding' is only available in macOS 10.15 or newer
84 | #Preview {
85 | DialTicksLayer(center: .init(x: 180, y: 180), radius: 156)
86 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:258:6: error: 'Previewable()' is only available in macOS 14.0 or newer
256 | #Preview {
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
259 | @Previewable @State var endAngle: Angle = .degrees(90)
260 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:258:41: error: 'Angle' is only available in macOS 10.15 or newer
256 | #Preview {
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
259 | @Previewable @State var endAngle: Angle = .degrees(90)
260 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:258:19: error: 'State' is only available in macOS 10.15 or newer
256 | #Preview {
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
259 | @Previewable @State var endAngle: Angle = .degrees(90)
260 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:259:6: error: 'Previewable()' is only available in macOS 14.0 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
259 | @Previewable @State var endAngle: Angle = .degrees(90)
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
260 |
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:259:39: error: 'Angle' is only available in macOS 10.15 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
259 | @Previewable @State var endAngle: Angle = .degrees(90)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
260 |
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:259:19: error: 'State' is only available in macOS 10.15 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
259 | @Previewable @State var endAngle: Angle = .degrees(90)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
260 |
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:256:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
254 | }
255 |
256 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:263:7: error: 'padding' is only available in macOS 10.15 or newer
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
262 | print("\(startIndex), \(endIndex)")
263 | }.padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:15:21: error: 'Angle' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
| `- error: 'Angle' is only available in macOS 10.15 or newer
16 | var endAngle: Angle // 弧線結束角度
17 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:16:19: error: 'Angle' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
16 | var endAngle: Angle // 弧線結束角度
| `- error: 'Angle' is only available in macOS 10.15 or newer
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:19:25: error: 'AnimatablePair' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| | `- error: 'AnimatablePair' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
21 | set {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:35:35: error: 'Path' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
33 | /// - Parameter rect: 圖形繪製所使用的矩形範圍
34 | /// - Returns: 對應起始角度與結束角度的圓弧路徑
35 | 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
36 |
37 | let center = rect.center
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:12:38: error: 'Angle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
13 | @Binding private var endAngle: Angle
14 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | @Binding private var endAngle: Angle
14 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:13:36: error: 'Angle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
13 | @Binding private var endAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
14 |
15 | @State private var displayStartAngle: Angle
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
13 | @Binding private var endAngle: Angle
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | @State private var displayStartAngle: Angle
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:15:43: error: 'Angle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
13 | @Binding private var endAngle: Angle
14 |
15 | @State private var displayStartAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
16 | @State private var displayEndAngle: Angle
17 | @State private var activeHandle: ActiveHandle?
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
13 | @Binding private var endAngle: Angle
14 |
15 | @State private var displayStartAngle: Angle
| `- error: 'State' is only available in macOS 10.15 or newer
16 | @State private var displayEndAngle: Angle
17 | @State private var activeHandle: ActiveHandle?
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:16:41: error: 'Angle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
14 |
15 | @State private var displayStartAngle: Angle
16 | @State private var displayEndAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
17 | @State private var activeHandle: ActiveHandle?
18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
14 |
15 | @State private var displayStartAngle: Angle
16 | @State private var displayEndAngle: Angle
| `- error: 'State' is only available in macOS 10.15 or newer
17 | @State private var activeHandle: ActiveHandle?
18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
15 | @State private var displayStartAngle: Angle
16 | @State private var displayEndAngle: Angle
17 | @State private var activeHandle: ActiveHandle?
| `- error: 'State' is only available in macOS 10.15 or newer
18 |
19 | private let startView: StartView
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:25:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:84:51: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
82 | /// - endView: 終點View
83 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
84 | public init(configure: Configure, startAngle: Binding<Angle>, endAngle: Binding<Angle>, startView: StartView, endView: EndView, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
85 |
86 | let start = startAngle.wrappedValue.normalized
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:84:77: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
82 | /// - endView: 終點View
83 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
84 | public init(configure: Configure, startAngle: Binding<Angle>, endAngle: Binding<Angle>, startView: StartView, endView: EndView, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
85 |
86 | let start = startAngle.wrappedValue.normalized
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:10:50: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:10:65: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:112:29: error: 'Binding' is only available in macOS 10.15 or newer
100 |
101 | // MARK: - 公開API
102 | extension WWCircularRangePickerUI where StartView == DialHandleIcon, EndView == DialHandleIcon {
| `- note: add @available attribute to enclosing extension
103 |
104 | /// 快速初始化 `SelectingView`
:
110 | /// - endAngle: 終點角度的 `Binding<Angle>`
111 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
112 | public init(startAngle: Binding<Angle>, endAngle: Binding<Angle>, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
113 |
114 | let configure: Configure = .init(lineWidth: 44, innerColor: .gray.opacity(0.2), outerColor: .yellow.opacity(0.5), tickCount: 72, tickStride: 6)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:112:55: error: 'Binding' is only available in macOS 10.15 or newer
100 |
101 | // MARK: - 公開API
102 | extension WWCircularRangePickerUI where StartView == DialHandleIcon, EndView == DialHandleIcon {
| `- note: add @available attribute to enclosing extension
103 |
104 | /// 快速初始化 `SelectingView`
:
110 | /// - endAngle: 終點角度的 `Binding<Angle>`
111 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
112 | public init(startAngle: Binding<Angle>, endAngle: Binding<Angle>, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
113 |
114 | let configure: Configure = .init(lineWidth: 44, innerColor: .gray.opacity(0.2), outerColor: .yellow.opacity(0.5), tickCount: 72, tickStride: 6)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:136:87: error: 'Gesture' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
134 | /// - endPoint: end handle 目前在畫面上的位置
135 | /// - Returns: 綁定在元件上的拖曳手勢
136 | func dragGesture(center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) -> some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
137 |
138 | DragGesture(minimumDistance: 0)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:160:45: error: 'DragGesture' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
158 | /// - startPoint: start handle 目前在畫面上的位置
159 | /// - endPoint: end handle 目前在畫面上的位置
160 | func dragGestureOnChangedValue(_ value: DragGesture.Value, center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
161 |
162 | let location = value.location
[3/10] Compiling WWCircularRangePickerUI Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:94:46: error: 'Angle' is only available in macOS 10.15 or newer
80 |
81 | // MARK: - CGPoint
82 | extension CGPoint {
| `- note: add @available attribute to enclosing extension
83 |
84 | /// 以 `self` 為圓心,計算指向指定座標的「時鐘角度」
:
92 | /// - Parameter location: 使用者目前拖曳到的位置,通常是手指或 handle 的座標
93 | /// - Returns: 以 12 點鐘方向為起點的角度值
94 | func clockAngle(to location: CGPoint) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
95 |
96 | let dx = location.x - x
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:126:68: error: 'Angle' is only available in macOS 10.15 or newer
114 |
115 | // MARK: - Angle
116 | extension Angle {
| `- note: add @available attribute to enclosing extension
117 |
118 | /// 將分鐘值映射為圓形控制項上的角度
:
124 | /// - totalMinutes: 整個圓周代表的總分鐘數
125 | /// - Returns: 對應的時鐘角度
126 | static func clockAngle(for minutes: Int, totalMinutes: Int) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
127 | .degrees((Double(minutes) / Double(totalMinutes)) * 360.0)
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:116:11: error: 'Angle' is only available in macOS 10.15 or newer
114 |
115 | // MARK: - Angle
116 | extension Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
117 |
118 | /// 將分鐘值映射為圓形控制項上的角度
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:135:21: error: 'Angle' is only available in macOS 10.15 or newer
130 |
131 | // MARK: - Angle
132 | extension Angle {
| `- note: add @available attribute to enclosing extension
133 |
134 | /// 0° ..< 360°
135 | var normalized: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
136 | let value = (degrees.truncatingRemainder(dividingBy: 360) + 360).truncatingRemainder(dividingBy: 360)
137 | return .degrees(value)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:141:27: error: 'Angle' is only available in macOS 10.15 or newer
130 |
131 | // MARK: - Angle
132 | extension Angle {
| `- note: add @available attribute to enclosing extension
133 |
134 | /// 0° ..< 360°
:
139 |
140 | /// -180° ..< 180°
141 | var signedNormalized: Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
142 | let value = normalized.degrees
143 | return value >= 180 ? .degrees(value - 360) : .degrees(value)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:132:11: error: 'Angle' is only available in macOS 10.15 or newer
130 |
131 | // MARK: - Angle
132 | extension Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
133 |
134 | /// 0° ..< 360°
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:189:48: error: 'Angle' is only available in macOS 10.15 or newer
146 |
147 | // MARK: - Angle
148 | extension Angle {
| `- note: add @available attribute to enclosing extension
149 |
150 | /// 將目前角度轉換為圓周上的座標點
:
187 |
188 | /// 先正規化再吸附,適合 UI 顯示值
189 | func normalizedAndSnapped(step: Double) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
190 | normalized.snapped(step: step)
191 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:195:39: error: 'Angle' is only available in macOS 10.15 or newer
146 |
147 | // MARK: - Angle
148 | extension Angle {
| `- note: add @available attribute to enclosing extension
149 |
150 | /// 將目前角度轉換為圓周上的座標點
:
193 | /// 為了動畫連續性,回傳最接近 current 的等價角度
194 | /// 例如 current = 350, target = 10,會回傳 370 而不是 10
195 | func unwrapped(closestTo current: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
196 | current + current.shortestDelta(to: self)
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:195:49: error: 'Angle' is only available in macOS 10.15 or newer
146 |
147 | // MARK: - Angle
148 | extension Angle {
| `- note: add @available attribute to enclosing extension
149 |
150 | /// 將目前角度轉換為圓周上的座標點
:
193 | /// 為了動畫連續性,回傳最接近 current 的等價角度
194 | /// 例如 current = 350, target = 10,會回傳 370 而不是 10
195 | func unwrapped(closestTo current: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
196 | current + current.shortestDelta(to: self)
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:148:11: error: 'Angle' is only available in macOS 10.15 or newer
146 |
147 | // MARK: - Angle
148 | extension Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
149 |
150 | /// 將目前角度轉換為圓周上的座標點
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:204:35: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
204 | func snapped(step: Double) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
205 | guard step != 0 else { return self }
206 | let snapped = (degrees / step).rounded() * step
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:211:35: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
:
209 |
210 | /// 沿最短路徑前進後的新角度
211 | func advancedToward(_ target: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
212 | self + shortestDelta(to: target)
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:211:45: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
:
209 |
210 | /// 沿最短路徑前進後的新角度
211 | func advancedToward(_ target: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
212 | self + shortestDelta(to: target)
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:216:35: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
:
214 |
215 | /// self 到 target 的最短角度差,結果落在 -180° ..< 180°
216 | func shortestDelta(to target: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
217 | (target - self).signedNormalized
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:216:45: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
:
214 |
215 | /// self 到 target 的最短角度差,結果落在 -180° ..< 180°
216 | func shortestDelta(to target: Angle) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
217 | (target - self).signedNormalized
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:201:19: error: 'Angle' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:196:17: error: '+' is only available in macOS 10.15 or newer
146 |
147 | // MARK: - Angle
148 | extension Angle {
| `- note: add @available attribute to enclosing extension
149 |
150 | /// 將目前角度轉換為圓周上的座標點
:
193 | /// 為了動畫連續性,回傳最接近 current 的等價角度
194 | /// 例如 current = 350, target = 10,會回傳 370 而不是 10
195 | func unwrapped(closestTo current: Angle) -> Angle {
| `- note: add @available attribute to enclosing instance method
196 | current + current.shortestDelta(to: self)
| |- error: '+' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:212:14: error: '+' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
:
209 |
210 | /// 沿最短路徑前進後的新角度
211 | func advancedToward(_ target: Angle) -> Angle {
| `- note: add @available attribute to enclosing instance method
212 | self + shortestDelta(to: target)
| |- error: '+' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
213 | }
214 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Extension.swift:217:17: error: '-' is only available in macOS 10.15 or newer
199 |
200 | // MARK: - Angle
201 | private extension Angle {
| `- note: add @available attribute to enclosing extension
202 |
203 | /// 吸附到最近刻度,例如 10°, 5°
:
214 |
215 | /// self 到 target 的最短角度差,結果落在 -180° ..< 180°
216 | func shortestDelta(to target: Angle) -> Angle {
| `- note: add @available attribute to enclosing instance method
217 | (target - self).signedNormalized
| |- error: '-' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | }
219 | }
[4/10] Compiling WWCircularRangePickerUI Constant.swift
[5/10] Compiling WWCircularRangePickerUI DialHandleIcon.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:17:27: error: 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:59:20: error: 'Color' is only available in macOS 10.15 or newer
46 |
47 | // MARK: - 私有屬性
48 | private extension DialHandleIcon.Kind {
| `- note: add @available attribute to enclosing extension
49 |
50 | /// 各種把手樣式對應的 SF Symbol 名稱
:
57 |
58 | /// 各種把手樣式對應的主色
59 | var iconColor: Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
60 | switch self {
61 | case .moon: return .blue
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:19:9: error: 'Image' is only available in macOS 10.15 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .foregroundStyle(kind.iconColor)
21 | .padding(10)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:19:9: error: 'init(systemName:)' is only available in macOS 11.0 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | .foregroundStyle(kind.iconColor)
21 | .padding(10)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:20:14: error: 'foregroundStyle' is only available in macOS 12.0 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
20 | .foregroundStyle(kind.iconColor)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
21 | .padding(10)
22 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:21:14: error: 'padding' is only available in macOS 10.15 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
20 | .foregroundStyle(kind.iconColor)
21 | .padding(10)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .background {
23 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:22:14: error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
20 | .foregroundStyle(kind.iconColor)
21 | .padding(10)
22 | .background {
| |- error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
23 | Circle()
24 | .fill(.white)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:22:25: 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
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
20 | .foregroundStyle(kind.iconColor)
21 | .padding(10)
22 | .background {
| |- 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
23 | Circle()
24 | .fill(.white)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:23:17: error: 'Circle' is only available in macOS 10.15 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
:
21 | .padding(10)
22 | .background {
23 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .fill(.white)
25 | .shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 2)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:24:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
:
22 | .background {
23 | Circle()
24 | .fill(.white)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
25 | .shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 2)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:24:28: error: 'white' is only available in macOS 10.15 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
:
22 | .background {
23 | Circle()
24 | .fill(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 2)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:25:22: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
:
23 | Circle()
24 | .fill(.white)
25 | .shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 2)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | .overlay {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:25:37: error: 'black' is only available in macOS 10.15 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
:
23 | Circle()
24 | .fill(.white)
25 | .shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 2)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | .overlay {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:25:43: error: 'opacity' is only available in macOS 10.15 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
:
23 | Circle()
24 | .fill(.white)
25 | .shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 2)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | .overlay {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:27:14: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
:
25 | .shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 2)
26 | }
27 | .overlay {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
28 | Circle()
29 | .stroke(.gray.opacity(0.15), lineWidth: 1)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:28:17: error: 'Circle' is only available in macOS 10.15 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
:
26 | }
27 | .overlay {
28 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | .stroke(.gray.opacity(0.15), lineWidth: 1)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:29:22: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
:
27 | .overlay {
28 | Circle()
29 | .stroke(.gray.opacity(0.15), lineWidth: 1)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:29:30: error: 'gray' is only available in macOS 10.15 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
:
27 | .overlay {
28 | Circle()
29 | .stroke(.gray.opacity(0.15), lineWidth: 1)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:29:35: error: 'opacity' is only available in macOS 12.0 or newer
11 | ///
12 | /// `DialHandleIcon` 會將 SF Symbol 包在圓形底座中,讓把手在圓弧上更容易辨識,同時也保有適合拖曳的視覺大小與對比
13 | public struct DialHandleIcon: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let kind: Kind
16 |
17 | public var body: some View {
| `- note: add @available attribute to enclosing property
18 |
19 | Image(systemName: kind.iconName)
:
27 | .overlay {
28 | Circle()
29 | .stroke(.gray.opacity(0.15), lineWidth: 1)
| |- error: 'opacity' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:61:29: error: 'blue' is only available in macOS 10.15 or newer
46 |
47 | // MARK: - 私有屬性
48 | private extension DialHandleIcon.Kind {
| `- note: add @available attribute to enclosing extension
49 |
50 | /// 各種把手樣式對應的 SF Symbol 名稱
:
57 |
58 | /// 各種把手樣式對應的主色
59 | var iconColor: Color {
| `- note: add @available attribute to enclosing property
60 | switch self {
61 | case .moon: return .blue
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | case .alarm: return .red
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialHandleIcon.swift:62:30: error: 'red' is only available in macOS 10.15 or newer
46 |
47 | // MARK: - 私有屬性
48 | private extension DialHandleIcon.Kind {
| `- note: add @available attribute to enclosing extension
49 |
50 | /// 各種把手樣式對應的 SF Symbol 名稱
:
57 |
58 | /// 各種把手樣式對應的主色
59 | var iconColor: Color {
| `- note: add @available attribute to enclosing property
60 | switch self {
61 | case .moon: return .blue
62 | case .alarm: return .red
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | }
[6/10] Compiling WWCircularRangePickerUI resource_bundle_accessor.swift
[7/10] Compiling WWCircularRangePickerUI WWCircularRangePickerUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:12:38: error: 'Angle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
13 | @Binding private var endAngle: Angle
14 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | @Binding private var endAngle: Angle
14 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:13:36: error: 'Angle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
13 | @Binding private var endAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
14 |
15 | @State private var displayStartAngle: Angle
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
13 | @Binding private var endAngle: Angle
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 |
15 | @State private var displayStartAngle: Angle
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:15:43: error: 'Angle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
13 | @Binding private var endAngle: Angle
14 |
15 | @State private var displayStartAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
16 | @State private var displayEndAngle: Angle
17 | @State private var activeHandle: ActiveHandle?
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
13 | @Binding private var endAngle: Angle
14 |
15 | @State private var displayStartAngle: Angle
| `- error: 'State' is only available in macOS 10.15 or newer
16 | @State private var displayEndAngle: Angle
17 | @State private var activeHandle: ActiveHandle?
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:16:41: error: 'Angle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
14 |
15 | @State private var displayStartAngle: Angle
16 | @State private var displayEndAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
17 | @State private var activeHandle: ActiveHandle?
18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
14 |
15 | @State private var displayStartAngle: Angle
16 | @State private var displayEndAngle: Angle
| `- error: 'State' is only available in macOS 10.15 or newer
17 | @State private var activeHandle: ActiveHandle?
18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
15 | @State private var displayStartAngle: Angle
16 | @State private var displayEndAngle: Angle
17 | @State private var activeHandle: ActiveHandle?
| `- error: 'State' is only available in macOS 10.15 or newer
18 |
19 | private let startView: StartView
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:25:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:84:51: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
82 | /// - endView: 終點View
83 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
84 | public init(configure: Configure, startAngle: Binding<Angle>, endAngle: Binding<Angle>, startView: StartView, endView: EndView, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
85 |
86 | let start = startAngle.wrappedValue.normalized
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:84:77: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
82 | /// - endView: 終點View
83 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
84 | public init(configure: Configure, startAngle: Binding<Angle>, endAngle: Binding<Angle>, startView: StartView, endView: EndView, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
85 |
86 | let start = startAngle.wrappedValue.normalized
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:10:50: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:10:65: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:112:29: error: 'Binding' is only available in macOS 10.15 or newer
100 |
101 | // MARK: - 公開API
102 | extension WWCircularRangePickerUI where StartView == DialHandleIcon, EndView == DialHandleIcon {
| `- note: add @available attribute to enclosing extension
103 |
104 | /// 快速初始化 `SelectingView`
:
110 | /// - endAngle: 終點角度的 `Binding<Angle>`
111 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
112 | public init(startAngle: Binding<Angle>, endAngle: Binding<Angle>, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
113 |
114 | let configure: Configure = .init(lineWidth: 44, innerColor: .gray.opacity(0.2), outerColor: .yellow.opacity(0.5), tickCount: 72, tickStride: 6)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:112:55: error: 'Binding' is only available in macOS 10.15 or newer
100 |
101 | // MARK: - 公開API
102 | extension WWCircularRangePickerUI where StartView == DialHandleIcon, EndView == DialHandleIcon {
| `- note: add @available attribute to enclosing extension
103 |
104 | /// 快速初始化 `SelectingView`
:
110 | /// - endAngle: 終點角度的 `Binding<Angle>`
111 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
112 | public init(startAngle: Binding<Angle>, endAngle: Binding<Angle>, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
113 |
114 | let configure: Configure = .init(lineWidth: 44, innerColor: .gray.opacity(0.2), outerColor: .yellow.opacity(0.5), tickCount: 72, tickStride: 6)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:136:87: error: 'Gesture' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
134 | /// - endPoint: end handle 目前在畫面上的位置
135 | /// - Returns: 綁定在元件上的拖曳手勢
136 | func dragGesture(center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) -> some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
137 |
138 | DragGesture(minimumDistance: 0)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:160:45: error: 'DragGesture' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
158 | /// - startPoint: start handle 目前在畫面上的位置
159 | /// - endPoint: end handle 目前在畫面上的位置
160 | func dragGestureOnChangedValue(_ value: DragGesture.Value, center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
161 |
162 | let location = value.location
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:258:6: error: 'Previewable()' is only available in macOS 14.0 or newer
256 | #Preview {
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
259 | @Previewable @State var endAngle: Angle = .degrees(90)
260 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:258:41: error: 'Angle' is only available in macOS 10.15 or newer
256 | #Preview {
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
259 | @Previewable @State var endAngle: Angle = .degrees(90)
260 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:258:19: error: 'State' is only available in macOS 10.15 or newer
256 | #Preview {
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
259 | @Previewable @State var endAngle: Angle = .degrees(90)
260 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:259:6: error: 'Previewable()' is only available in macOS 14.0 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
259 | @Previewable @State var endAngle: Angle = .degrees(90)
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
260 |
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:259:39: error: 'Angle' is only available in macOS 10.15 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
259 | @Previewable @State var endAngle: Angle = .degrees(90)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
260 |
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:259:19: error: 'State' is only available in macOS 10.15 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
259 | @Previewable @State var endAngle: Angle = .degrees(90)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
260 |
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:256:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
254 | }
255 |
256 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:263:7: error: 'padding' is only available in macOS 10.15 or newer
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
262 | print("\(startIndex), \(endIndex)")
263 | }.padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:84:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
82 | }
83 |
84 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
85 | DialTicksLayer(center: .init(x: 180, y: 180), radius: 156)
86 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:86:10: error: 'padding' is only available in macOS 10.15 or newer
84 | #Preview {
85 | DialTicksLayer(center: .init(x: 180, y: 180), radius: 156)
86 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:27:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 |
29 | let rect = CGRect(origin: .zero, size: proxy.size)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:27:24: 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
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy 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
28 |
29 | let rect = CGRect(origin: .zero, size: proxy.size)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:27:24: 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
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy 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
28 |
29 | let rect = CGRect(origin: .zero, size: proxy.size)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:36:13: error: 'ZStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
34 | let endPoint = displayEndAngle.point(center: center, radius: radius)
35 |
36 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 |
38 | DialTicksLayer(center: center, radius: radius, totalTickCount: configure.tickCount, majorTickStride: configure.tickStride)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:36:20: 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
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
34 | let endPoint = displayEndAngle.point(center: center, radius: radius)
35 |
36 | ZStack {
| |- 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
37 |
38 | DialTicksLayer(center: center, radius: radius, totalTickCount: configure.tickCount, majorTickStride: configure.tickStride)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:36:20: 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
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
34 | let endPoint = displayEndAngle.point(center: center, radius: radius)
35 |
36 | ZStack {
| |- 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
37 |
38 | DialTicksLayer(center: center, radius: radius, totalTickCount: configure.tickCount, majorTickStride: configure.tickStride)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:40:17: 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
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
38 | DialTicksLayer(center: center, radius: radius, totalTickCount: configure.tickCount, majorTickStride: configure.tickStride)
39 |
40 | Circle()
| |- 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 | .stroke(configure.innerColor, lineWidth: configure.lineWidth)
42 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:40:17: error: 'Circle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
38 | DialTicksLayer(center: center, radius: radius, totalTickCount: configure.tickCount, majorTickStride: configure.tickStride)
39 |
40 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .stroke(configure.innerColor, lineWidth: configure.lineWidth)
42 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:41:22: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
39 |
40 | Circle()
41 | .stroke(configure.innerColor, lineWidth: configure.lineWidth)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
42 |
43 | RangeArcShape(startAngle: displayStartAngle, endAngle: displayEndAngle)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:43:17: 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
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
41 | .stroke(configure.innerColor, lineWidth: configure.lineWidth)
42 |
43 | RangeArcShape(startAngle: displayStartAngle, endAngle: displayEndAngle)
| |- 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
44 | .stroke(
45 | configure.outerColor,
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:44:22: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
42 |
43 | RangeArcShape(startAngle: displayStartAngle, endAngle: displayEndAngle)
44 | .stroke(
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
45 | configure.outerColor,
46 | style: .init(lineWidth: configure.lineWidth, lineCap: .round, lineJoin: .round)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:50:22: error: 'position' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
48 |
49 | startView
50 | .position(startPoint)
| |- error: 'position' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 |
52 | endView
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:53:22: error: 'position' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
51 |
52 | endView
53 | .position(endPoint)
| |- error: 'position' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | .contentShape(Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:36:20: 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
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
34 | let endPoint = displayEndAngle.point(center: center, radius: radius)
35 |
36 | ZStack {
| |- 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
37 |
38 | DialTicksLayer(center: center, radius: radius, totalTickCount: configure.tickCount, majorTickStride: configure.tickStride)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:36:20: 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
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
34 | let endPoint = displayEndAngle.point(center: center, radius: radius)
35 |
36 | ZStack {
| |- 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
37 |
38 | DialTicksLayer(center: center, radius: radius, totalTickCount: configure.tickCount, majorTickStride: configure.tickStride)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:55:14: error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
53 | .position(endPoint)
54 | }
55 | .contentShape(Rectangle())
| |- error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .gesture(dragGesture(center: center, startPoint: startPoint, endPoint: endPoint))
57 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:55:27: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
53 | .position(endPoint)
54 | }
55 | .contentShape(Rectangle())
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .gesture(dragGesture(center: center, startPoint: startPoint, endPoint: endPoint))
57 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:56:14: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
54 | }
55 | .contentShape(Rectangle())
56 | .gesture(dragGesture(center: center, startPoint: startPoint, endPoint: endPoint))
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .onAppear {
58 | selectIndexClosure(calculateSelectIndex())
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:57:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
55 | .contentShape(Rectangle())
56 | .gesture(dragGesture(center: center, startPoint: startPoint, endPoint: endPoint))
57 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | selectIndexClosure(calculateSelectIndex())
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:61:10: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
59 | }
60 | }
61 | .onChange(of: startAngle) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
62 | displayStartAngle = newValue.unwrapped(closestTo: displayStartAngle)
63 | selectIndexClosure(calculateSelectIndex())
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:62:13: error: setter for 'displayStartAngle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
60 | }
61 | .onChange(of: startAngle) { _, newValue in
62 | displayStartAngle = newValue.unwrapped(closestTo: displayStartAngle)
| |- error: setter for 'displayStartAngle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | selectIndexClosure(calculateSelectIndex())
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:65:10: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
63 | selectIndexClosure(calculateSelectIndex())
64 | }
65 | .onChange(of: endAngle) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
66 | displayEndAngle = newValue.unwrapped(closestTo: displayEndAngle)
67 | selectIndexClosure(calculateSelectIndex())
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:66:13: error: setter for 'displayEndAngle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
64 | }
65 | .onChange(of: endAngle) { _, newValue in
66 | displayEndAngle = newValue.unwrapped(closestTo: displayEndAngle)
| |- error: setter for 'displayEndAngle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | selectIndexClosure(calculateSelectIndex())
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:69:10: error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
23 | private let configure: Configure
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 |
27 | GeometryReader { proxy in
:
67 | selectIndexClosure(calculateSelectIndex())
68 | }
69 | .aspectRatio(1, contentMode: .fit)
| |- error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:190: error: 'primary' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'primary' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:198: error: 'opacity' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:301: error: 'primary' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'primary' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:309: error: 'opacity' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:91:30: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
82 | /// - endView: 終點View
83 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
84 | public init(configure: Configure, startAngle: Binding<Angle>, endAngle: Binding<Angle>, startView: StartView, endView: EndView, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| `- note: add @available attribute to enclosing initializer
85 |
86 | let start = startAngle.wrappedValue.normalized
:
89 | _startAngle = startAngle
90 | _endAngle = endAngle
91 | _displayStartAngle = State(initialValue: start)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | _displayEndAngle = State(initialValue: end)
93 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:92:28: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct WWCircularRangePickerUI<StartView: View, EndView: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | @Binding private var startAngle: Angle
:
82 | /// - endView: 終點View
83 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
84 | public init(configure: Configure, startAngle: Binding<Angle>, endAngle: Binding<Angle>, startView: StartView, endView: EndView, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| `- note: add @available attribute to enclosing initializer
85 |
86 | let start = startAngle.wrappedValue.normalized
:
90 | _endAngle = endAngle
91 | _displayStartAngle = State(initialValue: start)
92 | _displayEndAngle = State(initialValue: end)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 |
94 | self.configure = configure
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:114:70: error: 'gray' is only available in macOS 10.15 or newer
100 |
101 | // MARK: - 公開API
102 | extension WWCircularRangePickerUI where StartView == DialHandleIcon, EndView == DialHandleIcon {
| `- note: add @available attribute to enclosing extension
103 |
104 | /// 快速初始化 `SelectingView`
:
110 | /// - endAngle: 終點角度的 `Binding<Angle>`
111 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
112 | public init(startAngle: Binding<Angle>, endAngle: Binding<Angle>, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| `- note: add @available attribute to enclosing initializer
113 |
114 | let configure: Configure = .init(lineWidth: 44, innerColor: .gray.opacity(0.2), outerColor: .yellow.opacity(0.5), tickCount: 72, tickStride: 6)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 |
116 | self.init(configure: configure, startAngle: startAngle, endAngle: endAngle, startView: .init(kind: .moon), endView: .init(kind: .alarm), selectIndexClosure: selectIndexClosure)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:114:75: error: 'opacity' is only available in macOS 10.15 or newer
100 |
101 | // MARK: - 公開API
102 | extension WWCircularRangePickerUI where StartView == DialHandleIcon, EndView == DialHandleIcon {
| `- note: add @available attribute to enclosing extension
103 |
104 | /// 快速初始化 `SelectingView`
:
110 | /// - endAngle: 終點角度的 `Binding<Angle>`
111 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
112 | public init(startAngle: Binding<Angle>, endAngle: Binding<Angle>, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| `- note: add @available attribute to enclosing initializer
113 |
114 | let configure: Configure = .init(lineWidth: 44, innerColor: .gray.opacity(0.2), outerColor: .yellow.opacity(0.5), tickCount: 72, tickStride: 6)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 |
116 | self.init(configure: configure, startAngle: startAngle, endAngle: endAngle, startView: .init(kind: .moon), endView: .init(kind: .alarm), selectIndexClosure: selectIndexClosure)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:114:102: error: 'yellow' is only available in macOS 10.15 or newer
100 |
101 | // MARK: - 公開API
102 | extension WWCircularRangePickerUI where StartView == DialHandleIcon, EndView == DialHandleIcon {
| `- note: add @available attribute to enclosing extension
103 |
104 | /// 快速初始化 `SelectingView`
:
110 | /// - endAngle: 終點角度的 `Binding<Angle>`
111 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
112 | public init(startAngle: Binding<Angle>, endAngle: Binding<Angle>, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| `- note: add @available attribute to enclosing initializer
113 |
114 | let configure: Configure = .init(lineWidth: 44, innerColor: .gray.opacity(0.2), outerColor: .yellow.opacity(0.5), tickCount: 72, tickStride: 6)
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 |
116 | self.init(configure: configure, startAngle: startAngle, endAngle: endAngle, startView: .init(kind: .moon), endView: .init(kind: .alarm), selectIndexClosure: selectIndexClosure)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:114:109: error: 'opacity' is only available in macOS 10.15 or newer
100 |
101 | // MARK: - 公開API
102 | extension WWCircularRangePickerUI where StartView == DialHandleIcon, EndView == DialHandleIcon {
| `- note: add @available attribute to enclosing extension
103 |
104 | /// 快速初始化 `SelectingView`
:
110 | /// - endAngle: 終點角度的 `Binding<Angle>`
111 | /// - selectIndexClosure: 當選區更新時被呼叫的 closure,回傳 `(startIndex, endIndex)`
112 | public init(startAngle: Binding<Angle>, endAngle: Binding<Angle>, selectIndexClosure: @escaping (SelectIndex) -> Void) {
| `- note: add @available attribute to enclosing initializer
113 |
114 | let configure: Configure = .init(lineWidth: 44, innerColor: .gray.opacity(0.2), outerColor: .yellow.opacity(0.5), tickCount: 72, tickStride: 6)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 |
116 | self.init(configure: configure, startAngle: startAngle, endAngle: endAngle, startView: .init(kind: .moon), endView: .init(kind: .alarm), selectIndexClosure: selectIndexClosure)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:141:15: warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
134 | /// - endPoint: end handle 目前在畫面上的位置
135 | /// - Returns: 綁定在元件上的拖曳手勢
136 | func dragGesture(center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
137 |
138 | DragGesture(minimumDistance: 0)
139 | .onChanged {
140 | dragGestureOnChangedValue($0, center: center, startPoint: startPoint, endPoint: endPoint)
141 | }.onEnded { _ in
| |- warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
142 | dragGestureOnEnded()
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:138:9: error: 'DragGesture' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
134 | /// - endPoint: end handle 目前在畫面上的位置
135 | /// - Returns: 綁定在元件上的拖曳手勢
136 | func dragGesture(center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
137 |
138 | DragGesture(minimumDistance: 0)
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | .onChanged {
140 | dragGestureOnChangedValue($0, center: center, startPoint: startPoint, endPoint: endPoint)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:138:9: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
134 | /// - endPoint: end handle 目前在畫面上的位置
135 | /// - Returns: 綁定在元件上的拖曳手勢
136 | func dragGesture(center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
137 |
138 | DragGesture(minimumDistance: 0)
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
139 | .onChanged {
140 | dragGestureOnChangedValue($0, center: center, startPoint: startPoint, endPoint: endPoint)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:139:14: error: 'onChanged' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
134 | /// - endPoint: end handle 目前在畫面上的位置
135 | /// - Returns: 綁定在元件上的拖曳手勢
136 | func dragGesture(center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
137 |
138 | DragGesture(minimumDistance: 0)
139 | .onChanged {
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | dragGestureOnChangedValue($0, center: center, startPoint: startPoint, endPoint: endPoint)
141 | }.onEnded { _ in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:141:15: error: 'onEnded' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
134 | /// - endPoint: end handle 目前在畫面上的位置
135 | /// - Returns: 綁定在元件上的拖曳手勢
136 | func dragGesture(center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
137 |
138 | DragGesture(minimumDistance: 0)
139 | .onChanged {
140 | dragGestureOnChangedValue($0, center: center, startPoint: startPoint, endPoint: endPoint)
141 | }.onEnded { _ in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | dragGestureOnEnded()
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:166:13: error: setter for 'activeHandle' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
158 | /// - startPoint: start handle 目前在畫面上的位置
159 | /// - endPoint: end handle 目前在畫面上的位置
160 | func dragGestureOnChangedValue(_ value: DragGesture.Value, center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) {
| `- note: add @available attribute to enclosing instance method
161 |
162 | let location = value.location
:
164 |
165 | if activeHandle == nil {
166 | activeHandle = nearestHandle(to: location, startPoint: startPoint, endPoint: endPoint, hitRadius: 44)
| |- error: setter for 'activeHandle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:173:13: error: setter for 'startAngle' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
158 | /// - startPoint: start handle 目前在畫面上的位置
159 | /// - endPoint: end handle 目前在畫面上的位置
160 | func dragGestureOnChangedValue(_ value: DragGesture.Value, center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) {
| `- note: add @available attribute to enclosing instance method
161 |
162 | let location = value.location
:
171 | switch activeHandle {
172 | case .start:
173 | startAngle = angle.normalized
| |- error: setter for 'startAngle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | displayStartAngle = angle.unwrapped(closestTo: displayStartAngle)
175 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:174:13: error: setter for 'displayStartAngle' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
158 | /// - startPoint: start handle 目前在畫面上的位置
159 | /// - endPoint: end handle 目前在畫面上的位置
160 | func dragGestureOnChangedValue(_ value: DragGesture.Value, center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) {
| `- note: add @available attribute to enclosing instance method
161 |
162 | let location = value.location
:
172 | case .start:
173 | startAngle = angle.normalized
174 | displayStartAngle = angle.unwrapped(closestTo: displayStartAngle)
| |- error: setter for 'displayStartAngle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 |
176 | case .end:
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:177:13: error: setter for 'endAngle' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
158 | /// - startPoint: start handle 目前在畫面上的位置
159 | /// - endPoint: end handle 目前在畫面上的位置
160 | func dragGestureOnChangedValue(_ value: DragGesture.Value, center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) {
| `- note: add @available attribute to enclosing instance method
161 |
162 | let location = value.location
:
175 |
176 | case .end:
177 | endAngle = angle.normalized
| |- error: setter for 'endAngle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
178 | displayEndAngle = angle.unwrapped(closestTo: displayEndAngle)
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:178:13: error: setter for 'displayEndAngle' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
158 | /// - startPoint: start handle 目前在畫面上的位置
159 | /// - endPoint: end handle 目前在畫面上的位置
160 | func dragGestureOnChangedValue(_ value: DragGesture.Value, center: CGPoint, startPoint: CGPoint, endPoint: CGPoint) {
| `- note: add @available attribute to enclosing instance method
161 |
162 | let location = value.location
:
176 | case .end:
177 | endAngle = angle.normalized
178 | displayEndAngle = angle.unwrapped(closestTo: displayEndAngle)
| |- error: setter for 'displayEndAngle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
179 | }
180 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:197:9: error: 'withAnimation' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
190 | /// - 邏輯值:吸附後的正規化角度
191 | /// - 顯示值:以最接近目前顯示狀態的等價角度收尾,避免動畫倒轉一大圈
192 | func dragGestureOnEnded() {
| `- note: add @available attribute to enclosing instance method
193 |
194 | let handle = activeHandle
195 | let step = configure.stepAngle
196 |
197 | withAnimation(.spring(response: 0.25, dampingFraction: 0.85)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
198 |
199 | switch handle {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:197:24: error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
190 | /// - 邏輯值:吸附後的正規化角度
191 | /// - 顯示值:以最接近目前顯示狀態的等價角度收尾,避免動畫倒轉一大圈
192 | func dragGestureOnEnded() {
| `- note: add @available attribute to enclosing instance method
193 |
194 | let handle = activeHandle
195 | let step = configure.stepAngle
196 |
197 | withAnimation(.spring(response: 0.25, dampingFraction: 0.85)) {
| |- error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
198 |
199 | switch handle {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:202:17: error: setter for 'startAngle' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
190 | /// - 邏輯值:吸附後的正規化角度
191 | /// - 顯示值:以最接近目前顯示狀態的等價角度收尾,避免動畫倒轉一大圈
192 | func dragGestureOnEnded() {
| `- note: add @available attribute to enclosing instance method
193 |
194 | let handle = activeHandle
:
200 | case .start:
201 | let snapped = startAngle.normalizedAndSnapped(step: step)
202 | startAngle = snapped
| |- error: setter for 'startAngle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | displayStartAngle = snapped.unwrapped(closestTo: displayStartAngle)
204 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:203:17: error: setter for 'displayStartAngle' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
190 | /// - 邏輯值:吸附後的正規化角度
191 | /// - 顯示值:以最接近目前顯示狀態的等價角度收尾,避免動畫倒轉一大圈
192 | func dragGestureOnEnded() {
| `- note: add @available attribute to enclosing instance method
193 |
194 | let handle = activeHandle
:
201 | let snapped = startAngle.normalizedAndSnapped(step: step)
202 | startAngle = snapped
203 | displayStartAngle = snapped.unwrapped(closestTo: displayStartAngle)
| |- error: setter for 'displayStartAngle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 |
205 | case .end:
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:207:17: error: setter for 'endAngle' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
190 | /// - 邏輯值:吸附後的正規化角度
191 | /// - 顯示值:以最接近目前顯示狀態的等價角度收尾,避免動畫倒轉一大圈
192 | func dragGestureOnEnded() {
| `- note: add @available attribute to enclosing instance method
193 |
194 | let handle = activeHandle
:
205 | case .end:
206 | let snapped = endAngle.normalizedAndSnapped(step: step)
207 | endAngle = snapped
| |- error: setter for 'endAngle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | displayEndAngle = snapped.unwrapped(closestTo: displayEndAngle)
209 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:208:17: error: setter for 'displayEndAngle' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
190 | /// - 邏輯值:吸附後的正規化角度
191 | /// - 顯示值:以最接近目前顯示狀態的等價角度收尾,避免動畫倒轉一大圈
192 | func dragGestureOnEnded() {
| `- note: add @available attribute to enclosing instance method
193 |
194 | let handle = activeHandle
:
206 | let snapped = endAngle.normalizedAndSnapped(step: step)
207 | endAngle = snapped
208 | displayEndAngle = snapped.unwrapped(closestTo: displayEndAngle)
| |- error: setter for 'displayEndAngle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 |
210 | case nil:
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:214:13: error: setter for 'activeHandle' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
190 | /// - 邏輯值:吸附後的正規化角度
191 | /// - 顯示值:以最接近目前顯示狀態的等價角度收尾,避免動畫倒轉一大圈
192 | func dragGestureOnEnded() {
| `- note: add @available attribute to enclosing instance method
193 |
194 | let handle = activeHandle
:
212 | }
213 |
214 | activeHandle = nil
| |- error: setter for 'activeHandle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | }
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:246:31: error: 'Angle' is only available in macOS 10.15 or newer
119 |
120 | // MARK: - 私有API
121 | private extension WWCircularRangePickerUI {
| `- note: add @available attribute to enclosing extension
122 |
123 | /// 建立拖曳手勢
:
240 | ///
241 | /// - Returns: (startIndex, endIndex),分別為起點與終點角度對應的 tick 索引
242 | func calculateSelectIndex() -> SelectIndex {
| `- note: add @available attribute to enclosing instance method
243 |
244 | let stepAngle = configure.stepAngle
245 |
246 | func index(for angle: Angle) -> Int {
| `- error: 'Angle' is only available in macOS 10.15 or newer
247 | let raw = angle.normalized.degrees / stepAngle
248 | let rounded = Int(raw.rounded())
[8/10] Compiling WWCircularRangePickerUI Model.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:18:20: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個型別用來描述單一刻度線的幾何與視覺屬性,包含刻度線相對圓周的內縮與外凸距離、線寬,以及顏色
13 | public struct DialTickStyle {
| `- note: add @available attribute to enclosing struct
14 |
15 | let inset: CGFloat
16 | let outset: CGFloat
17 | let lineWidth: CGFloat
18 | let lineColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
19 |
20 | /// 建立一組刻度線樣式
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:27:81: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個型別用來描述單一刻度線的幾何與視覺屬性,包含刻度線相對圓周的內縮與外凸距離、線寬,以及顏色
13 | public struct DialTickStyle {
| `- note: add @available attribute to enclosing struct
14 |
15 | let inset: CGFloat
:
25 | /// - lineWidth: 刻度線的粗細
26 | /// - lineColor: 刻度線的顏色
27 | public init(inset: CGFloat, outset: CGFloat, lineWidth: CGFloat, lineColor: Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
28 | self.inset = inset
29 | self.outset = outset
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:38:21: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct Configure {
| `- note: add @available attribute to enclosing struct
36 |
37 | let lineWidth: CGFloat
38 | let innerColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
39 | let outerColor: Color
40 | let tickCount: Int
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:39:21: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct Configure {
| `- note: add @available attribute to enclosing struct
36 |
37 | let lineWidth: CGFloat
38 | let innerColor: Color
39 | let outerColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
40 | let tickCount: Int
41 | let tickStride: Int
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:43:49: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct Configure {
| `- note: add @available attribute to enclosing struct
36 |
37 | let lineWidth: CGFloat
:
41 | let tickStride: Int
42 |
43 | public init(lineWidth: CGFloat, innerColor: Color, outerColor: Color, tickCount: Int, tickStride: Int) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
44 | self.lineWidth = lineWidth
45 | self.innerColor = innerColor
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/Utility/Model.swift:43:68: error: 'Color' is only available in macOS 10.15 or newer
33 | }
34 |
35 | public struct Configure {
| `- note: add @available attribute to enclosing struct
36 |
37 | let lineWidth: CGFloat
:
41 | let tickStride: Int
42 |
43 | public init(lineWidth: CGFloat, innerColor: Color, outerColor: Color, tickCount: Int, tickStride: Int) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
44 | self.lineWidth = lineWidth
45 | self.innerColor = innerColor
[9/10] Compiling WWCircularRangePickerUI RangeArcShape.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:15:21: error: 'Angle' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
| `- error: 'Angle' is only available in macOS 10.15 or newer
16 | var endAngle: Angle // 弧線結束角度
17 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:16:19: error: 'Angle' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
16 | var endAngle: Angle // 弧線結束角度
| `- error: 'Angle' is only available in macOS 10.15 or newer
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:19:25: error: 'AnimatablePair' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| | `- error: 'AnimatablePair' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
21 | set {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:35:35: error: 'Path' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
33 | /// - Parameter rect: 圖形繪製所使用的矩形範圍
34 | /// - Returns: 對應起始角度與結束角度的圓弧路徑
35 | 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
36 |
37 | let center = rect.center
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:20:15: error: 'AnimatablePair' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
| |- error: 'AnimatablePair' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | set {
22 | startAngle = .degrees(newValue.first)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:20:15: warning: conformance of 'Double' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
| |- warning: conformance of 'Double' to 'VectorArithmetic' 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
21 | set {
22 | startAngle = .degrees(newValue.first)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:20:15: warning: conformance of 'Double' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
| |- warning: conformance of 'Double' to 'VectorArithmetic' 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
21 | set {
22 | startAngle = .degrees(newValue.first)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:22:44: warning: conformance of 'Double' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
21 | set {
22 | startAngle = .degrees(newValue.first)
| |- warning: conformance of 'Double' to 'VectorArithmetic' 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
23 | endAngle = .degrees(newValue.second)
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:22:44: warning: conformance of 'Double' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
21 | set {
22 | startAngle = .degrees(newValue.first)
| |- warning: conformance of 'Double' to 'VectorArithmetic' 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
23 | endAngle = .degrees(newValue.second)
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:23:42: warning: conformance of 'Double' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
21 | set {
22 | startAngle = .degrees(newValue.first)
23 | endAngle = .degrees(newValue.second)
| |- warning: conformance of 'Double' to 'VectorArithmetic' 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
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:23:42: warning: conformance of 'Double' to 'VectorArithmetic' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
17 |
18 | /// 提供 SwiftUI 動畫系統使用的可動畫資料 (for Animatable)
19 | var animatableData: AnimatablePair<Double, Double> {
| `- note: add @available attribute to enclosing property
20 | get { AnimatablePair(startAngle.degrees, endAngle.degrees) }
21 | set {
22 | startAngle = .degrees(newValue.first)
23 | endAngle = .degrees(newValue.second)
| |- warning: conformance of 'Double' to 'VectorArithmetic' 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
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:45:20: error: 'Path' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
33 | /// - Parameter rect: 圖形繪製所使用的矩形範圍
34 | /// - Returns: 對應起始角度與結束角度的圓弧路徑
35 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
36 |
37 | let center = rect.center
:
43 | if end < start { end += 360 }
44 |
45 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | path.addArc(center: center, radius: radius, startAngle: .degrees(start), endAngle: .degrees(end), clockwise: false)
47 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/RangeArcShape.swift:46:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// 透過 `startAngle` 和 `endAngle` 定義弧線的起點與終點,並使用 `animatableData` 讓這兩個角度在變化時可以平滑動畫
13 | struct RangeArcShape: Shape {
| `- note: add @available attribute to enclosing struct
14 |
15 | var startAngle: Angle // 弧線起始角度
:
33 | /// - Parameter rect: 圖形繪製所使用的矩形範圍
34 | /// - Returns: 對應起始角度與結束角度的圓弧路徑
35 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
36 |
37 | let center = rect.center
:
44 |
45 | var path = Path()
46 | path.addArc(center: center, radius: radius, startAngle: .degrees(start), endAngle: .degrees(end), clockwise: false)
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 |
48 | return path
[10/10] Compiling WWCircularRangePickerUI DialTicksLayer.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:190: error: 'primary' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'primary' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:198: error: 'opacity' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:301: error: 'primary' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'primary' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:31:309: error: 'opacity' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
29 | /// - majorStyle: 主要刻度樣式
30 | /// - minorStyle: 次要刻度樣式
31 | public init(center: CGPoint, radius: CGFloat, totalTickCount: Int = 60, majorTickStride: Int = 5, majorStyle: DialTickStyle = .init(inset: 8.0, outset: 0.0, lineWidth: 2.0, lineColor: .primary.opacity(0.55)), minorStyle: DialTickStyle = .init(inset: 4.0, outset: 2.0, lineWidth: 1.0, lineColor: .primary.opacity(0.22))) {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
32 | self.center = center
33 | self.radius = radius
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:40:27: error: 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
38 | }
39 |
40 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
41 |
42 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:62:85: error: 'View' is only available in macOS 10.15 or newer
49 |
50 | // MARK: - 私有API
51 | private extension DialTicksLayer {
| `- note: add @available attribute to enclosing extension
52 |
53 | /// 建立指定索引的刻度線視圖
:
60 | /// - majorTickStride: 主要刻度的間隔
61 | /// - Returns: 對應索引的刻度線視圖
62 | func tickView(at index: Int, totalTickCount: Int, majorTickStride: Int) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
63 |
64 | let isMajor = index % majorTickStride == 0
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:84:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
82 | }
83 |
84 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
85 | DialTicksLayer(center: .init(x: 180, y: 180), radius: 156)
86 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:86:10: error: 'padding' is only available in macOS 10.15 or newer
84 | #Preview {
85 | DialTicksLayer(center: .init(x: 180, y: 180), radius: 156)
86 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:258:6: error: 'Previewable()' is only available in macOS 14.0 or newer
256 | #Preview {
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
259 | @Previewable @State var endAngle: Angle = .degrees(90)
260 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:258:41: error: 'Angle' is only available in macOS 10.15 or newer
256 | #Preview {
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
259 | @Previewable @State var endAngle: Angle = .degrees(90)
260 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:258:19: error: 'State' is only available in macOS 10.15 or newer
256 | #Preview {
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
259 | @Previewable @State var endAngle: Angle = .degrees(90)
260 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:259:6: error: 'Previewable()' is only available in macOS 14.0 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
259 | @Previewable @State var endAngle: Angle = .degrees(90)
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
260 |
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:259:39: error: 'Angle' is only available in macOS 10.15 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
259 | @Previewable @State var endAngle: Angle = .degrees(90)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
260 |
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:259:19: error: 'State' is only available in macOS 10.15 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
259 | @Previewable @State var endAngle: Angle = .degrees(90)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
260 |
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:256:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
254 | }
255 |
256 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
257 |
258 | @Previewable @State var startAngle: Angle = .degrees(0)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/WWCircularRangePickerUI.swift:263:7: error: 'padding' is only available in macOS 10.15 or newer
261 | WWCircularRangePickerUI(startAngle: $startAngle, endAngle: $endAngle) { startIndex, endIndex in
262 | print("\(startIndex), \(endIndex)")
263 | }.padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
264 | }
265 |
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:42: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
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
38 | }
39 |
40 | public var body: some View {
| `- note: add @available attribute to enclosing property
41 |
42 | ZStack {
| |- 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
43 | ForEach(0..<totalTickCount, id: \.self) { index in
44 | tickView(at: index, totalTickCount: totalTickCount, majorTickStride: majorTickStride)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:42:9: error: 'ZStack' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
38 | }
39 |
40 | public var body: some View {
| `- note: add @available attribute to enclosing property
41 |
42 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | ForEach(0..<totalTickCount, id: \.self) { index in
44 | tickView(at: index, totalTickCount: totalTickCount, majorTickStride: majorTickStride)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:42: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
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
38 | }
39 |
40 | public var body: some View {
| `- note: add @available attribute to enclosing property
41 |
42 | ZStack {
| |- 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
43 | ForEach(0..<totalTickCount, id: \.self) { index in
44 | tickView(at: index, totalTickCount: totalTickCount, majorTickStride: majorTickStride)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:43: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
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
38 | }
39 |
40 | public var body: some View {
| `- note: add @available attribute to enclosing property
41 |
42 | ZStack {
43 | ForEach(0..<totalTickCount, 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
44 | tickView(at: index, totalTickCount: totalTickCount, majorTickStride: majorTickStride)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:43:13: error: 'ForEach' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
38 | }
39 |
40 | public var body: some View {
| `- note: add @available attribute to enclosing property
41 |
42 | ZStack {
43 | ForEach(0..<totalTickCount, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | tickView(at: index, totalTickCount: totalTickCount, majorTickStride: majorTickStride)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:43:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
38 | }
39 |
40 | public var body: some View {
| `- note: add @available attribute to enclosing property
41 |
42 | ZStack {
43 | ForEach(0..<totalTickCount, id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | tickView(at: index, totalTickCount: totalTickCount, majorTickStride: majorTickStride)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:42:16: 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
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
38 | }
39 |
40 | public var body: some View {
| `- note: add @available attribute to enclosing property
41 |
42 | ZStack {
| |- 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
43 | ForEach(0..<totalTickCount, id: \.self) { index in
44 | tickView(at: index, totalTickCount: totalTickCount, majorTickStride: majorTickStride)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:40: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
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
38 | }
39 |
40 | 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
41 |
42 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:40: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
11 | ///
12 | /// 這個元件會依照指定的刻度總數,在圓周上平均繪製刻度線,並支援以固定間隔標示主要刻度與次要刻度的不同樣式
13 | public struct DialTicksLayer: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | let center: CGPoint
:
38 | }
39 |
40 | 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
41 |
42 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:68:18: error: 'Angle' is only available in macOS 10.15 or newer
49 |
50 | // MARK: - 私有API
51 | private extension DialTicksLayer {
| `- note: add @available attribute to enclosing extension
52 |
53 | /// 建立指定索引的刻度線視圖
:
60 | /// - majorTickStride: 主要刻度的間隔
61 | /// - Returns: 對應索引的刻度線視圖
62 | func tickView(at index: Int, totalTickCount: Int, majorTickStride: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
63 |
64 | let isMajor = index % majorTickStride == 0
:
66 |
67 | let r1 = radius - (isMajor ? majorStyle.inset : minorStyle.inset)
68 | let p1 = Angle.degrees(angle).point(center: center, radius: r1)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 |
70 | let r2 = radius + (isMajor ? majorStyle.outset : minorStyle.outset)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:71:18: error: 'Angle' is only available in macOS 10.15 or newer
49 |
50 | // MARK: - 私有API
51 | private extension DialTicksLayer {
| `- note: add @available attribute to enclosing extension
52 |
53 | /// 建立指定索引的刻度線視圖
:
60 | /// - majorTickStride: 主要刻度的間隔
61 | /// - Returns: 對應索引的刻度線視圖
62 | func tickView(at index: Int, totalTickCount: Int, majorTickStride: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
63 |
64 | let isMajor = index % majorTickStride == 0
:
69 |
70 | let r2 = radius + (isMajor ? majorStyle.outset : minorStyle.outset)
71 | let p2 = Angle.degrees(angle).point(center: center, radius: r2)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 |
73 | return Path { path in
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:77:10: warning: conformance of 'Path' to 'Shape' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
49 |
50 | // MARK: - 私有API
51 | private extension DialTicksLayer {
| `- note: add @available attribute to enclosing extension
52 |
53 | /// 建立指定索引的刻度線視圖
:
60 | /// - majorTickStride: 主要刻度的間隔
61 | /// - Returns: 對應索引的刻度線視圖
62 | func tickView(at index: Int, totalTickCount: Int, majorTickStride: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
63 |
64 | let isMajor = index % majorTickStride == 0
:
75 | path.addLine(to: p2)
76 | }
77 | .stroke(
| |- warning: conformance of 'Path' to 'Shape' 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
78 | isMajor ? majorStyle.lineColor : minorStyle.lineColor,
79 | lineWidth: isMajor ? majorStyle.lineWidth : minorStyle.lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:77:10: 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
49 |
50 | // MARK: - 私有API
51 | private extension DialTicksLayer {
| `- note: add @available attribute to enclosing extension
52 |
53 | /// 建立指定索引的刻度線視圖
:
60 | /// - majorTickStride: 主要刻度的間隔
61 | /// - Returns: 對應索引的刻度線視圖
62 | func tickView(at index: Int, totalTickCount: Int, majorTickStride: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
63 |
64 | let isMajor = index % majorTickStride == 0
:
75 | path.addLine(to: p2)
76 | }
77 | .stroke(
| |- 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
78 | isMajor ? majorStyle.lineColor : minorStyle.lineColor,
79 | lineWidth: isMajor ? majorStyle.lineWidth : minorStyle.lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:73:16: error: 'Path' is only available in macOS 10.15 or newer
49 |
50 | // MARK: - 私有API
51 | private extension DialTicksLayer {
| `- note: add @available attribute to enclosing extension
52 |
53 | /// 建立指定索引的刻度線視圖
:
60 | /// - majorTickStride: 主要刻度的間隔
61 | /// - Returns: 對應索引的刻度線視圖
62 | func tickView(at index: Int, totalTickCount: Int, majorTickStride: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
63 |
64 | let isMajor = index % majorTickStride == 0
:
71 | let p2 = Angle.degrees(angle).point(center: center, radius: r2)
72 |
73 | return Path { path in
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | path.move(to: p1)
75 | path.addLine(to: p2)
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:74:18: error: 'move(to:)' is only available in macOS 10.15 or newer
49 |
50 | // MARK: - 私有API
51 | private extension DialTicksLayer {
| `- note: add @available attribute to enclosing extension
52 |
53 | /// 建立指定索引的刻度線視圖
:
60 | /// - majorTickStride: 主要刻度的間隔
61 | /// - Returns: 對應索引的刻度線視圖
62 | func tickView(at index: Int, totalTickCount: Int, majorTickStride: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
63 |
64 | let isMajor = index % majorTickStride == 0
:
72 |
73 | return Path { path in
74 | path.move(to: p1)
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | path.addLine(to: p2)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:75:18: error: 'addLine(to:)' is only available in macOS 10.15 or newer
49 |
50 | // MARK: - 私有API
51 | private extension DialTicksLayer {
| `- note: add @available attribute to enclosing extension
52 |
53 | /// 建立指定索引的刻度線視圖
:
60 | /// - majorTickStride: 主要刻度的間隔
61 | /// - Returns: 對應索引的刻度線視圖
62 | func tickView(at index: Int, totalTickCount: Int, majorTickStride: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
63 |
64 | let isMajor = index % majorTickStride == 0
:
73 | return Path { path in
74 | path.move(to: p1)
75 | path.addLine(to: p2)
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 | .stroke(
/Users/admin/builder/spi-builder-workspace/Sources/WWCircularRangePickerUI/View/DialTicksLayer.swift:77:10: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
49 |
50 | // MARK: - 私有API
51 | private extension DialTicksLayer {
| `- note: add @available attribute to enclosing extension
52 |
53 | /// 建立指定索引的刻度線視圖
:
60 | /// - majorTickStride: 主要刻度的間隔
61 | /// - Returns: 對應索引的刻度線視圖
62 | func tickView(at index: Int, totalTickCount: Int, majorTickStride: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
63 |
64 | let isMajor = index % majorTickStride == 0
:
75 | path.addLine(to: p2)
76 | }
77 | .stroke(
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
78 | isMajor ? majorStyle.lineColor : minorStyle.lineColor,
79 | lineWidth: isMajor ? majorStyle.lineWidth : minorStyle.lineWidth
BUILD FAILURE 6.1 macosSpm