Build Information
Failed to build LiteSlider, reference 0.1.1 (7f4464
), with Swift 6.2 (beta) for macOS (SPM) on 17 Jul 2025 15:13:05 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
12 | /// via the `liteSliderThickness` environment value.
13 | struct DynamicLengthTrack: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
14 |
15 | /// The view used to render the slider thumb, if any.
:
23 |
24 | /// The track thickness, injected via environment.
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+DynamicLengthTrack.swift:27:24: error: 'View' is only available in macOS 10.15 or newer
11 | /// allowing the slider to scale flexibly. The thickness of the track is controlled
12 | /// via the `liteSliderThickness` environment value.
13 | struct DynamicLengthTrack: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | /// The view used to render the slider thumb, if any.
:
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 | GeometryReader { geometry in
29 | Track(
/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+DynamicLengthTrack.swift:28:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
11 | /// allowing the slider to scale flexibly. The thickness of the track is controlled
12 | /// via the `liteSliderThickness` environment value.
13 | struct DynamicLengthTrack: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | /// The view used to render the slider thumb, if any.
:
25 | @Environment(\.liteSliderThickness) private var thickness
26 |
27 | var body: some View {
| `- note: add @available attribute to enclosing property
28 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | Track(
30 | length: geometry.size.height,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+DynamicLengthTrack.swift:37:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
11 | /// allowing the slider to scale flexibly. The thickness of the track is controlled
12 | /// via the `liteSliderThickness` environment value.
13 | struct DynamicLengthTrack: View {
| `- note: add @available attribute to enclosing struct
14 |
15 | /// The view used to render the slider thumb, if any.
:
25 | @Environment(\.liteSliderThickness) private var thickness
26 |
27 | var body: some View {
| `- note: add @available attribute to enclosing property
28 | GeometryReader { geometry in
29 | Track(
:
35 | )
36 | }
37 | .frame(width: thickness)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+ExpandableTrack.swift:17:10: error: 'Binding' is only available in macOS 10.15 or newer
8 | /// Its expansion direction and target length are defined by
9 | /// `LiteSliderLengthBehavior`.
10 | struct ExpandableTrack: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
11 |
12 | // MARK: Properties
:
15 | var thumbView: ThumbViewProvider?
16 |
17 | @Binding var dragRatio: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
18 | @Binding var isDragging: Bool
19 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+ExpandableTrack.swift:18:10: error: 'Binding' is only available in macOS 10.15 or newer
8 | /// Its expansion direction and target length are defined by
9 | /// `LiteSliderLengthBehavior`.
10 | struct ExpandableTrack: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
11 |
12 | // MARK: Properties
:
16 |
17 | @Binding var dragRatio: CGFloat
18 | @Binding var isDragging: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
19 |
20 | @Environment(\.liteSliderThickness) private var thickness
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+ExpandableTrack.swift:20:10: error: 'Environment' is only available in macOS 10.15 or newer
8 | /// Its expansion direction and target length are defined by
9 | /// `LiteSliderLengthBehavior`.
10 | struct ExpandableTrack: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
11 |
12 | // MARK: Properties
:
18 | @Binding var isDragging: Bool
19 |
20 | @Environment(\.liteSliderThickness) private var thickness
| `- error: 'Environment' is only available in macOS 10.15 or newer
21 | @Environment(\.liteSliderLengthBehavior) private var lengthBehavior
22 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+ExpandableTrack.swift:21:10: error: 'Environment' is only available in macOS 10.15 or newer
8 | /// Its expansion direction and target length are defined by
9 | /// `LiteSliderLengthBehavior`.
10 | struct ExpandableTrack: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
11 |
12 | // MARK: Properties
:
19 |
20 | @Environment(\.liteSliderThickness) private var thickness
21 | @Environment(\.liteSliderLengthBehavior) private var lengthBehavior
| `- error: 'Environment' is only available in macOS 10.15 or newer
22 |
23 | private var trackLength: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+ExpandableTrack.swift:31:24: error: 'View' is only available in macOS 10.15 or newer
8 | /// Its expansion direction and target length are defined by
9 | /// `LiteSliderLengthBehavior`.
10 | struct ExpandableTrack: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | // MARK: Properties
:
29 | // MARK: Body
30 |
31 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | FixedFrameContainer(
33 | size: CGSize(width: thickness, height: thickness),
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+ExpandableTrack.swift:43:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | /// Its expansion direction and target length are defined by
9 | /// `LiteSliderLengthBehavior`.
10 | struct ExpandableTrack: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | // MARK: Properties
:
29 | // MARK: Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | FixedFrameContainer(
33 | size: CGSize(width: thickness, height: thickness),
:
41 | onStartDragging: resetDragRatio
42 | )
43 | .frame(width: thickness, height: trackLength)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/TrackWrappers/LiteSlider+ExpandableTrack.swift:50:13: error: setter for 'dragRatio' is only available in macOS 10.15 or newer
8 | /// Its expansion direction and target length are defined by
9 | /// `LiteSliderLengthBehavior`.
10 | struct ExpandableTrack: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | // MARK: Properties
:
47 | // MARK: Private Methods
48 |
49 | private func resetDragRatio() {
| `- note: add @available attribute to enclosing instance method
50 | dragRatio = defaultDragRatio(for: lengthBehavior.expansionDirection)
| |- error: setter for 'dragRatio' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | }
52 |
[20/22] Compiling LiteSlider LiteSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:27:6: error: 'Environment' 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.
:
25 | // MARK: Environment
26 |
27 | @Environment(\.liteSliderLengthBehavior) private var lengthBehavior
| `- error: 'Environment' is only available in macOS 10.15 or newer
28 | @Environment(\.liteSliderAccessibilityValueFormatter)
29 | private var accessibilityValueFormatter
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:28:6: error: 'Environment' 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.
:
26 |
27 | @Environment(\.liteSliderLengthBehavior) private var lengthBehavior
28 | @Environment(\.liteSliderAccessibilityValueFormatter)
| `- error: 'Environment' is only available in macOS 10.15 or newer
29 | private var accessibilityValueFormatter
30 | @Environment(\.liteSliderAccessibilityValueStep)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:30:6: error: 'Environment' 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.
:
28 | @Environment(\.liteSliderAccessibilityValueFormatter)
29 | private var accessibilityValueFormatter
30 | @Environment(\.liteSliderAccessibilityValueStep)
| `- error: 'Environment' is only available in macOS 10.15 or newer
31 | private var accessibilityValueStep
32 | @Environment(\.liteSliderOnEnded) private var onEnded
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:32:6: error: 'Environment' 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.
:
30 | @Environment(\.liteSliderAccessibilityValueStep)
31 | private var accessibilityValueStep
32 | @Environment(\.liteSliderOnEnded) private var onEnded
| `- error: 'Environment' is only available in macOS 10.15 or newer
33 |
34 | // MARK: State
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:36:6: error: 'Binding' 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.
:
34 | // MARK: State
35 |
36 | @Binding private var externalValue: Double
| `- error: 'Binding' is only available in macOS 10.15 or newer
37 | @State private var dragRatio: CGFloat
38 | @State private var isDragging: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:37:6: error: 'State' 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.
:
35 |
36 | @Binding private var externalValue: Double
37 | @State private var dragRatio: CGFloat
| `- error: 'State' is only available in macOS 10.15 or newer
38 | @State private var isDragging: Bool = false
39 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:38:6: error: 'State' 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.
:
36 | @Binding private var externalValue: Double
37 | @State private var dragRatio: CGFloat
38 | @State private var isDragging: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
39 |
40 | // MARK: Thumb
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:56:26: error: 'EmptyView' 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,
55 | step: Double = 0,
56 | ) where ThumbView == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
57 | self._externalValue = value
58 | self.range = range
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:53:16: error: 'Binding' 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>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
54 | in range: ClosedRange<Double> = 0...1,
55 | step: Double = 0,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:72:16: error: 'Binding' 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>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
73 | in range: ClosedRange<Double> = 0...1,
74 | step: Double = 0,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:75:10: error: 'ViewBuilder' 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,
74 | step: Double = 0,
75 | @ViewBuilder thumbView: @escaping ThumbViewProvider
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
76 | ) {
77 | self._externalValue = value
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:86:27: error: '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: 'View' is only available in macOS 10.15 or newer
| `- 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:105:29: error: '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: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
106 | switch lengthBehavior {
107 | case .dynamic:
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:104:6: error: 'ViewBuilder' 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.
:
102 | // MARK: Track View
103 |
104 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
105 | private var track: some View {
106 | switch lengthBehavior {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:148:22: error: 'AccessibilityAdjustmentDirection' 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
| `- error: 'AccessibilityAdjustmentDirection' is only available in macOS 10.15 or newer
149 | ) {
150 | switch direction {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:13:37: error: '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 {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:185:6: error: 'Previewable()' is only available in macOS 14.0 or newer
183 |
184 | #Preview {
185 | @Previewable @State var value: Double = 50
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
186 | let smallRange: ClosedRange<Double> = 0...100
187 | let largeRange: ClosedRange<Double> = -20...120
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:185:19: error: 'State' is only available in macOS 10.15 or newer
183 |
184 | #Preview {
185 | @Previewable @State var value: Double = 50
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
186 | let smallRange: ClosedRange<Double> = 0...100
187 | let largeRange: ClosedRange<Double> = -20...120
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:196:35: error: 'View' is only available in macOS 10.15 or newer
194 | }()
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
| |- error: 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | VStack {
198 | Text("\(Int(value))")
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:184:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
182 | // MARK: - Preview
183 |
184 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
185 | @Previewable @State var value: Double = 50
186 | let smallRange: ClosedRange<Double> = 0...100
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:197:9: error: 'VStack' is only available in macOS 10.15 or newer
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
198 | Text("\(Int(value))")
199 | .font(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:198:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
198 | Text("\(Int(value))")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | .font(
200 | .system(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:198:13: error: 'Text' is only available in macOS 10.15 or newer
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
198 | Text("\(Int(value))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | .font(
200 | .system(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:199:18: error: 'font' is only available in macOS 10.15 or newer
197 | VStack {
198 | Text("\(Int(value))")
199 | .font(
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
200 | .system(
201 | size: 32,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:200:22: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
198 | Text("\(Int(value))")
199 | .font(
200 | .system(
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
201 | size: 32,
202 | weight: .semibold,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:206:13: error: 'Text' is only available in macOS 10.15 or newer
204 | )
205 | )
206 | Text(isDragging ? "drag" : "stop")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
207 | .font(.body)
208 | .padding(.top, -20)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:207:18: error: 'font' is only available in macOS 10.15 or newer
205 | )
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | .padding(.top, -20)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:207:24: error: 'body' is only available in macOS 10.15 or newer
205 | )
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
| |- error: 'body' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | .padding(.top, -20)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:208:18: error: 'padding' is only available in macOS 10.15 or newer
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
208 | .padding(.top, -20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | }
210 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:197:16: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
198 | Text("\(Int(value))")
199 | .font(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:210:10: error: 'foregroundStyle' is only available in macOS 12.0 or newer
208 | .padding(.top, -20)
209 | }
210 | .foregroundStyle(.white)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
211 | .scaleEffect(1)
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:210:27: error: 'white' is only available in macOS 10.15 or newer
208 | .padding(.top, -20)
209 | }
210 | .foregroundStyle(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
211 | .scaleEffect(1)
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:211:10: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
209 | }
210 | .foregroundStyle(.white)
211 | .scaleEffect(1)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
212 | }
213 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:214:5: error: 'HStack' is only available in macOS 10.15 or newer
212 | }
213 |
214 | HStack(spacing: 18.5) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | LiteSlider(
216 | value: $value,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:221:27: error: 'Color' is only available in macOS 10.15 or newer
219 | )
220 | .sliderLengthBehavior(.expandable(direction: .center, maxLength: 500))
221 | .sliderTrackColor(Color(hex: 0xFFD6C2, alpha: 0.5))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | .sliderProgressColor(Color(hex: 0xFF5733, alpha: 0.75))
223 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:222:30: error: 'Color' is only available in macOS 10.15 or newer
220 | .sliderLengthBehavior(.expandable(direction: .center, maxLength: 500))
221 | .sliderTrackColor(Color(hex: 0xFFD6C2, alpha: 0.5))
222 | .sliderProgressColor(Color(hex: 0xFF5733, alpha: 0.75))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 |
224 | LiteSlider(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:231:27: error: 'Color' is only available in macOS 10.15 or newer
229 | )
230 | .sliderLengthBehavior(.fixed(length: 300))
231 | .sliderTrackColor(Color(hex: 0xD2F0EC, alpha: 0.5))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
232 | .sliderProgressColor(Color(hex: 0x3BA99C, alpha: 0.8))
233 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:232:30: error: 'Color' is only available in macOS 10.15 or newer
230 | .sliderLengthBehavior(.fixed(length: 300))
231 | .sliderTrackColor(Color(hex: 0xD2F0EC, alpha: 0.5))
232 | .sliderProgressColor(Color(hex: 0x3BA99C, alpha: 0.8))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 |
234 | LiteSlider(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:240:27: error: 'Color' is only available in macOS 10.15 or newer
238 | )
239 | .sliderLengthBehavior(.dynamic)
240 | .sliderTrackColor(Color(hex: 0xEBD5F5, alpha: 0.5))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .sliderProgressColor(Color(hex: 0x9B59B6, alpha: 0.75))
242 | .sliderAccessibilityValueStep(10)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:241:30: error: 'Color' is only available in macOS 10.15 or newer
239 | .sliderLengthBehavior(.dynamic)
240 | .sliderTrackColor(Color(hex: 0xEBD5F5, alpha: 0.5))
241 | .sliderProgressColor(Color(hex: 0x9B59B6, alpha: 0.75))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
242 | .sliderAccessibilityValueStep(10)
243 | .sliderAccessibilityValueFormatter(oneDecimalDigitFormatter)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:247:19: error: 'Color' is only available in macOS 10.15 or newer
245 | .sliderThickness(100)
246 | .sliderRadius(30)
247 | .sliderStroke(Color(hex: 0x000000, alpha: 0.3), lineWidth: 0.3)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
248 | .padding(50)
249 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:248:6: error: 'padding' is only available in macOS 10.15 or newer
246 | .sliderRadius(30)
247 | .sliderStroke(Color(hex: 0x000000, alpha: 0.3), lineWidth: 0.3)
248 | .padding(50)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
249 | }
250 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:360:6: error: 'Previewable()' is only available in macOS 14.0 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
361 | let radius: CGFloat = 30
362 | let thumbSize: CGFloat = 70
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:359:6: error: 'Previewable()' is only available in macOS 14.0 or newer
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
361 | let radius: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:358:6: error: 'Previewable()' is only available in macOS 14.0 or newer
356 |
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:358:19: error: 'State' is only available in macOS 10.15 or newer
356 |
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:359:19: error: 'State' is only available in macOS 10.15 or newer
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
361 | let radius: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:360:19: error: 'State' is only available in macOS 10.15 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 | let radius: CGFloat = 30
362 | let thumbSize: CGFloat = 70
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:357:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
355 | // MARK: - Preview
356 |
357 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:374:5: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
372 | }
373 |
374 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 |
376 | VStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:374:5: error: 'Spacer' is only available in macOS 10.15 or newer
372 | }
373 |
374 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 |
376 | VStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:5: error: 'VStack' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:377:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
375 |
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:377:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
375 |
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:378:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:378:20: error: 'clear' is only available in macOS 10.15 or newer
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:379:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
380 |
381 | BackgroundShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:379:22: error: 'gray' is only available in macOS 10.15 or newer
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
380 |
381 | BackgroundShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:381:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
381 | BackgroundShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
382 | .fill(.gray)
383 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:382:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
380 |
381 | BackgroundShape(trackShapeParameters)
382 | .fill(.gray)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
383 |
384 | ProgressShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:382:20: error: 'gray' is only available in macOS 10.15 or newer
380 |
381 | BackgroundShape(trackShapeParameters)
382 | .fill(.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
383 |
384 | ProgressShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:384:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
382 | .fill(.gray)
383 |
384 | ProgressShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
385 | .fill(.gray)
386 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:385:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
383 |
384 | ProgressShape(trackShapeParameters)
385 | .fill(.gray)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
386 |
387 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:385:20: error: 'gray' is only available in macOS 10.15 or newer
383 |
384 | ProgressShape(trackShapeParameters)
385 | .fill(.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
386 |
387 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:387:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
385 | .fill(.gray)
386 |
387 | ProgressStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:387:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
385 | .fill(.gray)
386 |
387 | ProgressStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:388:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
386 |
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:388:20: error: 'clear' is only available in macOS 10.15 or newer
386 |
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:389:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
390 | }
391 | .frame(width: 100, height: 600)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:389:22: error: 'gray' is only available in macOS 10.15 or newer
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
390 | }
391 | .frame(width: 100, height: 600)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:391:6: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
391 | .frame(width: 100, height: 600)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:392:6: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
390 | }
391 | .frame(width: 100, height: 600)
392 | .onChange(of: scale.height) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
393 | scale.width = 1 + 1 - scale.height
394 | offset = (scale.height - 1) * 200
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:393:9: error: cannot pass as inout because setter for 'scale' is only available in macOS 10.15 or newer
391 | .frame(width: 100, height: 600)
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
| |- error: cannot pass as inout because setter for 'scale' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
394 | offset = (scale.height - 1) * 200
395 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:394:9: error: setter for 'offset' is only available in macOS 10.15 or newer
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
394 | offset = (scale.height - 1) * 200
| |- error: setter for 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
395 | }
396 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:397:5: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
395 | }
396 |
397 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
398 |
399 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:397:5: error: 'Spacer' is only available in macOS 10.15 or newer
395 | }
396 |
397 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
398 |
399 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:5: error: 'HStack' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:400:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
398 |
399 | HStack {
400 | Text("Ratio")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:400:9: error: 'Text' is only available in macOS 10.15 or newer
398 |
399 | HStack {
400 | Text("Ratio")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:401:9: error: 'Slider' is only available in macOS 10.15 or newer
399 | HStack {
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
402 | Text(String(format: "%.2f", ratio))
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:401:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
399 | HStack {
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
402 | Text(String(format: "%.2f", ratio))
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:402:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | }
404 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:402:9: error: 'Text' is only available in macOS 10.15 or newer
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | }
404 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:5: error: 'HStack' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:405:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
403 | }
404 | HStack {
405 | Text("Scale")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:405:9: error: 'Text' is only available in macOS 10.15 or newer
403 | }
404 | HStack {
405 | Text("Scale")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:406:9: error: 'Slider' is only available in macOS 10.15 or newer
404 | HStack {
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | Text(String(format: "%.2f", scale.height))
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:406:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
404 | HStack {
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | Text(String(format: "%.2f", scale.height))
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:407:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:407:9: error: 'Text' is only available in macOS 10.15 or newer
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:357:10: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
355 | // MARK: - Preview
356 |
357 | #Preview {
| `- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
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 | }
[21/22] Compiling LiteSlider ElasticDragMetrics.swift
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:27:6: error: 'Environment' 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.
:
25 | // MARK: Environment
26 |
27 | @Environment(\.liteSliderLengthBehavior) private var lengthBehavior
| `- error: 'Environment' is only available in macOS 10.15 or newer
28 | @Environment(\.liteSliderAccessibilityValueFormatter)
29 | private var accessibilityValueFormatter
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:28:6: error: 'Environment' 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.
:
26 |
27 | @Environment(\.liteSliderLengthBehavior) private var lengthBehavior
28 | @Environment(\.liteSliderAccessibilityValueFormatter)
| `- error: 'Environment' is only available in macOS 10.15 or newer
29 | private var accessibilityValueFormatter
30 | @Environment(\.liteSliderAccessibilityValueStep)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:30:6: error: 'Environment' 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.
:
28 | @Environment(\.liteSliderAccessibilityValueFormatter)
29 | private var accessibilityValueFormatter
30 | @Environment(\.liteSliderAccessibilityValueStep)
| `- error: 'Environment' is only available in macOS 10.15 or newer
31 | private var accessibilityValueStep
32 | @Environment(\.liteSliderOnEnded) private var onEnded
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:32:6: error: 'Environment' 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.
:
30 | @Environment(\.liteSliderAccessibilityValueStep)
31 | private var accessibilityValueStep
32 | @Environment(\.liteSliderOnEnded) private var onEnded
| `- error: 'Environment' is only available in macOS 10.15 or newer
33 |
34 | // MARK: State
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:36:6: error: 'Binding' 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.
:
34 | // MARK: State
35 |
36 | @Binding private var externalValue: Double
| `- error: 'Binding' is only available in macOS 10.15 or newer
37 | @State private var dragRatio: CGFloat
38 | @State private var isDragging: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:37:6: error: 'State' 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.
:
35 |
36 | @Binding private var externalValue: Double
37 | @State private var dragRatio: CGFloat
| `- error: 'State' is only available in macOS 10.15 or newer
38 | @State private var isDragging: Bool = false
39 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:38:6: error: 'State' 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.
:
36 | @Binding private var externalValue: Double
37 | @State private var dragRatio: CGFloat
38 | @State private var isDragging: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
39 |
40 | // MARK: Thumb
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:56:26: error: 'EmptyView' 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,
55 | step: Double = 0,
56 | ) where ThumbView == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
57 | self._externalValue = value
58 | self.range = range
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:53:16: error: 'Binding' 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>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
54 | in range: ClosedRange<Double> = 0...1,
55 | step: Double = 0,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:72:16: error: 'Binding' 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>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
73 | in range: ClosedRange<Double> = 0...1,
74 | step: Double = 0,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:75:10: error: 'ViewBuilder' 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,
74 | step: Double = 0,
75 | @ViewBuilder thumbView: @escaping ThumbViewProvider
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
76 | ) {
77 | self._externalValue = value
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:86:27: error: '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: 'View' is only available in macOS 10.15 or newer
| `- 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:105:29: error: '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: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
106 | switch lengthBehavior {
107 | case .dynamic:
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:104:6: error: 'ViewBuilder' 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.
:
102 | // MARK: Track View
103 |
104 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
105 | private var track: some View {
106 | switch lengthBehavior {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:148:22: error: 'AccessibilityAdjustmentDirection' 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
| `- error: 'AccessibilityAdjustmentDirection' is only available in macOS 10.15 or newer
149 | ) {
150 | switch direction {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:13:37: error: '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 {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
14 |
15 | /// A closure that returns a thumb view based on drag state.
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:185:6: error: 'Previewable()' is only available in macOS 14.0 or newer
183 |
184 | #Preview {
185 | @Previewable @State var value: Double = 50
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
186 | let smallRange: ClosedRange<Double> = 0...100
187 | let largeRange: ClosedRange<Double> = -20...120
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:185:19: error: 'State' is only available in macOS 10.15 or newer
183 |
184 | #Preview {
185 | @Previewable @State var value: Double = 50
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
186 | let smallRange: ClosedRange<Double> = 0...100
187 | let largeRange: ClosedRange<Double> = -20...120
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:196:35: error: 'View' is only available in macOS 10.15 or newer
194 | }()
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
| |- error: 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | VStack {
198 | Text("\(Int(value))")
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:184:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
182 | // MARK: - Preview
183 |
184 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
185 | @Previewable @State var value: Double = 50
186 | let smallRange: ClosedRange<Double> = 0...100
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:197:9: error: 'VStack' is only available in macOS 10.15 or newer
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
198 | Text("\(Int(value))")
199 | .font(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:198:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
198 | Text("\(Int(value))")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | .font(
200 | .system(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:198:13: error: 'Text' is only available in macOS 10.15 or newer
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
198 | Text("\(Int(value))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | .font(
200 | .system(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:199:18: error: 'font' is only available in macOS 10.15 or newer
197 | VStack {
198 | Text("\(Int(value))")
199 | .font(
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
200 | .system(
201 | size: 32,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:200:22: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
198 | Text("\(Int(value))")
199 | .font(
200 | .system(
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
201 | size: 32,
202 | weight: .semibold,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:206:13: error: 'Text' is only available in macOS 10.15 or newer
204 | )
205 | )
206 | Text(isDragging ? "drag" : "stop")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
207 | .font(.body)
208 | .padding(.top, -20)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:207:18: error: 'font' is only available in macOS 10.15 or newer
205 | )
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | .padding(.top, -20)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:207:24: error: 'body' is only available in macOS 10.15 or newer
205 | )
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
| |- error: 'body' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | .padding(.top, -20)
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:208:18: error: 'padding' is only available in macOS 10.15 or newer
206 | Text(isDragging ? "drag" : "stop")
207 | .font(.body)
208 | .padding(.top, -20)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | }
210 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:197:16: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
195 |
196 | let thumbView: (Bool) -> some View = { isDragging in
197 | VStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
198 | Text("\(Int(value))")
199 | .font(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:210:10: error: 'foregroundStyle' is only available in macOS 12.0 or newer
208 | .padding(.top, -20)
209 | }
210 | .foregroundStyle(.white)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
211 | .scaleEffect(1)
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:210:27: error: 'white' is only available in macOS 10.15 or newer
208 | .padding(.top, -20)
209 | }
210 | .foregroundStyle(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
211 | .scaleEffect(1)
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:211:10: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
209 | }
210 | .foregroundStyle(.white)
211 | .scaleEffect(1)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
212 | }
213 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:214:5: error: 'HStack' is only available in macOS 10.15 or newer
212 | }
213 |
214 | HStack(spacing: 18.5) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | LiteSlider(
216 | value: $value,
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:221:27: error: 'Color' is only available in macOS 10.15 or newer
219 | )
220 | .sliderLengthBehavior(.expandable(direction: .center, maxLength: 500))
221 | .sliderTrackColor(Color(hex: 0xFFD6C2, alpha: 0.5))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
222 | .sliderProgressColor(Color(hex: 0xFF5733, alpha: 0.75))
223 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:222:30: error: 'Color' is only available in macOS 10.15 or newer
220 | .sliderLengthBehavior(.expandable(direction: .center, maxLength: 500))
221 | .sliderTrackColor(Color(hex: 0xFFD6C2, alpha: 0.5))
222 | .sliderProgressColor(Color(hex: 0xFF5733, alpha: 0.75))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 |
224 | LiteSlider(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:231:27: error: 'Color' is only available in macOS 10.15 or newer
229 | )
230 | .sliderLengthBehavior(.fixed(length: 300))
231 | .sliderTrackColor(Color(hex: 0xD2F0EC, alpha: 0.5))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
232 | .sliderProgressColor(Color(hex: 0x3BA99C, alpha: 0.8))
233 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:232:30: error: 'Color' is only available in macOS 10.15 or newer
230 | .sliderLengthBehavior(.fixed(length: 300))
231 | .sliderTrackColor(Color(hex: 0xD2F0EC, alpha: 0.5))
232 | .sliderProgressColor(Color(hex: 0x3BA99C, alpha: 0.8))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 |
234 | LiteSlider(
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:240:27: error: 'Color' is only available in macOS 10.15 or newer
238 | )
239 | .sliderLengthBehavior(.dynamic)
240 | .sliderTrackColor(Color(hex: 0xEBD5F5, alpha: 0.5))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .sliderProgressColor(Color(hex: 0x9B59B6, alpha: 0.75))
242 | .sliderAccessibilityValueStep(10)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:241:30: error: 'Color' is only available in macOS 10.15 or newer
239 | .sliderLengthBehavior(.dynamic)
240 | .sliderTrackColor(Color(hex: 0xEBD5F5, alpha: 0.5))
241 | .sliderProgressColor(Color(hex: 0x9B59B6, alpha: 0.75))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
242 | .sliderAccessibilityValueStep(10)
243 | .sliderAccessibilityValueFormatter(oneDecimalDigitFormatter)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:247:19: error: 'Color' is only available in macOS 10.15 or newer
245 | .sliderThickness(100)
246 | .sliderRadius(30)
247 | .sliderStroke(Color(hex: 0x000000, alpha: 0.3), lineWidth: 0.3)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
248 | .padding(50)
249 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/LiteSlider.swift:248:6: error: 'padding' is only available in macOS 10.15 or newer
246 | .sliderRadius(30)
247 | .sliderStroke(Color(hex: 0x000000, alpha: 0.3), lineWidth: 0.3)
248 | .padding(50)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
249 | }
250 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:360:6: error: 'Previewable()' is only available in macOS 14.0 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
361 | let radius: CGFloat = 30
362 | let thumbSize: CGFloat = 70
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:359:6: error: 'Previewable()' is only available in macOS 14.0 or newer
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
361 | let radius: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:358:6: error: 'Previewable()' is only available in macOS 14.0 or newer
356 |
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:358:19: error: 'State' is only available in macOS 10.15 or newer
356 |
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:359:19: error: 'State' is only available in macOS 10.15 or newer
357 | #Preview {
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
361 | let radius: CGFloat = 30
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:360:19: error: 'State' is only available in macOS 10.15 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
360 | @Previewable @State var scale: CGSize = .init(width: 1, height: 1)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 | let radius: CGFloat = 30
362 | let thumbSize: CGFloat = 70
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:357:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
355 | // MARK: - Preview
356 |
357 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
358 | @Previewable @State var ratio: CGFloat = 0.5
359 | @Previewable @State var offset: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:374:5: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
372 | }
373 |
374 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 |
376 | VStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:374:5: error: 'Spacer' is only available in macOS 10.15 or newer
372 | }
373 |
374 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
375 |
376 | VStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:5: error: 'VStack' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:377:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
375 |
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:377:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
375 |
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:378:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:378:20: error: 'clear' is only available in macOS 10.15 or newer
376 | VStack(spacing: 0) {
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:379:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
380 |
381 | BackgroundShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:379:22: error: 'gray' is only available in macOS 10.15 or newer
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
379 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
380 |
381 | BackgroundShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:381:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
379 | .stroke(.gray, style: .init(lineWidth: 1))
380 |
381 | BackgroundShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
382 | .fill(.gray)
383 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:382:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
380 |
381 | BackgroundShape(trackShapeParameters)
382 | .fill(.gray)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
383 |
384 | ProgressShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:382:20: error: 'gray' is only available in macOS 10.15 or newer
380 |
381 | BackgroundShape(trackShapeParameters)
382 | .fill(.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
383 |
384 | ProgressShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:384:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
382 | .fill(.gray)
383 |
384 | ProgressShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
385 | .fill(.gray)
386 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:385:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
383 |
384 | ProgressShape(trackShapeParameters)
385 | .fill(.gray)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
386 |
387 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:385:20: error: 'gray' is only available in macOS 10.15 or newer
383 |
384 | ProgressShape(trackShapeParameters)
385 | .fill(.gray)
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
386 |
387 | ProgressStrokeShape(trackShapeParameters)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:387:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
385 | .fill(.gray)
386 |
387 | ProgressStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:387:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
385 | .fill(.gray)
386 |
387 | ProgressStrokeShape(trackShapeParameters)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:388:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
386 |
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:388:20: error: 'clear' is only available in macOS 10.15 or newer
386 |
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:389:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
390 | }
391 | .frame(width: 100, height: 600)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:389:22: error: 'gray' is only available in macOS 10.15 or newer
387 | ProgressStrokeShape(trackShapeParameters)
388 | .fill(.clear)
389 | .stroke(.gray, style: .init(lineWidth: 1))
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
390 | }
391 | .frame(width: 100, height: 600)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:376:24: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
374 | Spacer()
375 |
376 | VStack(spacing: 0) {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | BackgroundStrokeShape(trackShapeParameters)
378 | .fill(.clear)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:391:6: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
389 | .stroke(.gray, style: .init(lineWidth: 1))
390 | }
391 | .frame(width: 100, height: 600)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:392:6: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
390 | }
391 | .frame(width: 100, height: 600)
392 | .onChange(of: scale.height) { _, newValue in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
393 | scale.width = 1 + 1 - scale.height
394 | offset = (scale.height - 1) * 200
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:393:9: error: cannot pass as inout because setter for 'scale' is only available in macOS 10.15 or newer
391 | .frame(width: 100, height: 600)
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
| |- error: cannot pass as inout because setter for 'scale' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
394 | offset = (scale.height - 1) * 200
395 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:394:9: error: setter for 'offset' is only available in macOS 10.15 or newer
392 | .onChange(of: scale.height) { _, newValue in
393 | scale.width = 1 + 1 - scale.height
394 | offset = (scale.height - 1) * 200
| |- error: setter for 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
395 | }
396 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:397:5: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
395 | }
396 |
397 | Spacer()
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
398 |
399 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:397:5: error: 'Spacer' is only available in macOS 10.15 or newer
395 | }
396 |
397 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
398 |
399 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:5: error: 'HStack' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:400:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
398 |
399 | HStack {
400 | Text("Ratio")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:400:9: error: 'Text' is only available in macOS 10.15 or newer
398 |
399 | HStack {
400 | Text("Ratio")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:401:9: error: 'Slider' is only available in macOS 10.15 or newer
399 | HStack {
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
402 | Text(String(format: "%.2f", ratio))
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:401:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
399 | HStack {
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
402 | Text(String(format: "%.2f", ratio))
403 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:402:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | }
404 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:402:9: error: 'Text' is only available in macOS 10.15 or newer
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
402 | Text(String(format: "%.2f", ratio))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | }
404 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:399:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
397 | Spacer()
398 |
399 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | Text("Ratio")
401 | Slider(value: $ratio, in: 0...1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:5: error: 'HStack' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:405:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
403 | }
404 | HStack {
405 | Text("Scale")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:405:9: error: 'Text' is only available in macOS 10.15 or newer
403 | }
404 | HStack {
405 | Text("Scale")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:406:9: error: 'Slider' is only available in macOS 10.15 or newer
404 | HStack {
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | Text(String(format: "%.2f", scale.height))
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:406:9: error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
404 | HStack {
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
| |- error: 'init(value:in:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | Text(String(format: "%.2f", scale.height))
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:407:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:407:9: error: 'Text' is only available in macOS 10.15 or newer
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
407 | Text(String(format: "%.2f", scale.height))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:404:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
402 | Text(String(format: "%.2f", ratio))
403 | }
404 | HStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
405 | Text("Scale")
406 | Slider(value: $scale.height, in: 1...1.1)
/Users/admin/builder/spi-builder-workspace/Sources/LiteSlider/Track/TrackShape/TrackShapeComponents.swift:357:10: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
355 | // MARK: - Preview
356 |
357 | #Preview {
| `- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
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 | }
[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