Build Information
Failed to build LiteSlider, reference 0.1.1 (7f4464), with Swift 6.2 for macOS (SPM) on 5 Oct 2026 04:40:11 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
| `- 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
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
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:61:9: error: setter for 'dragRatio' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
50 | /// - range: The valid range of values for the slider. Defaults to 0...1.
51 | /// - step: The step increment for value changes. Defaults to 0 (continuous).
52 | public init(
| `- note: add '@available' attribute to enclosing initializer
53 | value: Binding<Double>,
54 | in range: ClosedRange<Double> = 0...1,
:
59 | self.step = step
60 | self.thumbView = nil
61 | dragRatio = value.wrappedValue.ratio(in: range)
| |- error: setter for 'dragRatio' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:81:9: error: setter for 'dragRatio' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
69 | /// - step: The step increment for value changes. Defaults to 0 (continuous).
70 | /// - thumbView: A closure that provides the thumb view, given dragging state.
71 | public init(
| `- note: add '@available' attribute to enclosing initializer
72 | value: Binding<Double>,
73 | in range: ClosedRange<Double> = 0...1,
:
79 | self.step = step
80 | self.thumbView = thumbView
81 | dragRatio = value.wrappedValue.ratio(in: range)
| |- error: setter for 'dragRatio' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:87:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
84 | // MARK: View Body
85 |
86 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
87 | track
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | .onChange(of: dragRatio) { _, newValue in
89 | updateExternalValue(with: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:88:14: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
84 | // MARK: View Body
85 |
86 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
87 | track
88 | .onChange(of: dragRatio) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
89 | updateExternalValue(with: newValue)
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:91:14: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
84 | // MARK: View Body
85 |
86 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
87 | track
88 | .onChange(of: dragRatio) { _, newValue in
89 | updateExternalValue(with: newValue)
90 | }
91 | .onChange(of: externalValue) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
92 | updateDragValue(with: newValue)
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:94:14: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
84 | // MARK: View Body
85 |
86 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
87 | track
88 | .onChange(of: dragRatio) { _, newValue in
:
92 | updateDragValue(with: newValue)
93 | }
94 | .onChange(of: isDragging) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
95 | if !newValue { onEnded() }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:97:14: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
84 | // MARK: View Body
85 |
86 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
87 | track
88 | .onChange(of: dragRatio) { _, newValue in
:
95 | if !newValue { onEnded() }
96 | }
97 | .accessibilityElement()
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | .accessibilityValue(Text(accessibilityFormattedValue))
99 | .accessibilityAdjustableAction(handleAccessibilityAdjustment(_:))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:98:14: error: 'accessibilityValue' is only available in macOS 11.0 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
84 | // MARK: View Body
85 |
86 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
87 | track
88 | .onChange(of: dragRatio) { _, newValue in
:
96 | }
97 | .accessibilityElement()
98 | .accessibilityValue(Text(accessibilityFormattedValue))
| |- error: 'accessibilityValue' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
99 | .accessibilityAdjustableAction(handleAccessibilityAdjustment(_:))
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:98:33: error: 'Text' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
84 | // MARK: View Body
85 |
86 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
87 | track
88 | .onChange(of: dragRatio) { _, newValue in
:
96 | }
97 | .accessibilityElement()
98 | .accessibilityValue(Text(accessibilityFormattedValue))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | .accessibilityAdjustableAction(handleAccessibilityAdjustment(_:))
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:99:14: error: 'accessibilityAdjustableAction' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
84 | // MARK: View Body
85 |
86 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
87 | track
88 | .onChange(of: dragRatio) { _, newValue in
:
97 | .accessibilityElement()
98 | .accessibilityValue(Text(accessibilityFormattedValue))
99 | .accessibilityAdjustableAction(handleAccessibilityAdjustment(_:))
| |- error: 'accessibilityAdjustableAction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | }
101 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:86:32: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
84 | // MARK: View Body
85 |
86 | public var body: some View {
| | |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing property
87 | track
88 | .onChange(of: dragRatio) { _, newValue in
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:108:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
103 |
104 | @ViewBuilder
105 | private var track: some View {
| `- note: add '@available' attribute to enclosing property
106 | switch lengthBehavior {
107 | case .dynamic:
108 | DynamicLengthTrack(
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | thumbView: thumbView,
110 | dragRatio: $dragRatio,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:108:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
103 |
104 | @ViewBuilder
105 | private var track: some View {
| `- note: add '@available' attribute to enclosing property
106 | switch lengthBehavior {
107 | case .dynamic:
108 | DynamicLengthTrack(
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | thumbView: thumbView,
110 | dragRatio: $dragRatio,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:114:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
103 |
104 | @ViewBuilder
105 | private var track: some View {
| `- note: add '@available' attribute to enclosing property
106 | switch lengthBehavior {
107 | case .dynamic:
:
112 | )
113 | case let .fixed(length):
114 | FixedLengthTrack(
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | length: length,
116 | thumbView: thumbView,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:114:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
103 |
104 | @ViewBuilder
105 | private var track: some View {
| `- note: add '@available' attribute to enclosing property
106 | switch lengthBehavior {
107 | case .dynamic:
:
112 | )
113 | case let .fixed(length):
114 | FixedLengthTrack(
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | length: length,
116 | thumbView: thumbView,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:121:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
103 |
104 | @ViewBuilder
105 | private var track: some View {
| `- note: add '@available' attribute to enclosing property
106 | switch lengthBehavior {
107 | case .dynamic:
:
119 | )
120 | case let .expandable(direction, _):
121 | ExpandableTrack(
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | direction: direction,
123 | thumbView: thumbView,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:105:34: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
103 |
104 | @ViewBuilder
105 | private var track: some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing property
106 | switch lengthBehavior {
107 | case .dynamic:
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:134:9: error: setter for 'dragRatio' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
130 | // MARK: Value Updates
131 |
132 | private func updateDragValue(with newValue: Double) {
| `- note: add '@available' attribute to enclosing instance method
133 | guard !isDragging else { return }
134 | dragRatio = newValue.ratio(in: range)
| |- error: setter for 'dragRatio' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
135 | }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:142:9: error: setter for 'externalValue' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
135 | }
136 |
137 | private func updateExternalValue(with ratio: Double) {
| `- note: add '@available' attribute to enclosing instance method
138 | guard isDragging else { return }
139 | let rawValue =
140 | range.lowerBound + Double(ratio)
141 | * (range.upperBound - range.lowerBound)
142 | externalValue = step != 0 ? rawValue.rounded(to: step) : rawValue
| |- error: setter for 'externalValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
143 | }
144 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:152:13: error: setter for 'externalValue' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
145 | // MARK: Accessibility Value Updates
146 |
147 | private func handleAccessibilityAdjustment(
| `- note: add '@available' attribute to enclosing instance method
148 | _ direction: AccessibilityAdjustmentDirection
149 | ) {
150 | switch direction {
151 | case .increment:
152 | externalValue = min(
| |- error: setter for 'externalValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | externalValue + defaultAccessibilityStep,
154 | range.upperBound
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:157:13: error: setter for 'externalValue' is only available in macOS 10.15 or newer
11 | /// Use this component when you need a highly configurable slider with smooth
12 | /// drag interaction and adaptable track length.
13 | public struct LiteSlider<ThumbView: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
:
145 | // MARK: Accessibility Value Updates
146 |
147 | private func handleAccessibilityAdjustment(
| `- note: add '@available' attribute to enclosing instance method
148 | _ direction: AccessibilityAdjustmentDirection
149 | ) {
:
155 | ).rounded(to: step)
156 | case .decrement:
157 | externalValue = max(
| |- error: setter for 'externalValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | externalValue - defaultAccessibilityStep,
159 | range.lowerBound
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/ElasticDragMetrics.swift:13:22: error: 'Axis' is only available in macOS 10.15 or newer
5 | /// A utility that computes the offset and scale transformations for an elastic drag effect,
6 | /// simulating resistance when a user drags a view beyond its bounds.
7 | struct ElasticDragMetrics {
| `- note: add '@available' attribute to enclosing struct
8 |
9 | /// The original size of the view.
:
11 |
12 | /// The axis along which the drag gesture occurs.
13 | var orientation: Axis
| `- error: 'Axis' is only available in macOS 10.15 or newer
14 |
15 | /// A Boolean value indicating whether the user is currently dragging.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/ElasticDragMetrics.swift:86:34: error: 'Axis' is only available in macOS 10.15 or newer
5 | /// A utility that computes the offset and scale transformations for an elastic drag effect,
6 | /// simulating resistance when a user drags a view beyond its bounds.
7 | struct ElasticDragMetrics {
| `- note: add '@available' attribute to enclosing struct
8 |
9 | /// The original size of the view.
:
84 | // MARK: Helpers
85 |
86 | private func scale(for axis: Axis) -> CGFloat {
| | `- error: 'Axis' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
87 | guard excessDragOffset != 0 else { return 1 }
88 | let referenceSize = axis == .horizontal ? size.width : size.height
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/ElasticDragMetrics.swift:92:39: error: 'Axis' is only available in macOS 10.15 or newer
5 | /// A utility that computes the offset and scale transformations for an elastic drag effect,
6 | /// simulating resistance when a user drags a view beyond its bounds.
7 | struct ElasticDragMetrics {
| `- note: add '@available' attribute to enclosing struct
8 |
9 | /// The original size of the view.
:
90 | }
91 |
92 | private func targetSize(for axis: Axis) -> CGFloat {
| | `- error: 'Axis' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
93 | switch (orientation, axis) {
94 | case (.horizontal, .horizontal):
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/ElasticDragMetrics.swift:81:21: error: conformance of 'Axis' to 'RawRepresentable' is only available in macOS 10.15 or newer
5 | /// A utility that computes the offset and scale transformations for an elastic drag effect,
6 | /// simulating resistance when a user drags a view beyond its bounds.
7 | struct ElasticDragMetrics {
| `- note: add '@available' attribute to enclosing struct
8 |
9 | /// The original size of the view.
:
78 | }
79 |
80 | private var dragLength: CGFloat {
| `- note: add '@available' attribute to enclosing property
81 | orientation == .horizontal ? dragLocation.x : dragLocation.y
| |- error: conformance of 'Axis' to 'RawRepresentable' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/ElasticDragMetrics.swift:88:34: error: conformance of 'Axis' to 'RawRepresentable' is only available in macOS 10.15 or newer
5 | /// A utility that computes the offset and scale transformations for an elastic drag effect,
6 | /// simulating resistance when a user drags a view beyond its bounds.
7 | struct ElasticDragMetrics {
| `- note: add '@available' attribute to enclosing struct
8 |
9 | /// The original size of the view.
:
84 | // MARK: Helpers
85 |
86 | private func scale(for axis: Axis) -> CGFloat {
| `- note: add '@available' attribute to enclosing instance method
87 | guard excessDragOffset != 0 else { return 1 }
88 | let referenceSize = axis == .horizontal ? size.width : size.height
| |- error: conformance of 'Axis' to 'RawRepresentable' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | return elasticScale(from: referenceSize, to: targetSize(for: axis))
90 | }
[14/21] Compiling LiteSlider LiteSlider+Track.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:48:56: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
46 |
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:49:49: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
50 |
51 | // MARK: View
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:21:10: error: 'Binding' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
19 | /// A binding to the current drag ratio, representing the thumb's
20 | /// position along the track from 0 to 1.
21 | @Binding var dragRatio: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
22 |
23 | /// A binding indicating whether the user is actively dragging the
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:25:10: error: 'Binding' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
23 | /// A binding indicating whether the user is actively dragging the
24 | /// slider.
25 | @Binding var isDragging: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
26 |
27 | /// An optional closure that is called when the user starts interacting
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:33:10: error: 'State' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
31 | // MARK: State
32 |
33 | @State private var dragLocation = CGPoint(x: 0, y: 0)
| `- error: 'State' is only available in macOS 10.15 or newer
34 |
35 | // MARK: Environment
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:37:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
35 | // MARK: Environment
36 |
37 | @Environment(\.liteSliderThickness) private var thickness
| `- error: 'Environment' is only available in macOS 10.15 or newer
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:38:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
36 |
37 | @Environment(\.liteSliderThickness) private var thickness
38 | @Environment(\.liteSliderRadius) private var radius
| `- error: 'Environment' is only available in macOS 10.15 or newer
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:39:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
37 | @Environment(\.liteSliderThickness) private var thickness
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:40:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
42 | @Environment(\.liteSliderElasticDragProperties)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:41:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
42 | @Environment(\.liteSliderElasticDragProperties)
43 | private var elasticDragProperties
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:42:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
42 | @Environment(\.liteSliderElasticDragProperties)
| `- error: 'Environment' is only available in macOS 10.15 or newer
43 | private var elasticDragProperties
44 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:48:43: error: 'Animation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
46 |
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
| `- error: 'Animation' is only available in macOS 10.15 or newer
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:49:36: error: 'Animation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
| `- error: 'Animation' is only available in macOS 10.15 or newer
50 |
51 | // MARK: View
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:53:24: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:67:33: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
65 | // MARK: Subviews
66 |
67 | private var track: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 | let trackShapeParameters = trackShapeParameters
69 | return ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:77:19: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
78 | ZStack {
79 | BackgroundStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:88:19: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
89 | ZStack {
90 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:108:37: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:117:35: error: 'Gesture' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
115 | // MARK: Gesture
116 |
117 | private var gesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
118 | TouchAndDragGesture(isDragging: $isDragging)
119 | .onStarted { location in
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:54:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | track
56 | thumbView
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:54:32: error: 'top' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | track
56 | thumbView
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:58:14: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
56 | thumbView
57 | }
58 | .gesture(gesture)
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:59:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
57 | }
58 | .gesture(gesture)
59 | .animation(dragAnimation, value: isDragging)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .animation(valueChangeAnimation, value: dragRatio)
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:60:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
58 | .gesture(gesture)
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
62 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:61:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:69:20: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
65 | // MARK: Subviews
66 |
67 | private var track: some View {
| `- note: add '@available' attribute to enclosing property
68 | let trackShapeParameters = trackShapeParameters
69 | return ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | background(trackShapeParameters)
71 | progress(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:80:22: error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
| |- error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | BackgroundShape(trackShapeParameters)
82 | .fill(trackColor)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:81:17: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
:
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
81 | BackgroundShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .fill(trackColor)
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:82:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
:
80 | .stroke(lineWidth: strokeStyle.lineWidth)
81 | BackgroundShape(trackShapeParameters)
82 | .fill(trackColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:91:22: error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
| |- error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | ProgressShape(trackShapeParameters)
93 | .fill(progressColor)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:92:17: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
:
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
92 | ProgressShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .fill(progressColor)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:93:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
:
91 | .stroke(lineWidth: strokeStyle.lineWidth)
92 | ProgressShape(trackShapeParameters)
93 | .fill(progressColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:112:18: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
112 | .frame(width: thickness, height: thickness)
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | }
114 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:111:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | .frame(width: thickness, height: thickness)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:112:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
112 | .frame(width: thickness, height: thickness)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | }
114 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:134:13: error: cannot pass as inout because setter for 'dragLocation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
131 | }
132 |
133 | private func updateDragLocation(for location: CGPoint) {
| `- note: add '@available' attribute to enclosing instance method
134 | dragLocation.y = length - location.y - touchLocationLength / 2
| |- error: cannot pass as inout because setter for 'dragLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
135 | }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:140:13: error: setter for 'dragRatio' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
135 | }
136 |
137 | private func updateDragRatio() {
| `- note: add '@available' attribute to enclosing instance method
138 | let availableLength = trackGeometry.availableLength
139 | let clamped = dragLocation.y.clamped(to: 0...availableLength)
140 | dragRatio = clamped / max(1, availableLength)
| |- error: setter for 'dragRatio' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | }
142 |
[15/21] Compiling LiteSlider LiteSliderTrackGeometry.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:48:56: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
46 |
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:49:49: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
50 |
51 | // MARK: View
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:21:10: error: 'Binding' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
19 | /// A binding to the current drag ratio, representing the thumb's
20 | /// position along the track from 0 to 1.
21 | @Binding var dragRatio: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
22 |
23 | /// A binding indicating whether the user is actively dragging the
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:25:10: error: 'Binding' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
23 | /// A binding indicating whether the user is actively dragging the
24 | /// slider.
25 | @Binding var isDragging: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
26 |
27 | /// An optional closure that is called when the user starts interacting
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:33:10: error: 'State' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
31 | // MARK: State
32 |
33 | @State private var dragLocation = CGPoint(x: 0, y: 0)
| `- error: 'State' is only available in macOS 10.15 or newer
34 |
35 | // MARK: Environment
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:37:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
35 | // MARK: Environment
36 |
37 | @Environment(\.liteSliderThickness) private var thickness
| `- error: 'Environment' is only available in macOS 10.15 or newer
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:38:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
36 |
37 | @Environment(\.liteSliderThickness) private var thickness
38 | @Environment(\.liteSliderRadius) private var radius
| `- error: 'Environment' is only available in macOS 10.15 or newer
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:39:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
37 | @Environment(\.liteSliderThickness) private var thickness
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:40:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
38 | @Environment(\.liteSliderRadius) private var radius
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
42 | @Environment(\.liteSliderElasticDragProperties)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:41:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
39 | @Environment(\.liteSliderTrackColor) private var trackColor
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
42 | @Environment(\.liteSliderElasticDragProperties)
43 | private var elasticDragProperties
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:42:10: error: 'Environment' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
40 | @Environment(\.liteSliderProgressColor) private var progressColor
41 | @Environment(\.liteSliderStrokeStyle) private var strokeStyle
42 | @Environment(\.liteSliderElasticDragProperties)
| `- error: 'Environment' is only available in macOS 10.15 or newer
43 | private var elasticDragProperties
44 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:48:43: error: 'Animation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
46 |
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
| `- error: 'Animation' is only available in macOS 10.15 or newer
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:49:36: error: 'Animation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
| `- error: 'Animation' is only available in macOS 10.15 or newer
50 |
51 | // MARK: View
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:53:24: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:67:33: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
65 | // MARK: Subviews
66 |
67 | private var track: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 | let trackShapeParameters = trackShapeParameters
69 | return ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:77:19: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
78 | ZStack {
79 | BackgroundStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:88:19: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
89 | ZStack {
90 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:108:37: error: 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:117:35: error: 'Gesture' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
115 | // MARK: Gesture
116 |
117 | private var gesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
118 | TouchAndDragGesture(isDragging: $isDragging)
119 | .onStarted { location in
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:54:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | track
56 | thumbView
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:54:32: error: 'top' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | track
56 | thumbView
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:58:14: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
56 | thumbView
57 | }
58 | .gesture(gesture)
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:59:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
57 | }
58 | .gesture(gesture)
59 | .animation(dragAnimation, value: isDragging)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .animation(valueChangeAnimation, value: dragRatio)
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:60:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
58 | .gesture(gesture)
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
62 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:61:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
51 | // MARK: View
52 |
53 | var body: some View {
| `- note: add '@available' attribute to enclosing property
54 | ZStack(alignment: .top) {
55 | track
:
59 | .animation(dragAnimation, value: isDragging)
60 | .animation(valueChangeAnimation, value: dragRatio)
61 | .animation(valueChangeAnimation, value: elasticDragMetrics)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 |
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:69:20: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
65 | // MARK: Subviews
66 |
67 | private var track: some View {
| `- note: add '@available' attribute to enclosing property
68 | let trackShapeParameters = trackShapeParameters
69 | return ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | background(trackShapeParameters)
71 | progress(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:80:22: error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
| |- error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | BackgroundShape(trackShapeParameters)
82 | .fill(trackColor)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:81:17: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
:
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
81 | BackgroundShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .fill(trackColor)
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:82:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
:
80 | .stroke(lineWidth: strokeStyle.lineWidth)
81 | BackgroundShape(trackShapeParameters)
82 | .fill(trackColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
83 | }
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:78:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
73 | }
74 |
75 | private func background(
| `- note: add '@available' attribute to enclosing instance method
76 | _ trackShapeParameters: TrackShapeParameters
77 | ) -> some View {
78 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | BackgroundStrokeShape(trackShapeParameters)
80 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:13: error: 'ZStack' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:91:22: error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
| |- error: 'stroke(lineWidth:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | ProgressShape(trackShapeParameters)
93 | .fill(progressColor)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:92:17: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
:
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
92 | ProgressShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | .fill(progressColor)
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:93:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
:
91 | .stroke(lineWidth: strokeStyle.lineWidth)
92 | ProgressShape(trackShapeParameters)
93 | .fill(progressColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:89:20: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
84 | }
85 |
86 | private func progress(
| `- note: add '@available' attribute to enclosing instance method
87 | _ trackShapeParameters: TrackShapeParameters
88 | ) -> some View {
89 | ZStack {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | ProgressStrokeShape(trackShapeParameters)
91 | .stroke(lineWidth: strokeStyle.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:112:18: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
112 | .frame(width: thickness, height: thickness)
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | }
114 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:111:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | .frame(width: thickness, height: thickness)
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:112:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
106 | }
107 |
108 | private var thumbView: some View {
| `- note: add '@available' attribute to enclosing property
109 | let elasticDragMetrics = elasticDragMetrics
110 | return thumbViewProvider?(isDragging)
111 | .offset(y: thumbValueOffset + elasticDragMetrics.thumbOffset)
112 | .frame(width: thickness, height: thickness)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | }
114 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:134:13: error: cannot pass as inout because setter for 'dragLocation' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
131 | }
132 |
133 | private func updateDragLocation(for location: CGPoint) {
| `- note: add '@available' attribute to enclosing instance method
134 | dragLocation.y = length - location.y - touchLocationLength / 2
| |- error: cannot pass as inout because setter for 'dragLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
135 | }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:140:13: error: setter for 'dragRatio' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
135 | }
136 |
137 | private func updateDragRatio() {
| `- note: add '@available' attribute to enclosing instance method
138 | let availableLength = trackGeometry.availableLength
139 | let clamped = dragLocation.y.clamped(to: 0...availableLength)
140 | dragRatio = clamped / max(1, availableLength)
| |- error: setter for 'dragRatio' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | }
142 |
[16/21] Compiling LiteSlider ColorExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Helpers/ColorExtensions.swift:3:11: error: 'Color' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
4 |
5 | init(hex: UInt, alpha: Double = 1.0) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Helpers/ColorExtensions.swift:9:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add '@available' attribute to enclosing extension
4 |
5 | init(hex: UInt, alpha: Double = 1.0) {
| `- note: add '@available' attribute to enclosing initializer
6 | let red = Double((hex >> 16) & 0xFF) / 255
7 | let green = Double((hex >> 8) & 0xFF) / 255
8 | let blue = Double(hex & 0xFF) / 255
9 | self.init(.sRGB, red: red, green: green, blue: blue, opacity: alpha)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | }
11 | }
[17/21] Compiling LiteSlider ComparableExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Helpers/ColorExtensions.swift:3:11: error: 'Color' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
4 |
5 | init(hex: UInt, alpha: Double = 1.0) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Helpers/ColorExtensions.swift:9:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add '@available' attribute to enclosing extension
4 |
5 | init(hex: UInt, alpha: Double = 1.0) {
| `- note: add '@available' attribute to enclosing initializer
6 | let red = Double((hex >> 16) & 0xFF) / 255
7 | let green = Double((hex >> 8) & 0xFF) / 255
8 | let blue = Double(hex & 0xFF) / 255
9 | self.init(.sRGB, red: red, green: green, blue: blue, opacity: alpha)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | }
11 | }
[18/21] Compiling LiteSlider LiteSliderAppearanceExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:7:30: error: 'Alignment' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:9:31: error: 'bottom' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .downward: return .top
11 | case .center: return .center
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:10:33: error: 'top' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
10 | case .downward: return .top
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .center: return .center
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:11:31: error: 'center' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
10 | case .downward: return .top
11 | case .center: return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:14:15: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
:
10 | ///
11 | /// Default: No action.
12 | public func onSliderDragEnded(
| `- note: add '@available' attribute to enclosing instance method
13 | _ onEnded: @escaping () -> Void
14 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
15 | environment(\.liteSliderOnEnded, onEnded)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:5:11: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:23:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
24 |
25 | var liteSliderOnEnded: () -> Void {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:15:9: error: 'environment' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
:
10 | ///
11 | /// Default: No action.
12 | public func onSliderDragEnded(
| `- note: add '@available' attribute to enclosing instance method
13 | _ onEnded: @escaping () -> Void
14 | ) -> some View {
15 | environment(\.liteSliderOnEnded, onEnded)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | }
[19/21] Compiling LiteSlider OnSliderDragEnded.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:7:30: error: 'Alignment' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:9:31: error: 'bottom' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .downward: return .top
11 | case .center: return .center
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:10:33: error: 'top' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
10 | case .downward: return .top
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .center: return .center
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearanceExtensions.swift:11:31: error: 'center' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSliderExpansionDirection Helpers
4 |
5 | extension LiteSliderExpansionDirection {
| `- note: add '@available' attribute to enclosing extension
6 | /// Determines the alignment of the parent view based on the slider's expansion direction.
7 | var parentViewAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
8 | switch self {
9 | case .upward: return .bottom
10 | case .downward: return .top
11 | case .center: return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:14:15: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
:
10 | ///
11 | /// Default: No action.
12 | public func onSliderDragEnded(
| `- note: add '@available' attribute to enclosing instance method
13 | _ onEnded: @escaping () -> Void
14 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
15 | environment(\.liteSliderOnEnded, onEnded)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:5:11: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:23:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
24 |
25 | var liteSliderOnEnded: () -> Void {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/OnSliderDragEnded.swift:15:9: error: 'environment' is only available in macOS 10.15 or newer
3 | // MARK: - LiteSlider OnEnded
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a closure to be called when the user finishes dragging the slider.
:
10 | ///
11 | /// Default: No action.
12 | public func onSliderDragEnded(
| `- note: add '@available' attribute to enclosing instance method
13 | _ onEnded: @escaping () -> Void
14 | ) -> some View {
15 | environment(\.liteSliderOnEnded, onEnded)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | }
[20/21] Compiling LiteSlider LiteSliderAccessibility.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:16:15: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - View Modifiers
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a `NumberFormatter` used to format the slider’s accessibility
:
12 | /// strings.
13 | /// - Returns: A view with the provided accessibility formatter applied.
14 | public func sliderAccessibilityValueFormatter(
| `- note: add '@available' attribute to enclosing instance method
15 | _ numberFormatter: NumberFormatter
16 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
17 | environment(\.liteSliderAccessibilityValueFormatter, numberFormatter)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:32:15: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - View Modifiers
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a `NumberFormatter` used to format the slider’s accessibility
:
28 | /// adjustments.
29 | /// - Returns: A view with the provided accessibility step applied.
30 | public func sliderAccessibilityValueStep(
| `- note: add '@available' attribute to enclosing instance method
31 | _ accessibilityValueStep: Double
32 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
33 | environment(\.liteSliderAccessibilityValueStep, accessibilityValueStep)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:5:11: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - View Modifiers
4 |
5 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a `NumberFormatter` used to format the slider’s accessibility
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:53:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
51 | // MARK: - EnvironmentValues
52 |
53 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
54 |
55 | var liteSliderAccessibilityValueFormatter: NumberFormatter {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:17:9: error: 'environment' is only available in macOS 10.15 or newer
3 | // MARK: - View Modifiers
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a `NumberFormatter` used to format the slider’s accessibility
:
12 | /// strings.
13 | /// - Returns: A view with the provided accessibility formatter applied.
14 | public func sliderAccessibilityValueFormatter(
| `- note: add '@available' attribute to enclosing instance method
15 | _ numberFormatter: NumberFormatter
16 | ) -> some View {
17 | environment(\.liteSliderAccessibilityValueFormatter, numberFormatter)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:33:9: error: 'environment' is only available in macOS 10.15 or newer
3 | // MARK: - View Modifiers
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a `NumberFormatter` used to format the slider’s accessibility
:
28 | /// adjustments.
29 | /// - Returns: A view with the provided accessibility step applied.
30 | public func sliderAccessibilityValueStep(
| `- note: add '@available' attribute to enclosing instance method
31 | _ accessibilityValueStep: Double
32 | ) -> some View {
33 | environment(\.liteSliderAccessibilityValueStep, accessibilityValueStep)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:54:23: error: 'Color' is only available in macOS 10.15 or newer
49 | ///
50 | /// Set via `.sliderStroke(_:, lineWidth:)`
51 | public struct LiteSliderStrokeStyle: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | /// The stroke color.
54 | public let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
55 |
56 | /// The width of the stroke line, in points.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:64:24: error: 'Color' is only available in macOS 10.15 or newer
49 | ///
50 | /// Set via `.sliderStroke(_:, lineWidth:)`
51 | public struct LiteSliderStrokeStyle: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | /// The stroke color.
:
62 | /// - color: The color of the stroke.
63 | /// - lineWidth: The width of the stroke line.
64 | public init(color: Color, lineWidth: CGFloat) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
65 | self.color = color
66 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:136:63: 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.
134 | ///
135 | /// Default: `300`
136 | public func sliderThickness(_ thickness: CGFloat) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
137 | environment(\.liteSliderThickness, thickness)
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:143:57: 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.
:
141 | ///
142 | /// Default: `30`
143 | public func sliderRadius(_ radius: CGFloat) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
144 | environment(\.liteSliderRadius, radius)
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:152: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.
:
148 | ///
149 | /// Default: `.dynamic`
150 | public func sliderLengthBehavior(
| `- note: add '@available' attribute to enclosing instance method
151 | _ behavior: LiteSliderLengthBehavior
152 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
153 | environment(\.liteSliderLengthBehavior, behavior)
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:159:43: 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.
:
157 | ///
158 | /// Default: `.secondary`
159 | public func sliderTrackColor(_ color: Color) -> some View {
| | `- error: 'Color' 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:159:58: 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.
:
157 | ///
158 | /// Default: `.secondary`
159 | public func sliderTrackColor(_ color: Color) -> some View {
| | `- 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(
[21/21] Compiling LiteSlider LiteSliderAppearance.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:16:15: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - View Modifiers
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a `NumberFormatter` used to format the slider’s accessibility
:
12 | /// strings.
13 | /// - Returns: A view with the provided accessibility formatter applied.
14 | public func sliderAccessibilityValueFormatter(
| `- note: add '@available' attribute to enclosing instance method
15 | _ numberFormatter: NumberFormatter
16 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
17 | environment(\.liteSliderAccessibilityValueFormatter, numberFormatter)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:32:15: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - View Modifiers
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a `NumberFormatter` used to format the slider’s accessibility
:
28 | /// adjustments.
29 | /// - Returns: A view with the provided accessibility step applied.
30 | public func sliderAccessibilityValueStep(
| `- note: add '@available' attribute to enclosing instance method
31 | _ accessibilityValueStep: Double
32 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
33 | environment(\.liteSliderAccessibilityValueStep, accessibilityValueStep)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:5:11: error: 'View' is only available in macOS 10.15 or newer
3 | // MARK: - View Modifiers
4 |
5 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a `NumberFormatter` used to format the slider’s accessibility
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:53:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
51 | // MARK: - EnvironmentValues
52 |
53 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
54 |
55 | var liteSliderAccessibilityValueFormatter: NumberFormatter {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:17:9: error: 'environment' is only available in macOS 10.15 or newer
3 | // MARK: - View Modifiers
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a `NumberFormatter` used to format the slider’s accessibility
:
12 | /// strings.
13 | /// - Returns: A view with the provided accessibility formatter applied.
14 | public func sliderAccessibilityValueFormatter(
| `- note: add '@available' attribute to enclosing instance method
15 | _ numberFormatter: NumberFormatter
16 | ) -> some View {
17 | environment(\.liteSliderAccessibilityValueFormatter, numberFormatter)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAccessibility.swift:33:9: error: 'environment' is only available in macOS 10.15 or newer
3 | // MARK: - View Modifiers
4 |
5 | extension View {
| `- note: add '@available' attribute to enclosing extension
6 |
7 | /// Sets a `NumberFormatter` used to format the slider’s accessibility
:
28 | /// adjustments.
29 | /// - Returns: A view with the provided accessibility step applied.
30 | public func sliderAccessibilityValueStep(
| `- note: add '@available' attribute to enclosing instance method
31 | _ accessibilityValueStep: Double
32 | ) -> some View {
33 | environment(\.liteSliderAccessibilityValueStep, accessibilityValueStep)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:54:23: error: 'Color' is only available in macOS 10.15 or newer
49 | ///
50 | /// Set via `.sliderStroke(_:, lineWidth:)`
51 | public struct LiteSliderStrokeStyle: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | /// The stroke color.
54 | public let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
55 |
56 | /// The width of the stroke line, in points.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:64:24: error: 'Color' is only available in macOS 10.15 or newer
49 | ///
50 | /// Set via `.sliderStroke(_:, lineWidth:)`
51 | public struct LiteSliderStrokeStyle: Sendable, Equatable {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | /// The stroke color.
:
62 | /// - color: The color of the stroke.
63 | /// - lineWidth: The width of the stroke line.
64 | public init(color: Color, lineWidth: CGFloat) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
65 | self.color = color
66 | self.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:136:63: 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.
134 | ///
135 | /// Default: `300`
136 | public func sliderThickness(_ thickness: CGFloat) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
137 | environment(\.liteSliderThickness, thickness)
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:143:57: 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.
:
141 | ///
142 | /// Default: `30`
143 | public func sliderRadius(_ radius: CGFloat) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
144 | environment(\.liteSliderRadius, radius)
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:152: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.
:
148 | ///
149 | /// Default: `.dynamic`
150 | public func sliderLengthBehavior(
| `- note: add '@available' attribute to enclosing instance method
151 | _ behavior: LiteSliderLengthBehavior
152 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
153 | environment(\.liteSliderLengthBehavior, behavior)
154 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Config/LiteSliderAppearance.swift:159:43: 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.
:
157 | ///
158 | /// Default: `.secondary`
159 | public func sliderTrackColor(_ color: Color) -> some View {
| | `- error: 'Color' 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:159:58: 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.
:
157 | ///
158 | /// Default: `.secondary`
159 | public func sliderTrackColor(_ color: Color) -> some View {
| | `- 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(
[22/22] Compiling LiteSlider LiteSlider+FixedLengthTrack.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+FixedLengthTrack.swift:20:10: error: 'Binding' is only available in macOS 10.15 or newer
9 | /// This view displays the track at a constant length, and positions the
10 | /// thumb according to the current drag ratio.
11 | struct FixedLengthTrack: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The vertical length of the track.
:
18 |
19 | /// A binding to the current drag ratio, from 0.0 to 1.0.
20 | @Binding var dragRatio: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 |
22 | /// A binding that reflects whether the user is actively dragging.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+FixedLengthTrack.swift:23:10: error: 'Binding' is only available in macOS 10.15 or newer
9 | /// This view displays the track at a constant length, and positions the
10 | /// thumb according to the current drag ratio.
11 | struct FixedLengthTrack: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The vertical length of the track.
:
21 |
22 | /// A binding that reflects whether the user is actively dragging.
23 | @Binding var isDragging: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
24 |
25 | @Environment(\.liteSliderThickness) private var thickness
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+FixedLengthTrack.swift:25:10: error: 'Environment' is only available in macOS 10.15 or newer
9 | /// This view displays the track at a constant length, and positions the
10 | /// thumb according to the current drag ratio.
11 | struct FixedLengthTrack: View {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The vertical length of the track.
:
23 | @Binding var isDragging: Bool
24 |
25 | @Environment(\.liteSliderThickness) private var thickness
| `- error: 'Environment' is only available in macOS 10.15 or newer
26 |
27 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+FixedLengthTrack.swift:27:24: error: 'View' is only available in macOS 10.15 or newer
9 | /// This view displays the track at a constant length, and positions the
10 | /// thumb according to the current drag ratio.
11 | struct FixedLengthTrack: View {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The vertical length of the track.
:
25 | @Environment(\.liteSliderThickness) private var thickness
26 |
27 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
28 | Track(
29 | length: length,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:48:56: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
46 |
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/LiteSlider+Track.swift:49:49: error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
6 |
7 | /// A vertically draggable track that represents the slider's value visually.
8 | struct Track: View {
| `- note: add '@available' attribute to enclosing struct
9 |
10 | // MARK: Input
:
47 | private let touchLocationLength: CGFloat = 70
48 | private let valueChangeAnimation: Animation = .spring(duration: 0.30)
49 | private let dragAnimation: Animation = .spring(duration: 0.15)
| `- error: 'spring(duration:bounce:blendDuration:)' is only available in macOS 10.15 or newer
50 |
51 | // MARK: View
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+FixedLengthTrack.swift:35:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
9 | /// This view displays the track at a constant length, and positions the
10 | /// thumb according to the current drag ratio.
11 | struct FixedLengthTrack: View {
| `- note: add '@available' attribute to enclosing struct
12 |
13 | /// The vertical length of the track.
:
25 | @Environment(\.liteSliderThickness) private var thickness
26 |
27 | var body: some View {
| `- note: add '@available' attribute to enclosing property
28 | Track(
29 | length: length,
:
33 | onStartDragging: nil
34 | )
35 | .frame(width: thickness, height: length)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | }
37 | }
BUILD FAILURE 6.2 macosSpm