Build Information
Failed to build LiteSlider, reference 0.1.1 (7f4464), with Swift 6.3 for macOS (SPM) on 5 Oct 2026 04:39:46 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.5.0.app xcrun swift build --arch arm64Build Log
208 | .padding(.top, -20)
209 | }
210 | .foregroundStyle(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
211 | .scaleEffect(1)
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:211:10: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
209 | }
210 | .foregroundStyle(.white)
211 | .scaleEffect(1)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
212 | }
213 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:214:5: error: 'HStack' is only available in macOS 10.15 or newer
212 | }
213 |
214 | HStack(spacing: 18.5) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | LiteSlider(
216 | value: $value,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:221:27: error: 'Color' is only available in macOS 10.15 or newer
219 | )
220 | .sliderLengthBehavior(.expandable(direction: .center, maxLength: 500))
221 | .sliderTrackColor(Color(hex: 0xFFD6C2, alpha: 0.5))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | .sliderProgressColor(Color(hex: 0xFF5733, alpha: 0.75))
223 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:222:30: error: 'Color' is only available in macOS 10.15 or newer
220 | .sliderLengthBehavior(.expandable(direction: .center, maxLength: 500))
221 | .sliderTrackColor(Color(hex: 0xFFD6C2, alpha: 0.5))
222 | .sliderProgressColor(Color(hex: 0xFF5733, alpha: 0.75))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 |
224 | LiteSlider(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:231:27: error: 'Color' is only available in macOS 10.15 or newer
229 | )
230 | .sliderLengthBehavior(.fixed(length: 300))
231 | .sliderTrackColor(Color(hex: 0xD2F0EC, alpha: 0.5))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
232 | .sliderProgressColor(Color(hex: 0x3BA99C, alpha: 0.8))
233 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:232:30: error: 'Color' is only available in macOS 10.15 or newer
230 | .sliderLengthBehavior(.fixed(length: 300))
231 | .sliderTrackColor(Color(hex: 0xD2F0EC, alpha: 0.5))
232 | .sliderProgressColor(Color(hex: 0x3BA99C, alpha: 0.8))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 |
234 | LiteSlider(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:240:27: error: 'Color' is only available in macOS 10.15 or newer
238 | )
239 | .sliderLengthBehavior(.dynamic)
240 | .sliderTrackColor(Color(hex: 0xEBD5F5, alpha: 0.5))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .sliderProgressColor(Color(hex: 0x9B59B6, alpha: 0.75))
242 | .sliderAccessibilityValueStep(10)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:241:30: error: 'Color' is only available in macOS 10.15 or newer
239 | .sliderLengthBehavior(.dynamic)
240 | .sliderTrackColor(Color(hex: 0xEBD5F5, alpha: 0.5))
241 | .sliderProgressColor(Color(hex: 0x9B59B6, alpha: 0.75))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
242 | .sliderAccessibilityValueStep(10)
243 | .sliderAccessibilityValueFormatter(oneDecimalDigitFormatter)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:247:19: error: 'Color' is only available in macOS 10.15 or newer
245 | .sliderThickness(100)
246 | .sliderRadius(30)
247 | .sliderStroke(Color(hex: 0x000000, alpha: 0.3), lineWidth: 0.3)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
248 | .padding(50)
249 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:248:6: error: 'padding' is only available in macOS 10.15 or newer
246 | .sliderRadius(30)
247 | .sliderStroke(Color(hex: 0x000000, alpha: 0.3), lineWidth: 0.3)
248 | .padding(50)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
249 | }
250 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:34:20: error: 'Path' is only available in macOS 10.15 or newer
4 |
5 | /// A shape used to render the background of the slider track.
6 | struct BackgroundShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
7 |
8 | var radius: CGFloat
:
27 | // MARK: Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
32 | let minY = rect.minY
33 | let maxY = topRelativeMaxY(in: rect)
34 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 |
36 | // Start at bottom-left point
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:37:14: error: 'move(to:)' is only available in macOS 10.15 or newer
4 |
5 | /// A shape used to render the background of the slider track.
6 | struct BackgroundShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
7 |
8 | var radius: CGFloat
:
27 | // MARK: Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
:
35 |
36 | // Start at bottom-left point
37 | path.move(to: CGPoint(x: minX, y: maxY))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 |
39 | // Left edge
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:40:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
4 |
5 | /// A shape used to render the background of the slider track.
6 | struct BackgroundShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
7 |
8 | var radius: CGFloat
:
27 | // MARK: Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
:
38 |
39 | // Left edge
40 | path.addLine(to: CGPoint(x: minX, y: minY + radius))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 |
42 | // Top-left corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:43:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
4 |
5 | /// A shape used to render the background of the slider track.
6 | struct BackgroundShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
7 |
8 | var radius: CGFloat
:
27 | // MARK: Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
:
41 |
42 | // Top-left corner
43 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | center: CGPoint(x: minX + radius, y: minY + radius),
45 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:52:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
4 |
5 | /// A shape used to render the background of the slider track.
6 | struct BackgroundShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
7 |
8 | var radius: CGFloat
:
27 | // MARK: Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
:
50 |
51 | // Top edge
52 | path.addLine(to: CGPoint(x: maxX - radius, y: minY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 |
54 | // Top-right corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:55:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
4 |
5 | /// A shape used to render the background of the slider track.
6 | struct BackgroundShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
7 |
8 | var radius: CGFloat
:
27 | // MARK: Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
:
53 |
54 | // Top-right corner
55 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | center: CGPoint(x: maxX - radius, y: minY + radius),
57 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:64:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
4 |
5 | /// A shape used to render the background of the slider track.
6 | struct BackgroundShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
7 |
8 | var radius: CGFloat
:
27 | // MARK: Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
:
62 |
63 | // Right edge
64 | path.addLine(to: CGPoint(x: maxX, y: maxY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 |
66 | // Bottom-right corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:67:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
4 |
5 | /// A shape used to render the background of the slider track.
6 | struct BackgroundShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
7 |
8 | var radius: CGFloat
:
27 | // MARK: Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
:
65 |
66 | // Bottom-right corner
67 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | center: CGPoint(x: maxX - radius, y: maxY),
69 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:76:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
4 |
5 | /// A shape used to render the background of the slider track.
6 | struct BackgroundShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
7 |
8 | var radius: CGFloat
:
27 | // MARK: Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
:
74 |
75 | // Bottom edge
76 | path.addLine(to: CGPoint(x: minX + radius, y: maxY - radius))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 |
78 | // Bottom-left corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:79:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
4 |
5 | /// A shape used to render the background of the slider track.
6 | struct BackgroundShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
7 |
8 | var radius: CGFloat
:
27 | // MARK: Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
:
77 |
78 | // Bottom-left corner
79 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | center: CGPoint(x: minX + radius, y: maxY),
81 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:87:14: error: 'closeSubpath()' is only available in macOS 10.15 or newer
4 |
5 | /// A shape used to render the background of the slider track.
6 | struct BackgroundShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
7 |
8 | var radius: CGFloat
:
27 | // MARK: Path
28 |
29 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
:
85 | )
86 |
87 | path.closeSubpath()
| |- error: 'closeSubpath()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | return applyingElasticDragEffect(on: path, in: rect)
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:133:20: error: 'Path' is only available in macOS 10.15 or newer
103 | /// A partial path used to render the stroke behind the background of the
104 | /// slider track.
105 | struct BackgroundStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
106 |
107 | var radius: CGFloat
:
126 | // MARK: Path
127 |
128 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
129 | let minX = rect.minX
130 | let maxX = rect.maxX
131 | let minY = rect.minY
132 | let maxY = topRelativeMaxY(in: rect)
133 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 |
135 | // Start at bottom-left point
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:136:14: error: 'move(to:)' is only available in macOS 10.15 or newer
103 | /// A partial path used to render the stroke behind the background of the
104 | /// slider track.
105 | struct BackgroundStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
106 |
107 | var radius: CGFloat
:
126 | // MARK: Path
127 |
128 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
129 | let minX = rect.minX
130 | let maxX = rect.maxX
:
134 |
135 | // Start at bottom-left point
136 | path.move(to: CGPoint(x: minX, y: maxY))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 |
138 | // Left edge
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:139:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
103 | /// A partial path used to render the stroke behind the background of the
104 | /// slider track.
105 | struct BackgroundStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
106 |
107 | var radius: CGFloat
:
126 | // MARK: Path
127 |
128 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
129 | let minX = rect.minX
130 | let maxX = rect.maxX
:
137 |
138 | // Left edge
139 | path.addLine(to: CGPoint(x: minX, y: minY + radius))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 |
141 | // Top-left corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:142:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
103 | /// A partial path used to render the stroke behind the background of the
104 | /// slider track.
105 | struct BackgroundStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
106 |
107 | var radius: CGFloat
:
126 | // MARK: Path
127 |
128 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
129 | let minX = rect.minX
130 | let maxX = rect.maxX
:
140 |
141 | // Top-left corner
142 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
143 | center: CGPoint(x: minX + radius, y: minY + radius),
144 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:151:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
103 | /// A partial path used to render the stroke behind the background of the
104 | /// slider track.
105 | struct BackgroundStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
106 |
107 | var radius: CGFloat
:
126 | // MARK: Path
127 |
128 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
129 | let minX = rect.minX
130 | let maxX = rect.maxX
:
149 |
150 | // Top edge
151 | path.addLine(to: CGPoint(x: maxX - radius, y: minY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 |
153 | // Top-right corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:154:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
103 | /// A partial path used to render the stroke behind the background of the
104 | /// slider track.
105 | struct BackgroundStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
106 |
107 | var radius: CGFloat
:
126 | // MARK: Path
127 |
128 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
129 | let minX = rect.minX
130 | let maxX = rect.maxX
:
152 |
153 | // Top-right corner
154 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | center: CGPoint(x: maxX - radius, y: minY + radius),
156 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:163:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
103 | /// A partial path used to render the stroke behind the background of the
104 | /// slider track.
105 | struct BackgroundStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
106 |
107 | var radius: CGFloat
:
126 | // MARK: Path
127 |
128 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
129 | let minX = rect.minX
130 | let maxX = rect.maxX
:
161 |
162 | // Bottom edge
163 | path.addLine(to: CGPoint(x: maxX, y: maxY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 |
165 | return applyingElasticDragEffect(on: path, in: rect)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:209:20: error: 'Path' is only available in macOS 10.15 or newer
179 |
180 | /// A shape used to render the progress of the slider track.
181 | struct ProgressShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
182 |
183 | var radius: CGFloat
:
202 | // MARK: Path
203 |
204 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
207 | let minY = topRelativeMinY(in: rect)
208 | let maxY = rect.maxY
209 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 |
211 | // Start at bottom-most-left point
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:212:14: error: 'move(to:)' is only available in macOS 10.15 or newer
179 |
180 | /// A shape used to render the progress of the slider track.
181 | struct ProgressShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
182 |
183 | var radius: CGFloat
:
202 | // MARK: Path
203 |
204 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
:
210 |
211 | // Start at bottom-most-left point
212 | path.move(to: CGPoint(x: minX + radius, y: maxY))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
213 |
214 | // Bottom edge
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:215:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
179 |
180 | /// A shape used to render the progress of the slider track.
181 | struct ProgressShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
182 |
183 | var radius: CGFloat
:
202 | // MARK: Path
203 |
204 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
:
213 |
214 | // Bottom edge
215 | path.addLine(to: CGPoint(x: maxX - radius, y: maxY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
216 |
217 | // Bottom-right corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:218:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
179 |
180 | /// A shape used to render the progress of the slider track.
181 | struct ProgressShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
182 |
183 | var radius: CGFloat
:
202 | // MARK: Path
203 |
204 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
:
216 |
217 | // Bottom-right corner
218 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
219 | center: CGPoint(x: maxX - radius, y: maxY - radius),
220 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:227:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
179 |
180 | /// A shape used to render the progress of the slider track.
181 | struct ProgressShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
182 |
183 | var radius: CGFloat
:
202 | // MARK: Path
203 |
204 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
:
225 |
226 | // Right edge
227 | path.addLine(to: CGPoint(x: maxX, y: minY + radius))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 |
229 | // Top-right corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:230:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
179 |
180 | /// A shape used to render the progress of the slider track.
181 | struct ProgressShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
182 |
183 | var radius: CGFloat
:
202 | // MARK: Path
203 |
204 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
:
228 |
229 | // Top-right corner
230 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
231 | center: CGPoint(x: maxX - radius, y: minY + radius),
232 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:239:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
179 |
180 | /// A shape used to render the progress of the slider track.
181 | struct ProgressShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
182 |
183 | var radius: CGFloat
:
202 | // MARK: Path
203 |
204 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
:
237 |
238 | // Top edge
239 | path.addLine(to: CGPoint(x: minX + radius, y: minY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
240 |
241 | // Top-left corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:242:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
179 |
180 | /// A shape used to render the progress of the slider track.
181 | struct ProgressShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
182 |
183 | var radius: CGFloat
:
202 | // MARK: Path
203 |
204 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
:
240 |
241 | // Top-left corner
242 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
243 | center: CGPoint(x: minX + radius, y: minY + radius),
244 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:251:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
179 |
180 | /// A shape used to render the progress of the slider track.
181 | struct ProgressShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
182 |
183 | var radius: CGFloat
:
202 | // MARK: Path
203 |
204 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
:
249 |
250 | // Left edge
251 | path.addLine(to: CGPoint(x: minX, y: maxY - radius))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
252 |
253 | // Bottom-right corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:254:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
179 |
180 | /// A shape used to render the progress of the slider track.
181 | struct ProgressShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
182 |
183 | var radius: CGFloat
:
202 | // MARK: Path
203 |
204 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
:
252 |
253 | // Bottom-right corner
254 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
255 | center: CGPoint(x: minX + radius, y: maxY - radius),
256 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:262:14: error: 'closeSubpath()' is only available in macOS 10.15 or newer
179 |
180 | /// A shape used to render the progress of the slider track.
181 | struct ProgressShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
182 |
183 | var radius: CGFloat
:
202 | // MARK: Path
203 |
204 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
:
260 | )
261 |
262 | path.closeSubpath()
| |- error: 'closeSubpath()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
263 |
264 | return applyingElasticDragEffect(on: path, in: rect)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:309:20: error: 'Path' is only available in macOS 10.15 or newer
280 | /// A partial path used to render the stroke behind the progress of the
281 | /// slider track.
282 | struct ProgressStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
283 |
284 | var radius: CGFloat
:
302 | // MARK: Path
303 |
304 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
305 | let minX = rect.minX
306 | let maxX = rect.maxX
307 | let minY = topRelativeMinY(in: rect)
308 | let maxY = rect.maxY
309 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
310 |
311 | // Start at top-left point
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:312:14: error: 'move(to:)' is only available in macOS 10.15 or newer
280 | /// A partial path used to render the stroke behind the progress of the
281 | /// slider track.
282 | struct ProgressStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
283 |
284 | var radius: CGFloat
:
302 | // MARK: Path
303 |
304 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
305 | let minX = rect.minX
306 | let maxX = rect.maxX
:
310 |
311 | // Start at top-left point
312 | path.move(to: CGPoint(x: minX, y: minY + radius))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
313 |
314 | // Left edge
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:315:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
280 | /// A partial path used to render the stroke behind the progress of the
281 | /// slider track.
282 | struct ProgressStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
283 |
284 | var radius: CGFloat
:
302 | // MARK: Path
303 |
304 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
305 | let minX = rect.minX
306 | let maxX = rect.maxX
:
313 |
314 | // Left edge
315 | path.addLine(to: CGPoint(x: minX, y: maxY - radius))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
316 |
317 | // Bottom-left corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:318:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
280 | /// A partial path used to render the stroke behind the progress of the
281 | /// slider track.
282 | struct ProgressStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
283 |
284 | var radius: CGFloat
:
302 | // MARK: Path
303 |
304 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
305 | let minX = rect.minX
306 | let maxX = rect.maxX
:
316 |
317 | // Bottom-left corner
318 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
319 | center: CGPoint(x: minX + radius, y: maxY - radius),
320 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:327:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
280 | /// A partial path used to render the stroke behind the progress of the
281 | /// slider track.
282 | struct ProgressStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
283 |
284 | var radius: CGFloat
:
302 | // MARK: Path
303 |
304 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
305 | let minX = rect.minX
306 | let maxX = rect.maxX
:
325 |
326 | // Bottom edge
327 | path.addLine(to: CGPoint(x: maxX - radius, y: maxY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
328 |
329 | // Bottom-right corner
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:330:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
280 | /// A partial path used to render the stroke behind the progress of the
281 | /// slider track.
282 | struct ProgressStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
283 |
284 | var radius: CGFloat
:
302 | // MARK: Path
303 |
304 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
305 | let minX = rect.minX
306 | let maxX = rect.maxX
:
328 |
329 | // Bottom-right corner
330 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
331 | center: CGPoint(x: maxX - radius, y: maxY - radius),
332 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:339:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
280 | /// A partial path used to render the stroke behind the progress of the
281 | /// slider track.
282 | struct ProgressStrokeShape: TrackShape {
| `- note: add '@available' attribute to enclosing struct
283 |
284 | var radius: CGFloat
:
302 | // MARK: Path
303 |
304 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
305 | let minX = rect.minX
306 | let maxX = rect.maxX
:
337 |
338 | // Right edge
339 | path.addLine(to: CGPoint(x: maxX, y: minY + radius))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
340 |
341 | return applyingElasticDragEffect(on: path, in: rect)
[16/22] Compiling LiteSlider FixedFrameContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:7:28: error: 'Alignment' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
| `- error: 'Alignment' is only available in macOS 10.15 or newer
8 | private let content: () -> Content
9 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:18:20: error: 'Alignment' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
14 | /// `.center`.
15 | /// - content: The content view builder.
16 | init(
| `- note: add '@available' attribute to enclosing initializer
17 | size: CGSize,
18 | alignment: Alignment = .center,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
19 | @ViewBuilder content: @escaping () -> Content
20 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:19:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
14 | /// `.center`.
15 | /// - content: The content view builder.
16 | init(
| `- note: add '@available' attribute to enclosing initializer
17 | size: CGSize,
18 | alignment: Alignment = .center,
19 | @ViewBuilder content: @escaping () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
20 | ) {
21 | self.size = size
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:18:33: error: 'center' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
14 | /// `.center`.
15 | /// - content: The content view builder.
16 | init(
| `- note: add '@available' attribute to enclosing initializer
17 | size: CGSize,
18 | alignment: Alignment = .center,
| `- error: 'center' is only available in macOS 10.15 or newer
19 | @ViewBuilder content: @escaping () -> Content
20 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:26:20: error: 'View' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:5:37: error: 'View' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:27:9: error: 'Rectangle' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .fill(Color.clear)
29 | .overlay(alignment: alignment) { content() }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:28:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
29 | .overlay(alignment: alignment) { content() }
30 | .frame(width: size?.width, height: size?.height)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:28:19: error: 'Color' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | .overlay(alignment: alignment) { content() }
30 | .frame(width: size?.width, height: size?.height)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:28:25: error: 'clear' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | .overlay(alignment: alignment) { content() }
30 | .frame(width: size?.width, height: size?.height)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:29:14: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
29 | .overlay(alignment: alignment) { content() }
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
30 | .frame(width: size?.width, height: size?.height)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:30:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
29 | .overlay(alignment: alignment) { content() }
30 | .frame(width: size?.width, height: size?.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
11 |
12 | @Binding private var isDragging: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | // MARK: Callbacks
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:24:22: error: 'Binding' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
22 | /// Creates a `TouchAndDragGesture`.
23 | /// - Parameter isDragging: A binding that will be set to `true` after dragging starts, and `false` when it ends.
24 | init(isDragging: Binding<Bool>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
25 | _isDragging = isDragging
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:30:20: error: 'Gesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
28 | // MARK: Gesture Body
29 |
30 | var body: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
31 | touchGesture.simultaneously(with: dragGesture)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:34:36: error: 'Gesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:48:35: error: 'Gesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:31:22: error: 'simultaneously(with:)' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
28 | // MARK: Gesture Body
29 |
30 | var body: some Gesture {
| `- note: add '@available' attribute to enclosing property
31 | touchGesture.simultaneously(with: dragGesture)
| |- error: 'simultaneously(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:36:13: error: conformance of 'Optional<Wrapped>' to 'Gesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
| |- error: conformance of 'Optional<Wrapped>' to 'Gesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | : DragGesture(minimumDistance: 0)
38 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:37:15: error: 'DragGesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
37 | : DragGesture(minimumDistance: 0)
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .onChanged { value in
39 | isDragging = true
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:37:15: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
37 | : DragGesture(minimumDistance: 0)
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
38 | .onChanged { value in
39 | isDragging = true
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:38:18: error: 'onChanged' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
37 | : DragGesture(minimumDistance: 0)
38 | .onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | isDragging = true
40 | onStarted?(value.location)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:39:21: error: setter for 'isDragging' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
37 | : DragGesture(minimumDistance: 0)
38 | .onChanged { value in
39 | isDragging = true
| |- error: setter for 'isDragging' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | onStarted?(value.location)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:42:18: error: 'onEnded' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
:
40 | onStarted?(value.location)
41 | }
42 | .onEnded { _ in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | isDragging = false
44 | onEnded?()
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:43:21: error: setter for 'isDragging' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
:
41 | }
42 | .onEnded { _ in
43 | isDragging = false
| |- error: setter for 'isDragging' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | onEnded?()
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:50:13: error: conformance of 'Optional<Wrapped>' to 'Gesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
| |- error: conformance of 'Optional<Wrapped>' to 'Gesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .onChanged { value in
52 | onChanged?(value.location)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:50:15: error: 'DragGesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .onChanged { value in
52 | onChanged?(value.location)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:50:15: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
51 | .onChanged { value in
52 | onChanged?(value.location)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:51:18: error: 'onChanged' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
51 | .onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | onChanged?(value.location)
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:54:18: error: 'onEnded' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
:
52 | onChanged?(value.location)
53 | }
54 | .onEnded { _ in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | isDragging = false
56 | onEnded?()
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:55:21: error: setter for 'isDragging' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
:
53 | }
54 | .onEnded { _ in
55 | isDragging = false
| |- error: setter for 'isDragging' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | onEnded?()
57 | }
[17/22] Compiling LiteSlider TouchAndDragGesture.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:7:28: error: 'Alignment' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
| `- error: 'Alignment' is only available in macOS 10.15 or newer
8 | private let content: () -> Content
9 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:18:20: error: 'Alignment' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
14 | /// `.center`.
15 | /// - content: The content view builder.
16 | init(
| `- note: add '@available' attribute to enclosing initializer
17 | size: CGSize,
18 | alignment: Alignment = .center,
| `- error: 'Alignment' is only available in macOS 10.15 or newer
19 | @ViewBuilder content: @escaping () -> Content
20 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:19:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
14 | /// `.center`.
15 | /// - content: The content view builder.
16 | init(
| `- note: add '@available' attribute to enclosing initializer
17 | size: CGSize,
18 | alignment: Alignment = .center,
19 | @ViewBuilder content: @escaping () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
20 | ) {
21 | self.size = size
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:18:33: error: 'center' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
14 | /// `.center`.
15 | /// - content: The content view builder.
16 | init(
| `- note: add '@available' attribute to enclosing initializer
17 | size: CGSize,
18 | alignment: Alignment = .center,
| `- error: 'center' is only available in macOS 10.15 or newer
19 | @ViewBuilder content: @escaping () -> Content
20 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:26:20: error: 'View' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:5:37: error: 'View' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:27:9: error: 'Rectangle' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .fill(Color.clear)
29 | .overlay(alignment: alignment) { content() }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:28:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
29 | .overlay(alignment: alignment) { content() }
30 | .frame(width: size?.width, height: size?.height)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:28:19: error: 'Color' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | .overlay(alignment: alignment) { content() }
30 | .frame(width: size?.width, height: size?.height)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:28:25: error: 'clear' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | .overlay(alignment: alignment) { content() }
30 | .frame(width: size?.width, height: size?.height)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:29:14: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
29 | .overlay(alignment: alignment) { content() }
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
30 | .frame(width: size?.width, height: size?.height)
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/FixedFrameContainer.swift:30:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
3 | /// A container view that overlays its content on a transparent rectangle,
4 | /// allowing for alignment control and optional fixed size.
5 | struct FixedFrameContainer<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
6 | private let size: CGSize?
7 | private let alignment: Alignment
:
24 | }
25 |
26 | var body: some View {
| `- note: add '@available' attribute to enclosing property
27 | Rectangle()
28 | .fill(Color.clear)
29 | .overlay(alignment: alignment) { content() }
30 | .frame(width: size?.width, height: size?.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
11 |
12 | @Binding private var isDragging: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | // MARK: Callbacks
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:24:22: error: 'Binding' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
22 | /// Creates a `TouchAndDragGesture`.
23 | /// - Parameter isDragging: A binding that will be set to `true` after dragging starts, and `false` when it ends.
24 | init(isDragging: Binding<Bool>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
25 | _isDragging = isDragging
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:30:20: error: 'Gesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
28 | // MARK: Gesture Body
29 |
30 | var body: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
31 | touchGesture.simultaneously(with: dragGesture)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:34:36: error: 'Gesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:48:35: error: 'Gesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:31:22: error: 'simultaneously(with:)' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
28 | // MARK: Gesture Body
29 |
30 | var body: some Gesture {
| `- note: add '@available' attribute to enclosing property
31 | touchGesture.simultaneously(with: dragGesture)
| |- error: 'simultaneously(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | }
33 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:36:13: error: conformance of 'Optional<Wrapped>' to 'Gesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
| |- error: conformance of 'Optional<Wrapped>' to 'Gesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | : DragGesture(minimumDistance: 0)
38 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:37:15: error: 'DragGesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
37 | : DragGesture(minimumDistance: 0)
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .onChanged { value in
39 | isDragging = true
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:37:15: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
37 | : DragGesture(minimumDistance: 0)
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
38 | .onChanged { value in
39 | isDragging = true
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:38:18: error: 'onChanged' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
37 | : DragGesture(minimumDistance: 0)
38 | .onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | isDragging = true
40 | onStarted?(value.location)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:39:21: error: setter for 'isDragging' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
37 | : DragGesture(minimumDistance: 0)
38 | .onChanged { value in
39 | isDragging = true
| |- error: setter for 'isDragging' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | onStarted?(value.location)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:42:18: error: 'onEnded' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
:
40 | onStarted?(value.location)
41 | }
42 | .onEnded { _ in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | isDragging = false
44 | onEnded?()
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:43:21: error: setter for 'isDragging' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
32 | }
33 |
34 | private var touchGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
35 | isDragging
36 | ? nil
:
41 | }
42 | .onEnded { _ in
43 | isDragging = false
| |- error: setter for 'isDragging' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | onEnded?()
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:50:13: error: conformance of 'Optional<Wrapped>' to 'Gesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
| |- error: conformance of 'Optional<Wrapped>' to 'Gesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .onChanged { value in
52 | onChanged?(value.location)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:50:15: error: 'DragGesture' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .onChanged { value in
52 | onChanged?(value.location)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:50:15: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
51 | .onChanged { value in
52 | onChanged?(value.location)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:51:18: error: 'onChanged' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
51 | .onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | onChanged?(value.location)
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:54:18: error: 'onEnded' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
:
52 | onChanged?(value.location)
53 | }
54 | .onEnded { _ in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | isDragging = false
56 | onEnded?()
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/InteractionSupport/TouchAndDragGesture.swift:55:21: error: setter for 'isDragging' is only available in macOS 10.15 or newer
6 | /// Unlike a regular `DragGesture`, `TouchAndDragGesture` begins immediately
7 | /// on touch down (no minimum movement), making it useful for sliders or touch-sensitive UIs.
8 | struct TouchAndDragGesture: Gesture {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Bindings
:
46 | }
47 |
48 | private var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
49 | isDragging
50 | ? DragGesture(minimumDistance: 0)
:
53 | }
54 | .onEnded { _ in
55 | isDragging = false
| |- error: setter for 'isDragging' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | onEnded?()
57 | }
[18/22] Compiling LiteSlider LiteSliderAppearanceExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:7:30: error: 'Alignment' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:9:31: error: 'bottom' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .downward: return .top
11 | case .center: return .center
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:10:33: error: 'top' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
10 | case .downward: return .top
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .center: return .center
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:11:31: error: 'center' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
10 | case .downward: return .top
11 | case .center: return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:14:15: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
:
10 | ///
11 | /// Default: No action.
12 | public func onSliderDragEnded(
| `- note: add '@available' attribute to enclosing instance method
13 | _ onEnded: @escaping () -> Void
14 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
15 | environment(\.liteSliderOnEnded, onEnded)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:5:11: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:23:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
24 |
25 | var liteSliderOnEnded: () -> Void {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:15:9: error: 'environment' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
:
10 | ///
11 | /// Default: No action.
12 | public func onSliderDragEnded(
| `- note: add '@available' attribute to enclosing instance method
13 | _ onEnded: @escaping () -> Void
14 | ) -> some View {
15 | environment(\.liteSliderOnEnded, onEnded)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | }
[19/22] Compiling LiteSlider OnSliderDragEnded.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:7:30: error: 'Alignment' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:9:31: error: 'bottom' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .downward: return .top
11 | case .center: return .center
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:10:33: error: 'top' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
10 | case .downward: return .top
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .center: return .center
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:11:31: error: 'center' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
10 | case .downward: return .top
11 | case .center: return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:14:15: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
:
10 | ///
11 | /// Default: No action.
12 | public func onSliderDragEnded(
| `- note: add '@available' attribute to enclosing instance method
13 | _ onEnded: @escaping () -> Void
14 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
15 | environment(\.liteSliderOnEnded, onEnded)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:5:11: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:23:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
24 |
25 | var liteSliderOnEnded: () -> Void {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:15:9: error: 'environment' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
:
10 | ///
11 | /// Default: No action.
12 | public func onSliderDragEnded(
| `- note: add '@available' attribute to enclosing instance method
13 | _ onEnded: @escaping () -> Void
14 | ) -> some View {
15 | environment(\.liteSliderOnEnded, onEnded)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | }
[20/22] Compiling LiteSlider LiteSlider+Track.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:48:56: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
46 |
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:49:49: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
50 |
51 | // MARK: View
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:21:10: error: 'Binding' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
19 | /// A binding to the current drag ratio, representing the thumb's
20 | /// position along the track from 0 to 1.
21 | @Binding var dragRatio: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
22 |
23 | /// A binding indicating whether the user is actively dragging the
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:25:10: error: 'Binding' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
23 | /// A binding indicating whether the user is actively dragging the
24 | /// slider.
25 | @Binding var isDragging: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
26 |
27 | /// An optional closure that is called when the user starts interacting
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:33:10: error: 'State' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
31 | // MARK: State
32 |
33 | @State private var dragLocation = CGPoint(x: 0, y: 0)
| `- error: 'State' is only available in macOS 10.15 or newer
34 |
35 | // MARK: Environment
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:37:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
35 | // MARK: Environment
36 |
37 | @Environment(\.liteSliderThickness) private var thickness
| `- error: 'Environment' is only available in macOS 10.15 or newer
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:38:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
36 |
37 | @Environment(\.liteSliderThickness) private var thickness
38 | @Environment(\.liteSliderRadius) private var radius
| `- error: 'Environment' is only available in macOS 10.15 or newer
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:39:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
37 | @Environment(\.liteSliderThickness) private var thickness
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:40:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
42 | @Environment(\.liteSliderElasticDragProperties)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:41:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
42 | @Environment(\.liteSliderElasticDragProperties)
43 | private var elasticDragProperties
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:42:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
42 | @Environment(\.liteSliderElasticDragProperties)
| `- error: 'Environment' is only available in macOS 10.15 or newer
43 | private var elasticDragProperties
44 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:48:43: error: 'Animation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
46 |
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
| `- error: 'Animation' is only available in macOS 10.15 or newer
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:49:36: error: 'Animation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
| `- error: 'Animation' is only available in macOS 10.15 or newer
50 |
51 | // MARK: View
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:53:24: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:67:33: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
65 | // MARK: Subviews
66 |
67 | private var track: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 | let trackShapeParameters = trackShapeParameters
69 | return ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:77:19: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
78 | ZStack {
79 | BackgroundStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:88:19: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
89 | ZStack {
90 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:108:37: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:117:35: error: 'Gesture' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
115 | // MARK: Gesture
116 |
117 | private var gesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
118 | TouchAndDragGesture(isDragging: $isDragging)
119 | .onStarted { location in
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:54:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | track
56 | thumbView
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:54:32: error: 'top' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | track
56 | thumbView
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:58:14: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
56 | thumbView
57 | }
58 | .gesture(gesture)
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:59:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
57 | }
58 | .gesture(gesture)
59 | .animation(dragAnimation, value: isDragging)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .animation(valueChangeAnimation, value: dragRatio)
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:60:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
58 | .gesture(gesture)
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
62 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:61:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:69:20: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
65 | // MARK: Subviews
66 |
67 | private var track: some View {
| `- note: add '@available' attribute to enclosing property
68 | let trackShapeParameters = trackShapeParameters
69 | return ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | background(trackShapeParameters)
71 | progress(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:80:22: error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
| |- error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | BackgroundShape(trackShapeParameters)
82 | .fill(trackColor)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:81:17: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
:
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
81 | BackgroundShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .fill(trackColor)
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:82:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
:
80 | .stroke(lineWidth: strokeStyle.lineWidth)
81 | BackgroundShape(trackShapeParameters)
82 | .fill(trackColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:91:22: error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
| |- error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | ProgressShape(trackShapeParameters)
93 | .fill(progressColor)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:92:17: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
:
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
92 | ProgressShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .fill(progressColor)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:93:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
:
91 | .stroke(lineWidth: strokeStyle.lineWidth)
92 | ProgressShape(trackShapeParameters)
93 | .fill(progressColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:112:18: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
112 | .frame(width: thickness, height: thickness)
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | }
114 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:111:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | .frame(width: thickness, height: thickness)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:112:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
112 | .frame(width: thickness, height: thickness)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | }
114 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:134:13: error: setter for 'dragLocation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
131 | }
132 |
133 | private func updateDragLocation(for location: CGPoint) {
| `- note: add '@available' attribute to enclosing instance method
134 | dragLocation.y = length - location.y - touchLocationLength / 2
| |- error: setter for 'dragLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
135 | }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:140:13: error: setter for 'dragRatio' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
135 | }
136 |
137 | private func updateDragRatio() {
| `- note: add '@available' attribute to enclosing instance method
138 | let availableLength = trackGeometry.availableLength
139 | let clamped = dragLocation.y.clamped(to: 0...availableLength)
140 | dragRatio = clamped / max(1, availableLength)
| |- error: setter for 'dragRatio' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | }
142 |
[21/22] Compiling LiteSlider LiteSliderTrackGeometry.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:48:56: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
46 |
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:49:49: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
50 |
51 | // MARK: View
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:21:10: error: 'Binding' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
19 | /// A binding to the current drag ratio, representing the thumb's
20 | /// position along the track from 0 to 1.
21 | @Binding var dragRatio: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
22 |
23 | /// A binding indicating whether the user is actively dragging the
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:25:10: error: 'Binding' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
23 | /// A binding indicating whether the user is actively dragging the
24 | /// slider.
25 | @Binding var isDragging: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
26 |
27 | /// An optional closure that is called when the user starts interacting
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:33:10: error: 'State' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
31 | // MARK: State
32 |
33 | @State private var dragLocation = CGPoint(x: 0, y: 0)
| `- error: 'State' is only available in macOS 10.15 or newer
34 |
35 | // MARK: Environment
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:37:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
35 | // MARK: Environment
36 |
37 | @Environment(\.liteSliderThickness) private var thickness
| `- error: 'Environment' is only available in macOS 10.15 or newer
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:38:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
36 |
37 | @Environment(\.liteSliderThickness) private var thickness
38 | @Environment(\.liteSliderRadius) private var radius
| `- error: 'Environment' is only available in macOS 10.15 or newer
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:39:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
37 | @Environment(\.liteSliderThickness) private var thickness
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:40:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
42 | @Environment(\.liteSliderElasticDragProperties)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:41:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
42 | @Environment(\.liteSliderElasticDragProperties)
43 | private var elasticDragProperties
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:42:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
42 | @Environment(\.liteSliderElasticDragProperties)
| `- error: 'Environment' is only available in macOS 10.15 or newer
43 | private var elasticDragProperties
44 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:48:43: error: 'Animation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
46 |
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
| `- error: 'Animation' is only available in macOS 10.15 or newer
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:49:36: error: 'Animation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
| `- error: 'Animation' is only available in macOS 10.15 or newer
50 |
51 | // MARK: View
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:53:24: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:67:33: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
65 | // MARK: Subviews
66 |
67 | private var track: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 | let trackShapeParameters = trackShapeParameters
69 | return ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:77:19: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
78 | ZStack {
79 | BackgroundStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:88:19: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
89 | ZStack {
90 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:108:37: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:117:35: error: 'Gesture' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
115 | // MARK: Gesture
116 |
117 | private var gesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
118 | TouchAndDragGesture(isDragging: $isDragging)
119 | .onStarted { location in
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:54:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | track
56 | thumbView
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:54:32: error: 'top' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | track
56 | thumbView
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:58:14: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
56 | thumbView
57 | }
58 | .gesture(gesture)
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:59:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
57 | }
58 | .gesture(gesture)
59 | .animation(dragAnimation, value: isDragging)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .animation(valueChangeAnimation, value: dragRatio)
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:60:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
58 | .gesture(gesture)
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
62 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:61:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:69:20: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
65 | // MARK: Subviews
66 |
67 | private var track: some View {
| `- note: add '@available' attribute to enclosing property
68 | let trackShapeParameters = trackShapeParameters
69 | return ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | background(trackShapeParameters)
71 | progress(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:80:22: error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
| |- error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | BackgroundShape(trackShapeParameters)
82 | .fill(trackColor)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:81:17: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
:
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
81 | BackgroundShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .fill(trackColor)
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:82:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
:
80 | .stroke(lineWidth: strokeStyle.lineWidth)
81 | BackgroundShape(trackShapeParameters)
82 | .fill(trackColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:91:22: error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
| |- error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | ProgressShape(trackShapeParameters)
93 | .fill(progressColor)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:92:17: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
:
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
92 | ProgressShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .fill(progressColor)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:93:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
:
91 | .stroke(lineWidth: strokeStyle.lineWidth)
92 | ProgressShape(trackShapeParameters)
93 | .fill(progressColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:112:18: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
112 | .frame(width: thickness, height: thickness)
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | }
114 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:111:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | .frame(width: thickness, height: thickness)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:112:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
112 | .frame(width: thickness, height: thickness)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | }
114 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:134:13: error: setter for 'dragLocation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
131 | }
132 |
133 | private func updateDragLocation(for location: CGPoint) {
| `- note: add '@available' attribute to enclosing instance method
134 | dragLocation.y = length - location.y - touchLocationLength / 2
| |- error: setter for 'dragLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
135 | }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:140:13: error: setter for 'dragRatio' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
135 | }
136 |
137 | private func updateDragRatio() {
| `- note: add '@available' attribute to enclosing instance method
138 | let availableLength = trackGeometry.availableLength
139 | let clamped = dragLocation.y.clamped(to: 0...availableLength)
140 | dragRatio = clamped / max(1, availableLength)
| |- error: setter for 'dragRatio' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | }
142 |
[22/22] Compiling LiteSlider LiteSlider+FixedLengthTrack.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+FixedLengthTrack.swift:20:10: error: 'Binding' is only available in macOS 10.15 or newer
9 | /// This view displays the track at a constant length, and positions the
10 | /// thumb according to the current drag ratio.
11 | struct FixedLengthTrack: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The vertical length of the track.
:
18 |
19 | /// A binding to the current drag ratio, from 0.0 to 1.0.
20 | @Binding var dragRatio: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 |
22 | /// A binding that reflects whether the user is actively dragging.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+FixedLengthTrack.swift:23:10: error: 'Binding' is only available in macOS 10.15 or newer
9 | /// This view displays the track at a constant length, and positions the
10 | /// thumb according to the current drag ratio.
11 | struct FixedLengthTrack: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The vertical length of the track.
:
21 |
22 | /// A binding that reflects whether the user is actively dragging.
23 | @Binding var isDragging: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
24 |
25 | @Environment(\.liteSliderThickness) private var thickness
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+FixedLengthTrack.swift:25:10: error: 'Environment' is only available in macOS 10.15 or newer
9 | /// This view displays the track at a constant length, and positions the
10 | /// thumb according to the current drag ratio.
11 | struct FixedLengthTrack: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The vertical length of the track.
:
23 | @Binding var isDragging: Bool
24 |
25 | @Environment(\.liteSliderThickness) private var thickness
| `- error: 'Environment' is only available in macOS 10.15 or newer
26 |
27 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+FixedLengthTrack.swift:27:24: error: 'View' is only available in macOS 10.15 or newer
9 | /// This view displays the track at a constant length, and positions the
10 | /// thumb according to the current drag ratio.
11 | struct FixedLengthTrack: View {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The vertical length of the track.
:
25 | @Environment(\.liteSliderThickness) private var thickness
26 |
27 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
28 | Track(
29 | length: length,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:48:56: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
46 |
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:49:49: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
50 |
51 | // MARK: View
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+FixedLengthTrack.swift:35:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
9 | /// This view displays the track at a constant length, and positions the
10 | /// thumb according to the current drag ratio.
11 | struct FixedLengthTrack: View {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The vertical length of the track.
:
25 | @Environment(\.liteSliderThickness) private var thickness
26 |
27 | var body: some View {
| `- note: add '@available' attribute to enclosing property
28 | Track(
29 | length: length,
:
33 | onStartDragging: nil
34 | )
35 | .frame(width: thickness, height: length)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | }
37 | }
BUILD FAILURE 6.3 macosSpm