Build Information
Failed to build LiteSlider, reference main (ab958a
), with Swift 6.1 for macOS (SPM) on 31 Jul 2025 01:36:03 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
160 | environment(\.liteSliderTrackColor, color)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:166:46: error: 'Color' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
164 | ///
165 | /// Default: `.accentColor`
166 | public func sliderProgressColor(_ color: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
167 | environment(\.liteSliderProgressColor, color)
168 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:166:61: error: 'View' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
164 | ///
165 | /// Default: `.accentColor`
166 | public func sliderProgressColor(_ color: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
167 | environment(\.liteSliderProgressColor, color)
168 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:173:39: error: 'Color' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
171 | ///
172 | /// Default: `.clear`, `lineWidth: 0`
173 | public func sliderStroke(_ color: Color, lineWidth: CGFloat) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
174 | environment(
175 | \.liteSliderStrokeStyle,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:173:74: error: 'View' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
171 | ///
172 | /// Default: `.clear`, `lineWidth: 0`
173 | public func sliderStroke(_ color: Color, lineWidth: CGFloat) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
174 | environment(
175 | \.liteSliderStrokeStyle,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:193:15: error: 'View' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
189 | /// )
190 | /// ```
191 | public func sliderElasticDrag(
| `- note: add @available attribute to enclosing instance method
192 | _ properties: ElasticDragProperties
193 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
194 | environment(\.liteSliderElasticDragProperties, properties)
195 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:218:15: error: 'View' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
212 | /// Default:
213 | /// `offsetSize: 25`, `compressionFactor: 0.1`, `expansionFactor: 0.2`
214 | public func sliderElasticDrag(
| `- note: add @available attribute to enclosing instance method
215 | offsetSize: CGFloat,
216 | compressionFactor: CGFloat,
217 | expansionFactor: CGFloat
218 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
219 | environment(
220 | \.liteSliderElasticDragProperties,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:131:11: error: 'View' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:245:30: error: 'Color' is only available in macOS 10.15 or newer
242 | }
243 |
244 | private struct LiteSliderTrackColorKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
245 | static let defaultValue: Color = .secondary
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
246 | }
247 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:245:39: error: 'secondary' is only available in macOS 10.15 or newer
242 | }
243 |
244 | private struct LiteSliderTrackColorKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
245 | static let defaultValue: Color = .secondary
| | `- error: 'secondary' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
246 | }
247 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:249:30: error: 'Color' is only available in macOS 10.15 or newer
246 | }
247 |
248 | private struct LiteSliderProgressColorKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
249 | static let defaultValue: Color = .accentColor
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:249:39: error: 'accentColor' is only available in macOS 10.15 or newer
246 | }
247 |
248 | private struct LiteSliderProgressColorKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
249 | static let defaultValue: Color = .accentColor
| | `- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:253:61: error: 'clear' is only available in macOS 10.15 or newer
250 | }
251 |
252 | private struct LiteSliderStrokeStyleKey: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
253 | static let defaultValue = LiteSliderStrokeStyle(color: .clear, lineWidth: 0)
| | `- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
254 | }
255 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:279:31: error: 'Color' is only available in macOS 10.15 or newer
260 | // MARK: - EnvironmentValues
261 |
262 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
263 |
264 | var liteSliderThickness: CGFloat {
:
277 | }
278 |
279 | var liteSliderTrackColor: Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
280 | get { self[LiteSliderTrackColorKey.self] }
281 | set { self[LiteSliderTrackColorKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:284:34: error: 'Color' is only available in macOS 10.15 or newer
260 | // MARK: - EnvironmentValues
261 |
262 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
263 |
264 | var liteSliderThickness: CGFloat {
:
282 | }
283 |
284 | var liteSliderProgressColor: Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
285 | get { self[LiteSliderProgressColorKey.self] }
286 | set { self[LiteSliderProgressColorKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:262:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
260 | // MARK: - EnvironmentValues
261 |
262 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
263 |
264 | var liteSliderThickness: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:137:9: error: 'environment' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
134 | ///
135 | /// Default: `300`
136 | public func sliderThickness(_ thickness: CGFloat) -> some View {
| `- note: add @available attribute to enclosing instance method
137 | environment(\.liteSliderThickness, thickness)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | }
139 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:144:9: error: 'environment' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
141 | ///
142 | /// Default: `30`
143 | public func sliderRadius(_ radius: CGFloat) -> some View {
| `- note: add @available attribute to enclosing instance method
144 | environment(\.liteSliderRadius, radius)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | }
146 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:153:9: error: 'environment' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
148 | ///
149 | /// Default: `.dynamic`
150 | public func sliderLengthBehavior(
| `- note: add @available attribute to enclosing instance method
151 | _ behavior: LiteSliderLengthBehavior
152 | ) -> some View {
153 | environment(\.liteSliderLengthBehavior, behavior)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
154 | }
155 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:160:9: error: 'environment' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
157 | ///
158 | /// Default: `.secondary`
159 | public func sliderTrackColor(_ color: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
160 | environment(\.liteSliderTrackColor, color)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
161 | }
162 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:167:9: error: 'environment' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
164 | ///
165 | /// Default: `.accentColor`
166 | public func sliderProgressColor(_ color: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
167 | environment(\.liteSliderProgressColor, color)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
168 | }
169 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:174:9: error: 'environment' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
171 | ///
172 | /// Default: `.clear`, `lineWidth: 0`
173 | public func sliderStroke(_ color: Color, lineWidth: CGFloat) -> some View {
| `- note: add @available attribute to enclosing instance method
174 | environment(
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | \.liteSliderStrokeStyle,
176 | .init(color: color, lineWidth: lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:194:9: error: 'environment' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
189 | /// )
190 | /// ```
191 | public func sliderElasticDrag(
| `- note: add @available attribute to enclosing instance method
192 | _ properties: ElasticDragProperties
193 | ) -> some View {
194 | environment(\.liteSliderElasticDragProperties, properties)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
195 | }
196 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:219:9: error: 'environment' is only available in macOS 10.15 or newer
129 | // MARK: - View Modifiers
130 |
131 | extension View {
| `- note: add @available attribute to enclosing extension
132 |
133 | /// Sets the thickness of the slider track.
:
212 | /// Default:
213 | /// `offsetSize: 25`, `compressionFactor: 0.1`, `expansionFactor: 0.2`
214 | public func sliderElasticDrag(
| `- note: add @available attribute to enclosing instance method
215 | offsetSize: CGFloat,
216 | compressionFactor: CGFloat,
217 | expansionFactor: CGFloat
218 | ) -> some View {
219 | environment(
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
220 | \.liteSliderElasticDragProperties,
221 | ElasticDragProperties(
[20/21] Compiling LiteSlider TrackShape.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:9:22: error: 'Shape' is only available in macOS 10.15 or newer
7 | ///
8 | /// Used in conjunction with `TrackShapeAnimatableData` to enable smooth animations.
9 | protocol TrackShape: Shape {
| | `- error: 'Shape' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
10 | var radius: CGFloat { get set }
11 | var ratio: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:35:45: error: 'Path' is only available in macOS 10.15 or newer
15 | }
16 |
17 | extension TrackShape {
| `- note: add @available attribute to enclosing extension
18 | var animatableData: TrackShapeAnimatableData {
19 | get {
:
33 | }
34 |
35 | func applyingElasticDragEffect(on path: Path, in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
36 | path.applying(
37 | offset: offset,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:35:71: error: 'Path' is only available in macOS 10.15 or newer
15 | }
16 |
17 | extension TrackShape {
| `- note: add @available attribute to enclosing extension
18 | var animatableData: TrackShapeAnimatableData {
19 | get {
:
33 | }
34 |
35 | func applyingElasticDragEffect(on path: Path, in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
36 | path.applying(
37 | offset: offset,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:154:10: error: 'Path' is only available in macOS 10.15 or newer
142 | }
143 |
144 | extension Path {
| `- note: add @available attribute to enclosing extension
145 |
146 | /// Applies a vertical offset and scaling transformation to the path
147 | /// relative to the given rectangle and a vertical anchor determined by
148 | /// `ratio`.
149 | func applying(
| `- note: add @available attribute to enclosing instance method
150 | offset: CGFloat,
151 | scale: CGSize,
152 | in rect: CGRect,
153 | for ratio: CGFloat
154 | ) -> Path {
| `- error: 'Path' is only available in macOS 10.15 or newer
155 | let anchor: UnitPoint = ratio < 0.5 ? .top : .bottom
156 | let translation = CGSize(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:144:11: error: 'Path' is only available in macOS 10.15 or newer
142 | }
143 |
144 | extension Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
145 |
146 | /// Applies a vertical offset and scaling transformation to the path
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:155:21: error: 'UnitPoint' is only available in macOS 10.15 or newer
142 | }
143 |
144 | extension Path {
| `- note: add @available attribute to enclosing extension
145 |
146 | /// Applies a vertical offset and scaling transformation to the path
147 | /// relative to the given rectangle and a vertical anchor determined by
148 | /// `ratio`.
149 | func applying(
| `- note: add @available attribute to enclosing instance method
150 | offset: CGFloat,
151 | scale: CGSize,
:
153 | for ratio: CGFloat
154 | ) -> Path {
155 | let anchor: UnitPoint = ratio < 0.5 ? .top : .bottom
| |- error: 'UnitPoint' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | let translation = CGSize(
157 | width: rect.width * (1 - scale.width) / 2,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:166:14: error: 'applying' is only available in macOS 10.15 or newer
142 | }
143 |
144 | extension Path {
| `- note: add @available attribute to enclosing extension
145 |
146 | /// Applies a vertical offset and scaling transformation to the path
147 | /// relative to the given rectangle and a vertical anchor determined by
148 | /// `ratio`.
149 | func applying(
| `- note: add @available attribute to enclosing instance method
150 | offset: CGFloat,
151 | scale: CGSize,
:
164 | return
165 | self
166 | .applying(
| |- error: 'applying' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | CGAffineTransform(scaleX: scale.width, y: scale.height)
168 | )
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:169:14: error: 'applying' is only available in macOS 10.15 or newer
142 | }
143 |
144 | extension Path {
| `- note: add @available attribute to enclosing extension
145 |
146 | /// Applies a vertical offset and scaling transformation to the path
147 | /// relative to the given rectangle and a vertical anchor determined by
148 | /// `ratio`.
149 | func applying(
| `- note: add @available attribute to enclosing instance method
150 | offset: CGFloat,
151 | scale: CGSize,
:
167 | CGAffineTransform(scaleX: scale.width, y: scale.height)
168 | )
169 | .applying(
| |- error: 'applying' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | CGAffineTransform(
171 | translationX: translation.width,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:29:35: 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 {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:128:35: 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 {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
129 | let minX = rect.minX
130 | let maxX = rect.maxX
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:204:35: 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 {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:304:35: 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 {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
305 | let minX = rect.minX
306 | let maxX = rect.maxX
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:360:6: error: 'Previewable()' is only available in macOS 14.0 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
361 | let radius: CGFloat = 30
362 | let thumbSize: CGFloat = 70
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:359:6: error: 'Previewable()' is only available in macOS 14.0 or newer
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
361 | let radius: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:358:6: error: 'Previewable()' is only available in macOS 14.0 or newer
356 |
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:358:19: error: 'State' is only available in macOS 10.15 or newer
356 |
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:359:19: error: 'State' is only available in macOS 10.15 or newer
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
361 | let radius: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:360:19: error: 'State' is only available in macOS 10.15 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 | let radius: CGFloat = 30
362 | let thumbSize: CGFloat = 70
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:357:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
355 | // MARK: - Preview
356 |
357 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:374:5: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
372 | }
373 |
374 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 |
376 | VStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:374:5: error: 'Spacer' is only available in macOS 10.15 or newer
372 | }
373 |
374 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 |
376 | VStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:5: error: 'VStack' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:377:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
375 |
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:377:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
375 |
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:378:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:378:20: error: 'clear' is only available in macOS 10.15 or newer
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:379:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
380 |
381 | BackgroundShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:379:22: error: 'gray' is only available in macOS 10.15 or newer
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
380 |
381 | BackgroundShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:381:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
381 | BackgroundShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
382 | .fill(.gray)
383 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:382:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
380 |
381 | BackgroundShape(trackShapeParameters)
382 | .fill(.gray)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
383 |
384 | ProgressShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:382:20: error: 'gray' is only available in macOS 10.15 or newer
380 |
381 | BackgroundShape(trackShapeParameters)
382 | .fill(.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
383 |
384 | ProgressShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:384:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
382 | .fill(.gray)
383 |
384 | ProgressShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
385 | .fill(.gray)
386 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:385:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
383 |
384 | ProgressShape(trackShapeParameters)
385 | .fill(.gray)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
386 |
387 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:385:20: error: 'gray' is only available in macOS 10.15 or newer
383 |
384 | ProgressShape(trackShapeParameters)
385 | .fill(.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
386 |
387 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:387:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
385 | .fill(.gray)
386 |
387 | ProgressStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:387:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
385 | .fill(.gray)
386 |
387 | ProgressStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:388:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
386 |
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:388:20: error: 'clear' is only available in macOS 10.15 or newer
386 |
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:389:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
390 | }
391 | .frame(width: 100, height: 600)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:389:22: error: 'gray' is only available in macOS 10.15 or newer
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
390 | }
391 | .frame(width: 100, height: 600)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:391:6: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
391 | .frame(width: 100, height: 600)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:392:6: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
390 | }
391 | .frame(width: 100, height: 600)
392 | .onChange(of: scale.height) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
393 | scale.width = 1 + 1 - scale.height
394 | offset = (scale.height - 1) * 200
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:393:9: error: cannot pass as inout because setter for 'scale' is only available in macOS 10.15 or newer
391 | .frame(width: 100, height: 600)
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
| |- error: cannot pass as inout because setter for 'scale' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
394 | offset = (scale.height - 1) * 200
395 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:394:9: error: setter for 'offset' is only available in macOS 10.15 or newer
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
394 | offset = (scale.height - 1) * 200
| |- error: setter for 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
395 | }
396 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:397:5: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
395 | }
396 |
397 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
398 |
399 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:397:5: error: 'Spacer' is only available in macOS 10.15 or newer
395 | }
396 |
397 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
398 |
399 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:5: error: 'HStack' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:400:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
398 |
399 | HStack {
400 | Text("Ratio")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:400:9: error: 'Text' is only available in macOS 10.15 or newer
398 |
399 | HStack {
400 | Text("Ratio")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:401:9: error: 'Slider' is only available in macOS 10.15 or newer
399 | HStack {
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
402 | Text(String(format: "%.2f", ratio))
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:401:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
399 | HStack {
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
402 | Text(String(format: "%.2f", ratio))
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:402:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | }
404 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:402:9: error: 'Text' is only available in macOS 10.15 or newer
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | }
404 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:5: error: 'HStack' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:405:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
403 | }
404 | HStack {
405 | Text("Scale")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:405:9: error: 'Text' is only available in macOS 10.15 or newer
403 | }
404 | HStack {
405 | Text("Scale")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:406:9: error: 'Slider' is only available in macOS 10.15 or newer
404 | HStack {
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | Text(String(format: "%.2f", scale.height))
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:406:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
404 | HStack {
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | Text(String(format: "%.2f", scale.height))
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:407:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:407:9: error: 'Text' is only available in macOS 10.15 or newer
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:357:10: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
355 | // MARK: - Preview
356 |
357 | #Preview {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:357:10: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
355 | // MARK: - Preview
356 |
357 | #Preview {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:185:6: error: 'Previewable()' is only available in macOS 14.0 or newer
183 |
184 | #Preview {
185 | @Previewable @State var value: Double = 50
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
186 | let smallRange: ClosedRange<Double> = 0...100
187 | let largeRange: ClosedRange<Double> = -20...120
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:185:19: error: 'State' is only available in macOS 10.15 or newer
183 |
184 | #Preview {
185 | @Previewable @State var value: Double = 50
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
186 | let smallRange: ClosedRange<Double> = 0...100
187 | let largeRange: ClosedRange<Double> = -20...120
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:196:35: error: 'View' is only available in macOS 10.15 or newer
194 | }()
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
| |- error: 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | VStack {
198 | Text("\(Int(value))")
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:184:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
182 | // MARK: - Preview
183 |
184 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
185 | @Previewable @State var value: Double = 50
186 | let smallRange: ClosedRange<Double> = 0...100
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:197:9: error: 'VStack' is only available in macOS 10.15 or newer
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
198 | Text("\(Int(value))")
199 | .font(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:198:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
198 | Text("\(Int(value))")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | .font(
200 | .system(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:198:13: error: 'Text' is only available in macOS 10.15 or newer
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
198 | Text("\(Int(value))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | .font(
200 | .system(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:199:18: error: 'font' is only available in macOS 10.15 or newer
197 | VStack {
198 | Text("\(Int(value))")
199 | .font(
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
200 | .system(
201 | size: 32,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:200:22: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
198 | Text("\(Int(value))")
199 | .font(
200 | .system(
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
201 | size: 32,
202 | weight: .semibold,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:206:13: error: 'Text' is only available in macOS 10.15 or newer
204 | )
205 | )
206 | Text(isDragging ? "drag" : "stop")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
207 | .font(.body)
208 | .padding(.top, -20)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:207:18: error: 'font' is only available in macOS 10.15 or newer
205 | )
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | .padding(.top, -20)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:207:24: error: 'body' is only available in macOS 10.15 or newer
205 | )
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
| |- error: 'body' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | .padding(.top, -20)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:208:18: error: 'padding' is only available in macOS 10.15 or newer
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
208 | .padding(.top, -20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | }
210 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:197:16: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
198 | Text("\(Int(value))")
199 | .font(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:210:10: error: 'foregroundStyle' is only available in macOS 12.0 or newer
208 | .padding(.top, -20)
209 | }
210 | .foregroundStyle(.white)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
211 | .scaleEffect(1)
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:210:27: error: 'white' is only available in macOS 10.15 or newer
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)
[21/21] Compiling LiteSlider TrackShapeComponents.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:9:22: error: 'Shape' is only available in macOS 10.15 or newer
7 | ///
8 | /// Used in conjunction with `TrackShapeAnimatableData` to enable smooth animations.
9 | protocol TrackShape: Shape {
| | `- error: 'Shape' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
10 | var radius: CGFloat { get set }
11 | var ratio: CGFloat { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:35:45: error: 'Path' is only available in macOS 10.15 or newer
15 | }
16 |
17 | extension TrackShape {
| `- note: add @available attribute to enclosing extension
18 | var animatableData: TrackShapeAnimatableData {
19 | get {
:
33 | }
34 |
35 | func applyingElasticDragEffect(on path: Path, in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
36 | path.applying(
37 | offset: offset,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:35:71: error: 'Path' is only available in macOS 10.15 or newer
15 | }
16 |
17 | extension TrackShape {
| `- note: add @available attribute to enclosing extension
18 | var animatableData: TrackShapeAnimatableData {
19 | get {
:
33 | }
34 |
35 | func applyingElasticDragEffect(on path: Path, in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
36 | path.applying(
37 | offset: offset,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:154:10: error: 'Path' is only available in macOS 10.15 or newer
142 | }
143 |
144 | extension Path {
| `- note: add @available attribute to enclosing extension
145 |
146 | /// Applies a vertical offset and scaling transformation to the path
147 | /// relative to the given rectangle and a vertical anchor determined by
148 | /// `ratio`.
149 | func applying(
| `- note: add @available attribute to enclosing instance method
150 | offset: CGFloat,
151 | scale: CGSize,
152 | in rect: CGRect,
153 | for ratio: CGFloat
154 | ) -> Path {
| `- error: 'Path' is only available in macOS 10.15 or newer
155 | let anchor: UnitPoint = ratio < 0.5 ? .top : .bottom
156 | let translation = CGSize(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:144:11: error: 'Path' is only available in macOS 10.15 or newer
142 | }
143 |
144 | extension Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
145 |
146 | /// Applies a vertical offset and scaling transformation to the path
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:155:21: error: 'UnitPoint' is only available in macOS 10.15 or newer
142 | }
143 |
144 | extension Path {
| `- note: add @available attribute to enclosing extension
145 |
146 | /// Applies a vertical offset and scaling transformation to the path
147 | /// relative to the given rectangle and a vertical anchor determined by
148 | /// `ratio`.
149 | func applying(
| `- note: add @available attribute to enclosing instance method
150 | offset: CGFloat,
151 | scale: CGSize,
:
153 | for ratio: CGFloat
154 | ) -> Path {
155 | let anchor: UnitPoint = ratio < 0.5 ? .top : .bottom
| |- error: 'UnitPoint' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | let translation = CGSize(
157 | width: rect.width * (1 - scale.width) / 2,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:166:14: error: 'applying' is only available in macOS 10.15 or newer
142 | }
143 |
144 | extension Path {
| `- note: add @available attribute to enclosing extension
145 |
146 | /// Applies a vertical offset and scaling transformation to the path
147 | /// relative to the given rectangle and a vertical anchor determined by
148 | /// `ratio`.
149 | func applying(
| `- note: add @available attribute to enclosing instance method
150 | offset: CGFloat,
151 | scale: CGSize,
:
164 | return
165 | self
166 | .applying(
| |- error: 'applying' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | CGAffineTransform(scaleX: scale.width, y: scale.height)
168 | )
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShape.swift:169:14: error: 'applying' is only available in macOS 10.15 or newer
142 | }
143 |
144 | extension Path {
| `- note: add @available attribute to enclosing extension
145 |
146 | /// Applies a vertical offset and scaling transformation to the path
147 | /// relative to the given rectangle and a vertical anchor determined by
148 | /// `ratio`.
149 | func applying(
| `- note: add @available attribute to enclosing instance method
150 | offset: CGFloat,
151 | scale: CGSize,
:
167 | CGAffineTransform(scaleX: scale.width, y: scale.height)
168 | )
169 | .applying(
| |- error: 'applying' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | CGAffineTransform(
171 | translationX: translation.width,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:29:35: 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 {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | let minX = rect.minX
31 | let maxX = rect.maxX
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:128:35: 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 {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
129 | let minX = rect.minX
130 | let maxX = rect.maxX
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:204:35: 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 {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
205 | let minX = rect.minX
206 | let maxX = rect.maxX
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:304:35: 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 {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
305 | let minX = rect.minX
306 | let maxX = rect.maxX
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:360:6: error: 'Previewable()' is only available in macOS 14.0 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
361 | let radius: CGFloat = 30
362 | let thumbSize: CGFloat = 70
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:359:6: error: 'Previewable()' is only available in macOS 14.0 or newer
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
361 | let radius: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:358:6: error: 'Previewable()' is only available in macOS 14.0 or newer
356 |
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:358:19: error: 'State' is only available in macOS 10.15 or newer
356 |
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:359:19: error: 'State' is only available in macOS 10.15 or newer
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
361 | let radius: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:360:19: error: 'State' is only available in macOS 10.15 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 | let radius: CGFloat = 30
362 | let thumbSize: CGFloat = 70
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:357:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
355 | // MARK: - Preview
356 |
357 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:374:5: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
372 | }
373 |
374 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 |
376 | VStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:374:5: error: 'Spacer' is only available in macOS 10.15 or newer
372 | }
373 |
374 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 |
376 | VStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:5: error: 'VStack' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:377:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
375 |
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:377:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
375 |
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:378:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:378:20: error: 'clear' is only available in macOS 10.15 or newer
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:379:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
380 |
381 | BackgroundShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:379:22: error: 'gray' is only available in macOS 10.15 or newer
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
380 |
381 | BackgroundShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:381:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
381 | BackgroundShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
382 | .fill(.gray)
383 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:382:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
380 |
381 | BackgroundShape(trackShapeParameters)
382 | .fill(.gray)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
383 |
384 | ProgressShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:382:20: error: 'gray' is only available in macOS 10.15 or newer
380 |
381 | BackgroundShape(trackShapeParameters)
382 | .fill(.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
383 |
384 | ProgressShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:384:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
382 | .fill(.gray)
383 |
384 | ProgressShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
385 | .fill(.gray)
386 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:385:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
383 |
384 | ProgressShape(trackShapeParameters)
385 | .fill(.gray)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
386 |
387 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:385:20: error: 'gray' is only available in macOS 10.15 or newer
383 |
384 | ProgressShape(trackShapeParameters)
385 | .fill(.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
386 |
387 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:387:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
385 | .fill(.gray)
386 |
387 | ProgressStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:387:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
385 | .fill(.gray)
386 |
387 | ProgressStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:388:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
386 |
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:388:20: error: 'clear' is only available in macOS 10.15 or newer
386 |
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:389:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
390 | }
391 | .frame(width: 100, height: 600)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:389:22: error: 'gray' is only available in macOS 10.15 or newer
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
390 | }
391 | .frame(width: 100, height: 600)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:391:6: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
391 | .frame(width: 100, height: 600)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:392:6: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
390 | }
391 | .frame(width: 100, height: 600)
392 | .onChange(of: scale.height) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
393 | scale.width = 1 + 1 - scale.height
394 | offset = (scale.height - 1) * 200
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:393:9: error: cannot pass as inout because setter for 'scale' is only available in macOS 10.15 or newer
391 | .frame(width: 100, height: 600)
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
| |- error: cannot pass as inout because setter for 'scale' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
394 | offset = (scale.height - 1) * 200
395 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:394:9: error: setter for 'offset' is only available in macOS 10.15 or newer
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
394 | offset = (scale.height - 1) * 200
| |- error: setter for 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
395 | }
396 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:397:5: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
395 | }
396 |
397 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
398 |
399 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:397:5: error: 'Spacer' is only available in macOS 10.15 or newer
395 | }
396 |
397 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
398 |
399 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:5: error: 'HStack' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:400:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
398 |
399 | HStack {
400 | Text("Ratio")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:400:9: error: 'Text' is only available in macOS 10.15 or newer
398 |
399 | HStack {
400 | Text("Ratio")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:401:9: error: 'Slider' is only available in macOS 10.15 or newer
399 | HStack {
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
402 | Text(String(format: "%.2f", ratio))
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:401:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
399 | HStack {
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
402 | Text(String(format: "%.2f", ratio))
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:402:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | }
404 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:402:9: error: 'Text' is only available in macOS 10.15 or newer
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | }
404 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:5: error: 'HStack' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:405:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
403 | }
404 | HStack {
405 | Text("Scale")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:405:9: error: 'Text' is only available in macOS 10.15 or newer
403 | }
404 | HStack {
405 | Text("Scale")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:406:9: error: 'Slider' is only available in macOS 10.15 or newer
404 | HStack {
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | Text(String(format: "%.2f", scale.height))
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:406:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
404 | HStack {
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | Text(String(format: "%.2f", scale.height))
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:407:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:407:9: error: 'Text' is only available in macOS 10.15 or newer
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:357:10: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
355 | // MARK: - Preview
356 |
357 | #Preview {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:357:10: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
355 | // MARK: - Preview
356 |
357 | #Preview {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:185:6: error: 'Previewable()' is only available in macOS 14.0 or newer
183 |
184 | #Preview {
185 | @Previewable @State var value: Double = 50
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
186 | let smallRange: ClosedRange<Double> = 0...100
187 | let largeRange: ClosedRange<Double> = -20...120
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:185:19: error: 'State' is only available in macOS 10.15 or newer
183 |
184 | #Preview {
185 | @Previewable @State var value: Double = 50
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
186 | let smallRange: ClosedRange<Double> = 0...100
187 | let largeRange: ClosedRange<Double> = -20...120
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:196:35: error: 'View' is only available in macOS 10.15 or newer
194 | }()
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
| |- error: 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | VStack {
198 | Text("\(Int(value))")
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:184:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
182 | // MARK: - Preview
183 |
184 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
185 | @Previewable @State var value: Double = 50
186 | let smallRange: ClosedRange<Double> = 0...100
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:197:9: error: 'VStack' is only available in macOS 10.15 or newer
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
198 | Text("\(Int(value))")
199 | .font(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:198:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
198 | Text("\(Int(value))")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | .font(
200 | .system(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:198:13: error: 'Text' is only available in macOS 10.15 or newer
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
198 | Text("\(Int(value))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | .font(
200 | .system(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:199:18: error: 'font' is only available in macOS 10.15 or newer
197 | VStack {
198 | Text("\(Int(value))")
199 | .font(
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
200 | .system(
201 | size: 32,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:200:22: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
198 | Text("\(Int(value))")
199 | .font(
200 | .system(
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
201 | size: 32,
202 | weight: .semibold,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:206:13: error: 'Text' is only available in macOS 10.15 or newer
204 | )
205 | )
206 | Text(isDragging ? "drag" : "stop")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
207 | .font(.body)
208 | .padding(.top, -20)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:207:18: error: 'font' is only available in macOS 10.15 or newer
205 | )
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | .padding(.top, -20)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:207:24: error: 'body' is only available in macOS 10.15 or newer
205 | )
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
| |- error: 'body' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | .padding(.top, -20)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:208:18: error: 'padding' is only available in macOS 10.15 or newer
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
208 | .padding(.top, -20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | }
210 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:197:16: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
198 | Text("\(Int(value))")
199 | .font(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:210:10: error: 'foregroundStyle' is only available in macOS 12.0 or newer
208 | .padding(.top, -20)
209 | }
210 | .foregroundStyle(.white)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
211 | .scaleEffect(1)
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:210:27: error: 'white' is only available in macOS 10.15 or newer
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)
BUILD FAILURE 6.1 macosSpm