Build Information
Failed to build BetterSlider, reference main (7fdbae
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 09:54:09 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
| `- error: 'Environment' is only available in macOS 10.15 or newer
56 | @Environment(\.sliderHandleSize) private var sliderHandleSize
57 | @Environment(\.sliderStepHeight) private var sliderStepHeight
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:56:6: error: 'Environment' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
56 | @Environment(\.sliderHandleSize) private var sliderHandleSize
| `- error: 'Environment' is only available in macOS 10.15 or newer
57 | @Environment(\.sliderStepHeight) private var sliderStepHeight
58 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:57:6: error: 'Environment' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
56 | @Environment(\.sliderHandleSize) private var sliderHandleSize
57 | @Environment(\.sliderStepHeight) private var sliderStepHeight
| `- error: 'Environment' is only available in macOS 10.15 or newer
58 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
59 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:58:6: error: 'Environment' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
56 | @Environment(\.sliderHandleSize) private var sliderHandleSize
57 | @Environment(\.sliderStepHeight) private var sliderStepHeight
58 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
59 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
60 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:59:6: error: 'Environment' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
57 | @Environment(\.sliderStepHeight) private var sliderStepHeight
58 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
59 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
60 |
61 | @Binding private var _value: Double
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:61:6: error: 'Binding' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
59 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
60 |
61 | @Binding private var _value: Double
| `- error: 'Binding' is only available in macOS 10.15 or newer
62 | private let range: ClosedRange<Double>
63 | private var step: Double.Stride?
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:80:24: error: 'Binding' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
78 | }
79 |
80 | private var value: Binding<Double> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
81 | Binding {
82 | _value.clamped(to: range)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:93:32: error: 'EmptyView' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
86 | }
87 |
88 | public init(
| `- note: add @available attribute to enclosing initializer
89 | value: Binding<Double>,
90 | in range: ClosedRange<Double> = 0...1,
91 | step: Double.Stride? = nil,
92 | onEditingChanged: @escaping (Bool) -> Void = { _ in }
93 | ) where LowerValueLabel == EmptyView, UpperValueLabel == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
94 | self.__value = value
95 | self.range = range
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:93:62: error: 'EmptyView' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
86 | }
87 |
88 | public init(
| `- note: add @available attribute to enclosing initializer
89 | value: Binding<Double>,
90 | in range: ClosedRange<Double> = 0...1,
91 | step: Double.Stride? = nil,
92 | onEditingChanged: @escaping (Bool) -> Void = { _ in }
93 | ) where LowerValueLabel == EmptyView, UpperValueLabel == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
94 | self.__value = value
95 | self.range = range
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:89:16: error: 'Binding' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
86 | }
87 |
88 | public init(
| `- note: add @available attribute to enclosing initializer
89 | value: Binding<Double>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
90 | in range: ClosedRange<Double> = 0...1,
91 | step: Double.Stride? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:101:16: error: 'Binding' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
98 | }
99 |
100 | public init(
| `- note: add @available attribute to enclosing initializer
101 | value: Binding<Double>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
102 | in range: ClosedRange<Double> = 0...1,
103 | step: Double.Stride? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:116:27: error: 'View' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:147:6: error: 'State' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
145 | }
146 |
147 | @State private var isEditing = false
| `- error: 'State' is only available in macOS 10.15 or newer
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:149:43: error: 'GeometryProxy' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
147 | @State private var isEditing = false
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
150 | DragGesture()
151 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:149:66: error: 'Gesture' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
147 | @State private var isEditing = false
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
150 | DragGesture()
151 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:53:45: error: 'View' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:53:68: error: 'View' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:16:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
17 | var showSliderStep: Bool {
18 | get { self[ShowSliderStep.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:30:57: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| `- note: add @available attribute to enclosing extension
24 | /// Show step markers on the slider's track.
25 | ///
:
28 | /// > Important: Only has an effect if the `step` parameter is set in the ``BetterSlider/BetterSlider``
29 | /// > or ``BetterSlider/RangeSlider`` initializer.
30 | func showSliderStep(_ enabled: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
31 | environment(\.showSliderStep, enabled)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:23:18: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
24 | /// Show step markers on the slider's track.
25 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:41:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
42 | var sliderTrackHeight: Double {
43 | get { self[SliderTrackHeightKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:52:54: error: 'View' is only available in macOS 10.15 or newer
46 | }
47 |
48 | public extension View {
| `- note: add @available attribute to enclosing extension
49 | /// Set the height of the slider's track.
50 | ///
51 | /// - Parameter height: The height of the slider's track. The default value is `4`.
52 | func sliderTrackHeight(_ height: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | environment(\.sliderTrackHeight, height)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:48:18: error: 'View' is only available in macOS 10.15 or newer
46 | }
47 |
48 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
49 | /// Set the height of the slider's track.
50 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:63:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
61 | }
62 |
63 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
64 | var sliderHandleSize: Double {
65 | get { self[SliderHandleSize.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:74:51: error: 'View' is only available in macOS 10.15 or newer
68 | }
69 |
70 | public extension View {
| `- note: add @available attribute to enclosing extension
71 | /// Set the size of the slider's handle.
72 | ///
73 | /// - Parameter size: The size of the slider's handle. The default value is `28`.
74 | func sliderHandleSize(_ size: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
75 | environment(\.sliderHandleSize, size)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:70:18: error: 'View' is only available in macOS 10.15 or newer
68 | }
69 |
70 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
71 | /// Set the size of the slider's handle.
72 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:82:31: error: 'Color' is only available in macOS 10.15 or newer
79 | // MARK: Handle Color
80 |
81 | struct SliderHandleColor: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
82 | static let defaultValue: (Color, Color) = (.white, .white)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:82:38: error: 'Color' is only available in macOS 10.15 or newer
79 | // MARK: Handle Color
80 |
81 | struct SliderHandleColor: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
82 | static let defaultValue: (Color, Color) = (.white, .white)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:82:49: error: 'white' is only available in macOS 10.15 or newer
79 | // MARK: Handle Color
80 |
81 | struct SliderHandleColor: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
82 | static let defaultValue: (Color, Color) = (.white, .white)
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:82:57: error: 'white' is only available in macOS 10.15 or newer
79 | // MARK: Handle Color
80 |
81 | struct SliderHandleColor: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
82 | static let defaultValue: (Color, Color) = (.white, .white)
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:86:29: error: 'Color' is only available in macOS 10.15 or newer
83 | }
84 |
85 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
86 | var sliderHandleColor: (Color, Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
87 | get { self[SliderHandleColor.self] }
88 | set { self[SliderHandleColor.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:86:36: error: 'Color' is only available in macOS 10.15 or newer
83 | }
84 |
85 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
86 | var sliderHandleColor: (Color, Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
87 | get { self[SliderHandleColor.self] }
88 | set { self[SliderHandleColor.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:85:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
83 | }
84 |
85 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
86 | var sliderHandleColor: (Color, Color) {
87 | get { self[SliderHandleColor.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:99:37: error: 'Color' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
97 | /// > Important: If you want to set different colors for the lower and upper handles of
98 | /// > a ``BetterSlider/RangeSlider``, use the ``SwiftUI/View/sliderHandleColor(lower:upper:)`` method.
99 | func sliderHandleColor(_ color: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
100 | environment(\.sliderHandleColor, (color, color))
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:99:52: error: 'View' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
97 | /// > Important: If you want to set different colors for the lower and upper handles of
98 | /// > a ``BetterSlider/RangeSlider``, use the ``SwiftUI/View/sliderHandleColor(lower:upper:)`` method.
99 | func sliderHandleColor(_ color: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
100 | environment(\.sliderHandleColor, (color, color))
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:111:35: error: 'Color' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
109 | /// > Important: Only has an effect if the slider is a ``BetterSlider/RangeSlider``.
110 | /// > Otherwise the `lower` color will be used for the single handle.
111 | func sliderHandleColor(lower: Color, upper: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
112 | environment(\.sliderHandleColor, (lower, upper))
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:111:49: error: 'Color' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
109 | /// > Important: Only has an effect if the slider is a ``BetterSlider/RangeSlider``.
110 | /// > Otherwise the `lower` color will be used for the single handle.
111 | func sliderHandleColor(lower: Color, upper: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
112 | environment(\.sliderHandleColor, (lower, upper))
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:111:64: error: 'View' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
109 | /// > Important: Only has an effect if the slider is a ``BetterSlider/RangeSlider``.
110 | /// > Otherwise the `lower` color will be used for the single handle.
111 | func sliderHandleColor(lower: Color, upper: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
112 | environment(\.sliderHandleColor, (lower, upper))
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:92:18: error: 'View' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:119:30: error: 'Color' is only available in macOS 10.15 or newer
116 | // MARK: Track Color
117 |
118 | struct SliderTrackColor: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
119 | static let defaultValue: Color = Color(uiColor: .init(dynamicProvider: { traits in
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
120 | switch traits.userInterfaceStyle {
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:121:21: error: cannot find 'UIColor' in scope
119 | static let defaultValue: Color = Color(uiColor: .init(dynamicProvider: { traits in
120 | switch traits.userInterfaceStyle {
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
| `- error: cannot find 'UIColor' in scope
122 | default: UIColor(red: 228.0/255, green: 228.0/255, blue: 230.0/255, alpha: 1)
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:122:18: error: cannot find 'UIColor' in scope
120 | switch traits.userInterfaceStyle {
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
122 | default: UIColor(red: 228.0/255, green: 228.0/255, blue: 230.0/255, alpha: 1)
| `- error: cannot find 'UIColor' in scope
123 | }
124 | }))
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:119:43: error: extraneous argument label 'uiColor:' in call
117 |
118 | struct SliderTrackColor: EnvironmentKey {
119 | static let defaultValue: Color = Color(uiColor: .init(dynamicProvider: { traits in
| `- error: extraneous argument label 'uiColor:' in call
120 | switch traits.userInterfaceStyle {
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:119:59: error: missing argument for parameter 'name' in call
117 |
118 | struct SliderTrackColor: EnvironmentKey {
119 | static let defaultValue: Color = Color(uiColor: .init(dynamicProvider: { traits in
| `- error: missing argument for parameter 'name' in call
120 | switch traits.userInterfaceStyle {
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
AppKit.NSColor:59:30: note: 'init(name:dynamicProvider:)' declared here
57 | open class func colorNamed(_ name: NSColor.Name) -> NSColor?
58 | @available(macOS 10.15, *)
59 | public /*not inherited*/ init(name colorName: NSColor.Name?, dynamicProvider: @escaping (NSAppearance) -> NSColor)
| `- note: 'init(name:dynamicProvider:)' declared here
60 | @available(macOS 10.15, *)
61 | @available(*, unavailable, renamed: "init(name:dynamicProvider:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:120:23: error: value of type 'NSAppearance' has no member 'userInterfaceStyle'
118 | struct SliderTrackColor: EnvironmentKey {
119 | static let defaultValue: Color = Color(uiColor: .init(dynamicProvider: { traits in
120 | switch traits.userInterfaceStyle {
| `- error: value of type 'NSAppearance' has no member 'userInterfaceStyle'
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
122 | default: UIColor(red: 228.0/255, green: 228.0/255, blue: 230.0/255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:128:27: error: 'Color' is only available in macOS 10.15 or newer
125 | }
126 |
127 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
128 | var sliderTrackColor: Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
129 | get { self[SliderTrackColor.self] }
130 | set { self[SliderTrackColor.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:127:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
125 | }
126 |
127 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
128 | var sliderTrackColor: Color {
129 | get { self[SliderTrackColor.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:139:36: error: 'Color' is only available in macOS 10.15 or newer
132 | }
133 |
134 | public extension View {
| `- note: add @available attribute to enclosing extension
135 | /// Set the color of the slider's track.
136 | ///
137 | /// - Parameter color: The color of the slider's track. The default color is the same
138 | /// used by the system's `Slider`.
139 | func sliderTrackColor(_ color: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
140 | environment(\.sliderTrackColor, color)
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:139:51: error: 'View' is only available in macOS 10.15 or newer
132 | }
133 |
134 | public extension View {
| `- note: add @available attribute to enclosing extension
135 | /// Set the color of the slider's track.
136 | ///
137 | /// - Parameter color: The color of the slider's track. The default color is the same
138 | /// used by the system's `Slider`.
139 | func sliderTrackColor(_ color: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
140 | environment(\.sliderTrackColor, color)
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:134:18: error: 'View' is only available in macOS 10.15 or newer
132 | }
133 |
134 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
135 | /// Set the color of the slider's track.
136 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:150:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
148 | }
149 |
150 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
151 | var sliderStepHeight: Double? {
152 | get { self[SliderStepHeight.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:164:51: error: 'View' is only available in macOS 10.15 or newer
155 | }
156 |
157 | public extension View {
| `- note: add @available attribute to enclosing extension
158 | /// Set the height of the slider's step markers.
159 | ///
:
162 | /// > Important: Only has an effect if the `step` parameter is set in the ``BetterSlider/BetterSlider``
163 | /// > or ``BetterSlider/RangeSlider`` initializer.
164 | func sliderStepHeight(_ size: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
165 | environment(\.sliderStepHeight, size)
166 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:157:18: error: 'View' is only available in macOS 10.15 or newer
155 | }
156 |
157 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
158 | /// Set the height of the slider's step markers.
159 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:175:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
173 | }
174 |
175 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
176 | var hapticFeedbackEnabled: Bool {
177 | get { self[HapticFeedbackEnabled.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:186:57: error: 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | public extension View {
| `- note: add @available attribute to enclosing extension
183 | /// Enable haptic feedback for the slider.
184 | ///
185 | /// - Parameter enabled: A boolean value that indicates whether to enable haptic feedback.
186 | func hapticFeedback(_ enabled: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
187 | environment(\.hapticFeedbackEnabled, enabled)
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:182:18: error: 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
183 | /// Enable haptic feedback for the slider.
184 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:11:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 |
13 | let offset: Double
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
12 |
13 | let offset: Double
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | Circle()
17 | .frame(width: sliderHandleSize)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/SensoryFeedbackModifier.swift:16:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | @ViewBuilder
12 | func customSensoryFeedback<Value: Equatable>(
| `- note: add @available attribute to enclosing instance method
13 | value: Value,
14 | isEditing: Bool,
15 | enabled: Bool
16 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
17 | if !enabled {
18 | self
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/SensoryFeedbackModifier.swift:11:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 | func customSensoryFeedback<Value: Equatable>(
| `- note: add @available attribute to enclosing instance method
13 | value: Value,
14 | isEditing: Bool,
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/SensoryFeedbackModifier.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | @ViewBuilder
12 | func customSensoryFeedback<Value: Equatable>(
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 | @Environment(\.sliderTrackColor) private var sliderTrackColor
14 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:13:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
13 | @Environment(\.sliderTrackColor) private var sliderTrackColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
14 |
15 | let step: Double.Stride?
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:42:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:62:6: error: 'Environment' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
| `- error: 'Environment' is only available in macOS 10.15 or newer
63 | @Environment(\.sliderTrackColor) private var sliderTrackColor
64 | @Environment(\.sliderHandleSize) private var sliderHandleSize
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:63:6: error: 'Environment' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
63 | @Environment(\.sliderTrackColor) private var sliderTrackColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
64 | @Environment(\.sliderHandleSize) private var sliderHandleSize
65 | @Environment(\.sliderStepHeight) private var sliderStepHeight
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:64:6: error: 'Environment' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
63 | @Environment(\.sliderTrackColor) private var sliderTrackColor
64 | @Environment(\.sliderHandleSize) private var sliderHandleSize
| `- error: 'Environment' is only available in macOS 10.15 or newer
65 | @Environment(\.sliderStepHeight) private var sliderStepHeight
66 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:65:6: error: 'Environment' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
63 | @Environment(\.sliderTrackColor) private var sliderTrackColor
64 | @Environment(\.sliderHandleSize) private var sliderHandleSize
65 | @Environment(\.sliderStepHeight) private var sliderStepHeight
| `- error: 'Environment' is only available in macOS 10.15 or newer
66 |
67 | let step: Double.Stride?
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:71:20: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:70:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
68 | let range: ClosedRange<Double>
69 |
70 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
71 | var body: some View {
72 | if let step, showSliderStep {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:37:6: error: 'Environment' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
| `- error: 'Environment' is only available in macOS 10.15 or newer
38 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
39 | @Environment(\.sliderStepHeight) private var sliderStepHeight
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:38:6: error: 'Environment' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
38 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
| `- error: 'Environment' is only available in macOS 10.15 or newer
39 | @Environment(\.sliderStepHeight) private var sliderStepHeight
40 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:39:6: error: 'Environment' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
38 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
39 | @Environment(\.sliderStepHeight) private var sliderStepHeight
| `- error: 'Environment' is only available in macOS 10.15 or newer
40 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
41 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:40:6: error: 'Environment' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
38 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
39 | @Environment(\.sliderStepHeight) private var sliderStepHeight
40 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
41 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
42 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:41:6: error: 'Environment' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
39 | @Environment(\.sliderStepHeight) private var sliderStepHeight
40 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
41 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
42 |
43 | @Binding private var _selection: ClosedRange<Double>
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:43:6: error: 'Binding' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
41 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
42 |
43 | @Binding private var _selection: ClosedRange<Double>
| `- error: 'Binding' is only available in macOS 10.15 or newer
44 | private let range: ClosedRange<Double>
45 | private let step: Double.Stride?
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:55:32: error: 'EmptyView' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
48 | private var maximumValueLabel: UpperValueLabel?
49 |
50 | public init(
| `- note: add @available attribute to enclosing initializer
51 | selection: Binding<ClosedRange<Double>>,
52 | in range: ClosedRange<Double> = 0...1,
53 | step: Double.Stride? = nil,
54 | onEditingChanged: @escaping (Bool) -> Void = { _ in }
55 | ) where LowerValueLabel == EmptyView, UpperValueLabel == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
56 | self.__selection = selection
57 | self.range = range
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:55:62: error: 'EmptyView' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
48 | private var maximumValueLabel: UpperValueLabel?
49 |
50 | public init(
| `- note: add @available attribute to enclosing initializer
51 | selection: Binding<ClosedRange<Double>>,
52 | in range: ClosedRange<Double> = 0...1,
53 | step: Double.Stride? = nil,
54 | onEditingChanged: @escaping (Bool) -> Void = { _ in }
55 | ) where LowerValueLabel == EmptyView, UpperValueLabel == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
56 | self.__selection = selection
57 | self.range = range
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:51:20: error: 'Binding' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
48 | private var maximumValueLabel: UpperValueLabel?
49 |
50 | public init(
| `- note: add @available attribute to enclosing initializer
51 | selection: Binding<ClosedRange<Double>>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
52 | in range: ClosedRange<Double> = 0...1,
53 | step: Double.Stride? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:63:20: error: 'Binding' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
60 | }
61 |
62 | public init(
| `- note: add @available attribute to enclosing initializer
63 | selection: Binding<ClosedRange<Double>>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
64 | in range: ClosedRange<Double> = 0...1,
65 | step: Double.Stride? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:78:28: error: 'Binding' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
76 | }
77 |
78 | private var selection: Binding<ClosedRange<Double>> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
79 | Binding {
80 | _selection.clamped(to: range)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:106:27: error: 'View' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
104 | }
105 |
106 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
107 | HStack {
108 | if let minimumValueLabel {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:147:6: error: 'State' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
145 | }
146 |
147 | @State private var isEditing = false
| `- error: 'State' is only available in macOS 10.15 or newer
148 | @State private var initialSelection: ClosedRange<Double>?
149 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:148:6: error: 'State' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
146 |
147 | @State private var isEditing = false
148 | @State private var initialSelection: ClosedRange<Double>?
| `- error: 'State' is only available in macOS 10.15 or newer
149 |
150 | private func dragGesture(in geometry: GeometryProxy, at index: Index) -> some Gesture {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:150:43: error: 'GeometryProxy' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
148 | @State private var initialSelection: ClosedRange<Double>?
149 |
150 | private func dragGesture(in geometry: GeometryProxy, at index: Index) -> some Gesture {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
151 | DragGesture()
152 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:150:83: error: 'Gesture' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
:
148 | @State private var initialSelection: ClosedRange<Double>?
149 |
150 | private func dragGesture(in geometry: GeometryProxy, at index: Index) -> some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
151 | DragGesture()
152 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:35:44: error: 'View' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/RangeSlider.swift:35:67: error: 'View' is only available in macOS 10.15 or newer
33 | /// See ``SwiftUI/View`` for all available customizations.
34 | ///
35 | public struct RangeSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
36 |
37 | @Environment(\.sliderHandleSize) private var sliderHandleSize
[6/9] Compiling BetterSlider EnvironmentValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:16:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
17 | var showSliderStep: Bool {
18 | get { self[ShowSliderStep.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:30:57: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| `- note: add @available attribute to enclosing extension
24 | /// Show step markers on the slider's track.
25 | ///
:
28 | /// > Important: Only has an effect if the `step` parameter is set in the ``BetterSlider/BetterSlider``
29 | /// > or ``BetterSlider/RangeSlider`` initializer.
30 | func showSliderStep(_ enabled: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
31 | environment(\.showSliderStep, enabled)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:23:18: error: 'View' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
24 | /// Show step markers on the slider's track.
25 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:41:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
42 | var sliderTrackHeight: Double {
43 | get { self[SliderTrackHeightKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:52:54: error: 'View' is only available in macOS 10.15 or newer
46 | }
47 |
48 | public extension View {
| `- note: add @available attribute to enclosing extension
49 | /// Set the height of the slider's track.
50 | ///
51 | /// - Parameter height: The height of the slider's track. The default value is `4`.
52 | func sliderTrackHeight(_ height: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | environment(\.sliderTrackHeight, height)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:48:18: error: 'View' is only available in macOS 10.15 or newer
46 | }
47 |
48 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
49 | /// Set the height of the slider's track.
50 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:63:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
61 | }
62 |
63 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
64 | var sliderHandleSize: Double {
65 | get { self[SliderHandleSize.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:74:51: error: 'View' is only available in macOS 10.15 or newer
68 | }
69 |
70 | public extension View {
| `- note: add @available attribute to enclosing extension
71 | /// Set the size of the slider's handle.
72 | ///
73 | /// - Parameter size: The size of the slider's handle. The default value is `28`.
74 | func sliderHandleSize(_ size: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
75 | environment(\.sliderHandleSize, size)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:70:18: error: 'View' is only available in macOS 10.15 or newer
68 | }
69 |
70 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
71 | /// Set the size of the slider's handle.
72 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:82:31: error: 'Color' is only available in macOS 10.15 or newer
79 | // MARK: Handle Color
80 |
81 | struct SliderHandleColor: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
82 | static let defaultValue: (Color, Color) = (.white, .white)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:82:38: error: 'Color' is only available in macOS 10.15 or newer
79 | // MARK: Handle Color
80 |
81 | struct SliderHandleColor: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
82 | static let defaultValue: (Color, Color) = (.white, .white)
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:82:49: error: 'white' is only available in macOS 10.15 or newer
79 | // MARK: Handle Color
80 |
81 | struct SliderHandleColor: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
82 | static let defaultValue: (Color, Color) = (.white, .white)
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:82:57: error: 'white' is only available in macOS 10.15 or newer
79 | // MARK: Handle Color
80 |
81 | struct SliderHandleColor: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
82 | static let defaultValue: (Color, Color) = (.white, .white)
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:86:29: error: 'Color' is only available in macOS 10.15 or newer
83 | }
84 |
85 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
86 | var sliderHandleColor: (Color, Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
87 | get { self[SliderHandleColor.self] }
88 | set { self[SliderHandleColor.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:86:36: error: 'Color' is only available in macOS 10.15 or newer
83 | }
84 |
85 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
86 | var sliderHandleColor: (Color, Color) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
87 | get { self[SliderHandleColor.self] }
88 | set { self[SliderHandleColor.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:85:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
83 | }
84 |
85 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
86 | var sliderHandleColor: (Color, Color) {
87 | get { self[SliderHandleColor.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:99:37: error: 'Color' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
97 | /// > Important: If you want to set different colors for the lower and upper handles of
98 | /// > a ``BetterSlider/RangeSlider``, use the ``SwiftUI/View/sliderHandleColor(lower:upper:)`` method.
99 | func sliderHandleColor(_ color: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
100 | environment(\.sliderHandleColor, (color, color))
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:99:52: error: 'View' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
97 | /// > Important: If you want to set different colors for the lower and upper handles of
98 | /// > a ``BetterSlider/RangeSlider``, use the ``SwiftUI/View/sliderHandleColor(lower:upper:)`` method.
99 | func sliderHandleColor(_ color: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
100 | environment(\.sliderHandleColor, (color, color))
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:111:35: error: 'Color' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
109 | /// > Important: Only has an effect if the slider is a ``BetterSlider/RangeSlider``.
110 | /// > Otherwise the `lower` color will be used for the single handle.
111 | func sliderHandleColor(lower: Color, upper: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
112 | environment(\.sliderHandleColor, (lower, upper))
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:111:49: error: 'Color' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
109 | /// > Important: Only has an effect if the slider is a ``BetterSlider/RangeSlider``.
110 | /// > Otherwise the `lower` color will be used for the single handle.
111 | func sliderHandleColor(lower: Color, upper: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
112 | environment(\.sliderHandleColor, (lower, upper))
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:111:64: error: 'View' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
109 | /// > Important: Only has an effect if the slider is a ``BetterSlider/RangeSlider``.
110 | /// > Otherwise the `lower` color will be used for the single handle.
111 | func sliderHandleColor(lower: Color, upper: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
112 | environment(\.sliderHandleColor, (lower, upper))
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:92:18: error: 'View' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:119:30: error: 'Color' is only available in macOS 10.15 or newer
116 | // MARK: Track Color
117 |
118 | struct SliderTrackColor: EnvironmentKey {
| `- note: add @available attribute to enclosing struct
119 | static let defaultValue: Color = Color(uiColor: .init(dynamicProvider: { traits in
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
120 | switch traits.userInterfaceStyle {
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:121:21: error: cannot find 'UIColor' in scope
119 | static let defaultValue: Color = Color(uiColor: .init(dynamicProvider: { traits in
120 | switch traits.userInterfaceStyle {
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
| `- error: cannot find 'UIColor' in scope
122 | default: UIColor(red: 228.0/255, green: 228.0/255, blue: 230.0/255, alpha: 1)
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:122:18: error: cannot find 'UIColor' in scope
120 | switch traits.userInterfaceStyle {
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
122 | default: UIColor(red: 228.0/255, green: 228.0/255, blue: 230.0/255, alpha: 1)
| `- error: cannot find 'UIColor' in scope
123 | }
124 | }))
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:119:43: error: extraneous argument label 'uiColor:' in call
117 |
118 | struct SliderTrackColor: EnvironmentKey {
119 | static let defaultValue: Color = Color(uiColor: .init(dynamicProvider: { traits in
| `- error: extraneous argument label 'uiColor:' in call
120 | switch traits.userInterfaceStyle {
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:119:59: error: missing argument for parameter 'name' in call
117 |
118 | struct SliderTrackColor: EnvironmentKey {
119 | static let defaultValue: Color = Color(uiColor: .init(dynamicProvider: { traits in
| `- error: missing argument for parameter 'name' in call
120 | switch traits.userInterfaceStyle {
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
AppKit.NSColor:59:30: note: 'init(name:dynamicProvider:)' declared here
57 | open class func colorNamed(_ name: NSColor.Name) -> NSColor?
58 | @available(macOS 10.15, *)
59 | public /*not inherited*/ init(name colorName: NSColor.Name?, dynamicProvider: @escaping (NSAppearance) -> NSColor)
| `- note: 'init(name:dynamicProvider:)' declared here
60 | @available(macOS 10.15, *)
61 | @available(*, unavailable, renamed: "init(name:dynamicProvider:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:120:23: error: value of type 'NSAppearance' has no member 'userInterfaceStyle'
118 | struct SliderTrackColor: EnvironmentKey {
119 | static let defaultValue: Color = Color(uiColor: .init(dynamicProvider: { traits in
120 | switch traits.userInterfaceStyle {
| `- error: value of type 'NSAppearance' has no member 'userInterfaceStyle'
121 | case .dark: UIColor(red: 61.0/255, green: 61.0/255, blue: 65.0/255, alpha: 1)
122 | default: UIColor(red: 228.0/255, green: 228.0/255, blue: 230.0/255, alpha: 1)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:128:27: error: 'Color' is only available in macOS 10.15 or newer
125 | }
126 |
127 | extension EnvironmentValues {
| `- note: add @available attribute to enclosing extension
128 | var sliderTrackColor: Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
129 | get { self[SliderTrackColor.self] }
130 | set { self[SliderTrackColor.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:127:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
125 | }
126 |
127 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
128 | var sliderTrackColor: Color {
129 | get { self[SliderTrackColor.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:139:36: error: 'Color' is only available in macOS 10.15 or newer
132 | }
133 |
134 | public extension View {
| `- note: add @available attribute to enclosing extension
135 | /// Set the color of the slider's track.
136 | ///
137 | /// - Parameter color: The color of the slider's track. The default color is the same
138 | /// used by the system's `Slider`.
139 | func sliderTrackColor(_ color: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
140 | environment(\.sliderTrackColor, color)
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:139:51: error: 'View' is only available in macOS 10.15 or newer
132 | }
133 |
134 | public extension View {
| `- note: add @available attribute to enclosing extension
135 | /// Set the color of the slider's track.
136 | ///
137 | /// - Parameter color: The color of the slider's track. The default color is the same
138 | /// used by the system's `Slider`.
139 | func sliderTrackColor(_ color: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
140 | environment(\.sliderTrackColor, color)
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:134:18: error: 'View' is only available in macOS 10.15 or newer
132 | }
133 |
134 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
135 | /// Set the color of the slider's track.
136 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:150:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
148 | }
149 |
150 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
151 | var sliderStepHeight: Double? {
152 | get { self[SliderStepHeight.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:164:51: error: 'View' is only available in macOS 10.15 or newer
155 | }
156 |
157 | public extension View {
| `- note: add @available attribute to enclosing extension
158 | /// Set the height of the slider's step markers.
159 | ///
:
162 | /// > Important: Only has an effect if the `step` parameter is set in the ``BetterSlider/BetterSlider``
163 | /// > or ``BetterSlider/RangeSlider`` initializer.
164 | func sliderStepHeight(_ size: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
165 | environment(\.sliderStepHeight, size)
166 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:157:18: error: 'View' is only available in macOS 10.15 or newer
155 | }
156 |
157 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
158 | /// Set the height of the slider's step markers.
159 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:175:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
173 | }
174 |
175 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
176 | var hapticFeedbackEnabled: Bool {
177 | get { self[HapticFeedbackEnabled.self] }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:186:57: error: 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | public extension View {
| `- note: add @available attribute to enclosing extension
183 | /// Enable haptic feedback for the slider.
184 | ///
185 | /// - Parameter enabled: A boolean value that indicates whether to enable haptic feedback.
186 | func hapticFeedback(_ enabled: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
187 | environment(\.hapticFeedbackEnabled, enabled)
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:182:18: error: 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
183 | /// Enable haptic feedback for the slider.
184 | ///
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:31:9: error: 'environment' is only available in macOS 10.15 or newer
21 | }
22 |
23 | public extension View {
| `- note: add @available attribute to enclosing extension
24 | /// Show step markers on the slider's track.
25 | ///
:
28 | /// > Important: Only has an effect if the `step` parameter is set in the ``BetterSlider/BetterSlider``
29 | /// > or ``BetterSlider/RangeSlider`` initializer.
30 | func showSliderStep(_ enabled: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
31 | environment(\.showSliderStep, enabled)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:53:9: error: 'environment' is only available in macOS 10.15 or newer
46 | }
47 |
48 | public extension View {
| `- note: add @available attribute to enclosing extension
49 | /// Set the height of the slider's track.
50 | ///
51 | /// - Parameter height: The height of the slider's track. The default value is `4`.
52 | func sliderTrackHeight(_ height: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | environment(\.sliderTrackHeight, height)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:75:9: error: 'environment' is only available in macOS 10.15 or newer
68 | }
69 |
70 | public extension View {
| `- note: add @available attribute to enclosing extension
71 | /// Set the size of the slider's handle.
72 | ///
73 | /// - Parameter size: The size of the slider's handle. The default value is `28`.
74 | func sliderHandleSize(_ size: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
75 | environment(\.sliderHandleSize, size)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:100:9: error: 'environment' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
97 | /// > Important: If you want to set different colors for the lower and upper handles of
98 | /// > a ``BetterSlider/RangeSlider``, use the ``SwiftUI/View/sliderHandleColor(lower:upper:)`` method.
99 | func sliderHandleColor(_ color: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
100 | environment(\.sliderHandleColor, (color, color))
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:112:9: error: 'environment' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension View {
| `- note: add @available attribute to enclosing extension
93 | /// Set the color of the slider's handle.
94 | ///
:
109 | /// > Important: Only has an effect if the slider is a ``BetterSlider/RangeSlider``.
110 | /// > Otherwise the `lower` color will be used for the single handle.
111 | func sliderHandleColor(lower: Color, upper: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
112 | environment(\.sliderHandleColor, (lower, upper))
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | }
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:140:9: error: 'environment' is only available in macOS 10.15 or newer
132 | }
133 |
134 | public extension View {
| `- note: add @available attribute to enclosing extension
135 | /// Set the color of the slider's track.
136 | ///
137 | /// - Parameter color: The color of the slider's track. The default color is the same
138 | /// used by the system's `Slider`.
139 | func sliderTrackColor(_ color: Color) -> some View {
| `- note: add @available attribute to enclosing instance method
140 | environment(\.sliderTrackColor, color)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:165:9: error: 'environment' is only available in macOS 10.15 or newer
155 | }
156 |
157 | public extension View {
| `- note: add @available attribute to enclosing extension
158 | /// Set the height of the slider's step markers.
159 | ///
:
162 | /// > Important: Only has an effect if the `step` parameter is set in the ``BetterSlider/BetterSlider``
163 | /// > or ``BetterSlider/RangeSlider`` initializer.
164 | func sliderStepHeight(_ size: Double) -> some View {
| `- note: add @available attribute to enclosing instance method
165 | environment(\.sliderStepHeight, size)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 | }
167 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Environment/EnvironmentValues.swift:187:9: error: 'environment' is only available in macOS 10.15 or newer
180 | }
181 |
182 | public extension View {
| `- note: add @available attribute to enclosing extension
183 | /// Enable haptic feedback for the slider.
184 | ///
185 | /// - Parameter enabled: A boolean value that indicates whether to enable haptic feedback.
186 | func hapticFeedback(_ enabled: Bool = true) -> some View {
| `- note: add @available attribute to enclosing instance method
187 | environment(\.hapticFeedbackEnabled, enabled)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | }
189 | }
[7/9] Compiling BetterSlider TrackView.swift
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 | @Environment(\.sliderTrackColor) private var sliderTrackColor
14 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:13:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
13 | @Environment(\.sliderTrackColor) private var sliderTrackColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
14 |
15 | let step: Double.Stride?
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:42:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:62:6: error: 'Environment' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
| `- error: 'Environment' is only available in macOS 10.15 or newer
63 | @Environment(\.sliderTrackColor) private var sliderTrackColor
64 | @Environment(\.sliderHandleSize) private var sliderHandleSize
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:63:6: error: 'Environment' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
63 | @Environment(\.sliderTrackColor) private var sliderTrackColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
64 | @Environment(\.sliderHandleSize) private var sliderHandleSize
65 | @Environment(\.sliderStepHeight) private var sliderStepHeight
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:64:6: error: 'Environment' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
63 | @Environment(\.sliderTrackColor) private var sliderTrackColor
64 | @Environment(\.sliderHandleSize) private var sliderHandleSize
| `- error: 'Environment' is only available in macOS 10.15 or newer
65 | @Environment(\.sliderStepHeight) private var sliderStepHeight
66 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:65:6: error: 'Environment' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
63 | @Environment(\.sliderTrackColor) private var sliderTrackColor
64 | @Environment(\.sliderHandleSize) private var sliderHandleSize
65 | @Environment(\.sliderStepHeight) private var sliderStepHeight
| `- error: 'Environment' is only available in macOS 10.15 or newer
66 |
67 | let step: Double.Stride?
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:71:20: error: 'View' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:70:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
68 | let range: ClosedRange<Double>
69 |
70 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
71 | var body: some View {
72 | if let step, showSliderStep {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:43:9: error: 'ZStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | StepMarksView(step: step, range: range)
45 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:45:13: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
45 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | .frame(height: sliderTrackHeight)
47 | .foregroundStyle(sliderTrackColor)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:46:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
45 | Rectangle()
46 | .frame(height: sliderTrackHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .foregroundStyle(sliderTrackColor)
48 | .overlay(alignment: .leading) {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:47:18: error: 'foregroundStyle' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
45 | Rectangle()
46 | .frame(height: sliderTrackHeight)
47 | .foregroundStyle(sliderTrackColor)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
48 | .overlay(alignment: .leading) {
49 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:48:18: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
:
46 | .frame(height: sliderTrackHeight)
47 | .foregroundStyle(sliderTrackColor)
48 | .overlay(alignment: .leading) {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
49 | Rectangle()
50 | .foregroundStyle(.tint)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:48:38: error: 'leading' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
:
46 | .frame(height: sliderTrackHeight)
47 | .foregroundStyle(sliderTrackColor)
48 | .overlay(alignment: .leading) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | Rectangle()
50 | .foregroundStyle(.tint)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:49:21: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
:
47 | .foregroundStyle(sliderTrackColor)
48 | .overlay(alignment: .leading) {
49 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .foregroundStyle(.tint)
51 | .padding(.trailing, offsetTrailing)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:50:26: error: 'foregroundStyle' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
:
48 | .overlay(alignment: .leading) {
49 | Rectangle()
50 | .foregroundStyle(.tint)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
51 | .padding(.trailing, offsetTrailing)
52 | .padding(.leading, offsetLeading)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:50:43: error: 'tint' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
:
48 | .overlay(alignment: .leading) {
49 | Rectangle()
50 | .foregroundStyle(.tint)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
51 | .padding(.trailing, offsetTrailing)
52 | .padding(.leading, offsetLeading)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:51:26: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
:
49 | Rectangle()
50 | .foregroundStyle(.tint)
51 | .padding(.trailing, offsetTrailing)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .padding(.leading, offsetLeading)
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:52:26: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
:
50 | .foregroundStyle(.tint)
51 | .padding(.trailing, offsetTrailing)
52 | .padding(.leading, offsetLeading)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | }
54 | .clipShape(Capsule(style: .circular))
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:54:18: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
:
52 | .padding(.leading, offsetLeading)
53 | }
54 | .clipShape(Capsule(style: .circular))
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .padding(.horizontal, 1)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:54:28: error: 'Capsule' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
:
52 | .padding(.leading, offsetLeading)
53 | }
54 | .clipShape(Capsule(style: .circular))
| |- error: 'Capsule' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .padding(.horizontal, 1)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:55:18: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct TrackView: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | StepMarksView(step: step, range: range)
:
53 | }
54 | .clipShape(Capsule(style: .circular))
55 | .padding(.horizontal, 1)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:73:13: error: 'HStack' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
75 | if value != 0 {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:73:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
75 | if value != 0 {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:74:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
75 | if value != 0 {
76 | Spacer(minLength: 0)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:74:17: error: 'ForEach' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | if value != 0 {
76 | Spacer(minLength: 0)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:74:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | if value != 0 {
76 | Spacer(minLength: 0)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:76:25: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
75 | if value != 0 {
76 | Spacer(minLength: 0)
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
77 | }
78 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:76:25: error: 'Spacer' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
75 | if value != 0 {
76 | Spacer(minLength: 0)
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:75:35: error: 'buildIf' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
75 | if value != 0 {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | Spacer(minLength: 0)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:75:35: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
75 | if value != 0 {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
76 | Spacer(minLength: 0)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:77:21: error: 'buildIf' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
75 | if value != 0 {
76 | Spacer(minLength: 0)
77 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | VStack {
79 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:78:21: error: 'VStack' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
76 | Spacer(minLength: 0)
77 | }
78 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | Capsule()
80 | .frame(width: 2)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:79:25: error: 'Capsule' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
77 | }
78 | VStack {
79 | Capsule()
| |- error: 'Capsule' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .frame(width: 2)
81 | .foregroundStyle(sliderTrackColor)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:80:30: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
78 | VStack {
79 | Capsule()
80 | .frame(width: 2)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .foregroundStyle(sliderTrackColor)
82 | .frame(height: sliderStepHeight ?? (sliderHandleSize * 0.8))
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:81:30: error: 'foregroundStyle' is only available in macOS 12.0 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
79 | Capsule()
80 | .frame(width: 2)
81 | .foregroundStyle(sliderTrackColor)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
82 | .frame(height: sliderStepHeight ?? (sliderHandleSize * 0.8))
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:82:30: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
80 | .frame(width: 2)
81 | .foregroundStyle(sliderTrackColor)
82 | .frame(height: sliderStepHeight ?? (sliderHandleSize * 0.8))
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | if value < Int((range.upperBound - range.lowerBound) / step) {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:85:25: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
83 | }
84 | if value < Int((range.upperBound - range.lowerBound) / step) {
85 | Spacer(minLength: 0)
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:85:25: error: 'Spacer' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
83 | }
84 | if value < Int((range.upperBound - range.lowerBound) / step) {
85 | Spacer(minLength: 0)
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:84:82: error: 'buildIf' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
82 | .frame(height: sliderStepHeight ?? (sliderHandleSize * 0.8))
83 | }
84 | if value < Int((range.upperBound - range.lowerBound) / step) {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | Spacer(minLength: 0)
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:84:82: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
82 | .frame(height: sliderStepHeight ?? (sliderHandleSize * 0.8))
83 | }
84 | if value < Int((range.upperBound - range.lowerBound) / step) {
| |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
85 | Spacer(minLength: 0)
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:86:21: error: 'buildIf' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
84 | if value < Int((range.upperBound - range.lowerBound) / step) {
85 | Spacer(minLength: 0)
86 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:74:92: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
75 | if value != 0 {
76 | Spacer(minLength: 0)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:74:92: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
75 | if value != 0 {
76 | Spacer(minLength: 0)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:73:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
75 | if value != 0 {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:89:14: error: 'padding' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
87 | }
88 | }
89 | .padding(.horizontal, sliderHandleSize / 2)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:72:37: error: 'buildIf' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | HStack(spacing: 0) {
74 | ForEach(0...Int((range.upperBound - range.lowerBound) / step), id: \.self) { value in
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:90:9: error: 'buildIf' is only available in macOS 10.15 or newer
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
:
88 | }
89 | .padding(.horizontal, sliderHandleSize / 2)
90 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | }
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/TrackView.swift:71:25: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
58 | }
59 |
60 | struct StepMarksView: View {
| `- note: add @available attribute to enclosing struct
61 |
62 | @Environment(\.showSliderStep) private var showSliderStep
:
69 |
70 | @ViewBuilder
71 | var body: some View {
| | |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
72 | if let step, showSliderStep {
73 | HStack(spacing: 0) {
[8/9] Compiling BetterSlider BetterSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:55:6: error: 'Environment' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
| `- error: 'Environment' is only available in macOS 10.15 or newer
56 | @Environment(\.sliderHandleSize) private var sliderHandleSize
57 | @Environment(\.sliderStepHeight) private var sliderStepHeight
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:56:6: error: 'Environment' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
56 | @Environment(\.sliderHandleSize) private var sliderHandleSize
| `- error: 'Environment' is only available in macOS 10.15 or newer
57 | @Environment(\.sliderStepHeight) private var sliderStepHeight
58 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:57:6: error: 'Environment' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
56 | @Environment(\.sliderHandleSize) private var sliderHandleSize
57 | @Environment(\.sliderStepHeight) private var sliderStepHeight
| `- error: 'Environment' is only available in macOS 10.15 or newer
58 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
59 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:58:6: error: 'Environment' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
56 | @Environment(\.sliderHandleSize) private var sliderHandleSize
57 | @Environment(\.sliderStepHeight) private var sliderStepHeight
58 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
59 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
60 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:59:6: error: 'Environment' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
57 | @Environment(\.sliderStepHeight) private var sliderStepHeight
58 | @Environment(\.sliderHandleColor) private var sliderHandleStyle
59 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
60 |
61 | @Binding private var _value: Double
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:61:6: error: 'Binding' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
59 | @Environment(\.hapticFeedbackEnabled) private var hapticFeedbackEnabled
60 |
61 | @Binding private var _value: Double
| `- error: 'Binding' is only available in macOS 10.15 or newer
62 | private let range: ClosedRange<Double>
63 | private var step: Double.Stride?
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:80:24: error: 'Binding' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
78 | }
79 |
80 | private var value: Binding<Double> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
81 | Binding {
82 | _value.clamped(to: range)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:93:32: error: 'EmptyView' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
86 | }
87 |
88 | public init(
| `- note: add @available attribute to enclosing initializer
89 | value: Binding<Double>,
90 | in range: ClosedRange<Double> = 0...1,
91 | step: Double.Stride? = nil,
92 | onEditingChanged: @escaping (Bool) -> Void = { _ in }
93 | ) where LowerValueLabel == EmptyView, UpperValueLabel == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
94 | self.__value = value
95 | self.range = range
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:93:62: error: 'EmptyView' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
86 | }
87 |
88 | public init(
| `- note: add @available attribute to enclosing initializer
89 | value: Binding<Double>,
90 | in range: ClosedRange<Double> = 0...1,
91 | step: Double.Stride? = nil,
92 | onEditingChanged: @escaping (Bool) -> Void = { _ in }
93 | ) where LowerValueLabel == EmptyView, UpperValueLabel == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
94 | self.__value = value
95 | self.range = range
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:89:16: error: 'Binding' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
86 | }
87 |
88 | public init(
| `- note: add @available attribute to enclosing initializer
89 | value: Binding<Double>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
90 | in range: ClosedRange<Double> = 0...1,
91 | step: Double.Stride? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:101:16: error: 'Binding' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
98 | }
99 |
100 | public init(
| `- note: add @available attribute to enclosing initializer
101 | value: Binding<Double>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
102 | in range: ClosedRange<Double> = 0...1,
103 | step: Double.Stride? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:116:27: error: 'View' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:147:6: error: 'State' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
145 | }
146 |
147 | @State private var isEditing = false
| `- error: 'State' is only available in macOS 10.15 or newer
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:149:43: error: 'GeometryProxy' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
147 | @State private var isEditing = false
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
150 | DragGesture()
151 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:149:66: error: 'Gesture' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
147 | @State private var isEditing = false
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
150 | DragGesture()
151 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:53:45: error: 'View' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:53:68: error: 'View' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:81:9: error: 'Binding' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
78 | }
79 |
80 | private var value: Binding<Double> {
| `- note: add @available attribute to enclosing property
81 | Binding {
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | _value.clamped(to: range)
83 | } set: { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:84:13: error: setter for '_value' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
78 | }
79 |
80 | private var value: Binding<Double> {
| `- note: add @available attribute to enclosing property
81 | Binding {
82 | _value.clamped(to: range)
83 | } set: { newValue in
84 | _value = newValue.clamped(to: range)
| |- error: setter for '_value' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | }
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:117:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
118 | if let minimumValueLabel {
119 | minimumValueLabel
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:117:9: error: 'HStack' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | if let minimumValueLabel {
119 | minimumValueLabel
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:120:22: error: 'buttonStyle' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
119 | minimumValueLabel
120 | .buttonStyle(.borderless)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | }
122 | GeometryReader { geo in
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:120:35: error: 'borderless' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
119 | minimumValueLabel
120 | .buttonStyle(.borderless)
| |- error: 'borderless' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | }
122 | GeometryReader { geo in
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:118:38: error: 'buildIf' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | minimumValueLabel
120 | .buttonStyle(.borderless)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:121:13: error: 'buildIf' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
119 | minimumValueLabel
120 | .buttonStyle(.borderless)
121 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | GeometryReader { geo in
123 | ZStack(alignment: .leading) {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:122:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
120 | .buttonStyle(.borderless)
121 | }
122 | GeometryReader { geo in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
123 | ZStack(alignment: .leading) {
124 | TrackView(
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:123:17: error: 'ZStack' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
121 | }
122 | GeometryReader { geo in
123 | ZStack(alignment: .leading) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | TrackView(
125 | step: step,
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:123:36: error: 'leading' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
121 | }
122 | GeometryReader { geo in
123 | ZStack(alignment: .leading) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | TrackView(
125 | step: step,
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:130:26: error: 'foregroundStyle' is only available in macOS 12.0 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
128 | )
129 | HandleView(offset: offset(forWidth: geo.size.width))
130 | .foregroundStyle(sliderHandleStyle.0)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
131 | .gesture(dragGesture(in: geo))
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:131:26: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
129 | HandleView(offset: offset(forWidth: geo.size.width))
130 | .foregroundStyle(sliderHandleStyle.0)
131 | .gesture(dragGesture(in: geo))
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:136:22: error: 'buttonStyle' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
134 | if let maximumValueLabel {
135 | maximumValueLabel
136 | .buttonStyle(.borderless)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:136:35: error: 'borderless' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
134 | if let maximumValueLabel {
135 | maximumValueLabel
136 | .buttonStyle(.borderless)
| |- error: 'borderless' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:134:38: error: 'buildIf' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
132 | }
133 | }
134 | if let maximumValueLabel {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
135 | maximumValueLabel
136 | .buttonStyle(.borderless)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:137:13: error: 'buildIf' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
135 | maximumValueLabel
136 | .buttonStyle(.borderless)
137 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | }
139 | .frame(height: max(max(sliderHandleSize, sliderTrackHeight), sliderStepHeight ?? 0))
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:117:16: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
118 | if let minimumValueLabel {
119 | minimumValueLabel
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:117:16: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
118 | if let minimumValueLabel {
119 | minimumValueLabel
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:139:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
137 | }
138 | }
139 | .frame(height: max(max(sliderHandleSize, sliderTrackHeight), sliderStepHeight ?? 0))
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | .onChange(of: isEditing) { newValue in
141 | onEditingChanged(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:140:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
138 | }
139 | .frame(height: max(max(sliderHandleSize, sliderTrackHeight), sliderStepHeight ?? 0))
140 | .onChange(of: isEditing) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
141 | onEditingChanged(newValue)
142 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:144:10: error: 'accessibilityValue' is only available in macOS 11.0 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
142 | }
143 | .customSensoryFeedback(value: value.wrappedValue, isEditing: isEditing, enabled: hapticFeedbackEnabled)
144 | .accessibilityValue(Text(value.wrappedValue, format: .number))
| |- error: 'accessibilityValue' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
145 | }
146 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:144:29: error: 'Text' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
142 | }
143 | .customSensoryFeedback(value: value.wrappedValue, isEditing: isEditing, enabled: hapticFeedbackEnabled)
144 | .accessibilityValue(Text(value.wrappedValue, format: .number))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | }
146 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:144:29: error: 'init(_:format:)' is only available in macOS 12.0 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
142 | }
143 | .customSensoryFeedback(value: value.wrappedValue, isEditing: isEditing, enabled: hapticFeedbackEnabled)
144 | .accessibilityValue(Text(value.wrappedValue, format: .number))
| |- error: 'init(_:format:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
145 | }
146 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:144:63: error: 'number' is only available in macOS 12.0 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
:
142 | }
143 | .customSensoryFeedback(value: value.wrappedValue, isEditing: isEditing, enabled: hapticFeedbackEnabled)
144 | .accessibilityValue(Text(value.wrappedValue, format: .number))
| |- error: 'number' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
145 | }
146 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:116:32: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
114 | }
115 |
116 | public var body: some View {
| | |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
117 | HStack {
118 | if let minimumValueLabel {
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:169:14: warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
147 | @State private var isEditing = false
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
150 | DragGesture()
151 | .onChanged { value in
:
167 | )
168 | }
169 | .onEnded { _ in
| |- warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
170 | isEditing = false
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:150:9: error: 'DragGesture' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
147 | @State private var isEditing = false
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
150 | DragGesture()
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
151 | .onChanged { value in
152 | isEditing = true
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:150:9: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
147 | @State private var isEditing = false
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
150 | DragGesture()
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
151 | .onChanged { value in
152 | isEditing = true
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:151:14: error: 'onChanged' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
147 | @State private var isEditing = false
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
150 | DragGesture()
151 | .onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | isEditing = true
153 | let width = geometry.size.width - sliderHandleSize
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:152:17: error: setter for 'isEditing' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
147 | @State private var isEditing = false
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
150 | DragGesture()
151 | .onChanged { value in
152 | isEditing = true
| |- error: setter for 'isEditing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | let width = geometry.size.width - sliderHandleSize
154 | var offset = (value.location.x - sliderHandleSize / 2) / width
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:169:14: error: 'onEnded' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
147 | @State private var isEditing = false
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
150 | DragGesture()
151 | .onChanged { value in
:
167 | )
168 | }
169 | .onEnded { _ in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | isEditing = false
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/BetterSlider.swift:170:17: error: setter for 'isEditing' is only available in macOS 10.15 or newer
51 | ///
52 | /// > Info: If you want to select a `Range` instead of a single value, use the ``BetterSlider/RangeSlider`` component.
53 | public struct BetterSlider<LowerValueLabel: View, UpperValueLabel: View>: View {
| `- note: add @available attribute to enclosing generic struct
54 |
55 | @Environment(\.sliderTrackHeight) private var sliderTrackHeight
:
147 | @State private var isEditing = false
148 |
149 | private func dragGesture(in geometry: GeometryProxy) -> some Gesture {
| `- note: add @available attribute to enclosing instance method
150 | DragGesture()
151 | .onChanged { value in
:
168 | }
169 | .onEnded { _ in
170 | isEditing = false
| |- error: setter for 'isEditing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
171 | }
172 | }
[9/9] Compiling BetterSlider HandleView.swift
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:11:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 |
13 | let offset: Double
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
12 |
13 | let offset: Double
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | Circle()
17 | .frame(width: sliderHandleSize)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:16:9: error: 'Circle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
12 |
13 | let offset: Double
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | .frame(width: sliderHandleSize)
18 | .shadow(color: .black.opacity(0.18), radius: 3, x: 0, y: 2.5)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:17:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
12 |
13 | let offset: Double
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Circle()
17 | .frame(width: sliderHandleSize)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .shadow(color: .black.opacity(0.18), radius: 3, x: 0, y: 2.5)
19 | .shadow(color: .black.opacity(0.05), radius: 2, x: 0, y: 0)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:18:14: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
12 |
13 | let offset: Double
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Circle()
17 | .frame(width: sliderHandleSize)
18 | .shadow(color: .black.opacity(0.18), radius: 3, x: 0, y: 2.5)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .shadow(color: .black.opacity(0.05), radius: 2, x: 0, y: 0)
20 | .offset(x: offset)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:18:29: error: 'black' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
12 |
13 | let offset: Double
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Circle()
17 | .frame(width: sliderHandleSize)
18 | .shadow(color: .black.opacity(0.18), radius: 3, x: 0, y: 2.5)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .shadow(color: .black.opacity(0.05), radius: 2, x: 0, y: 0)
20 | .offset(x: offset)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:18:35: error: 'opacity' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
12 |
13 | let offset: Double
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Circle()
17 | .frame(width: sliderHandleSize)
18 | .shadow(color: .black.opacity(0.18), radius: 3, x: 0, y: 2.5)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .shadow(color: .black.opacity(0.05), radius: 2, x: 0, y: 0)
20 | .offset(x: offset)
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:19:14: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
12 |
13 | let offset: Double
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Circle()
17 | .frame(width: sliderHandleSize)
18 | .shadow(color: .black.opacity(0.18), radius: 3, x: 0, y: 2.5)
19 | .shadow(color: .black.opacity(0.05), radius: 2, x: 0, y: 0)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .offset(x: offset)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:19:29: error: 'black' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
12 |
13 | let offset: Double
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Circle()
17 | .frame(width: sliderHandleSize)
18 | .shadow(color: .black.opacity(0.18), radius: 3, x: 0, y: 2.5)
19 | .shadow(color: .black.opacity(0.05), radius: 2, x: 0, y: 0)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .offset(x: offset)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:19:35: error: 'opacity' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
12 |
13 | let offset: Double
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Circle()
17 | .frame(width: sliderHandleSize)
18 | .shadow(color: .black.opacity(0.18), radius: 3, x: 0, y: 2.5)
19 | .shadow(color: .black.opacity(0.05), radius: 2, x: 0, y: 0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .offset(x: offset)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/BetterSlider/Internal Views/HandleView.swift:20:14: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct HandleView: View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.sliderHandleSize) private var sliderHandleSize
12 |
13 | let offset: Double
14 |
15 | var body: some View {
| `- note: add @available attribute to enclosing property
16 | Circle()
17 | .frame(width: sliderHandleSize)
18 | .shadow(color: .black.opacity(0.18), radius: 3, x: 0, y: 2.5)
19 | .shadow(color: .black.opacity(0.05), radius: 2, x: 0, y: 0)
20 | .offset(x: offset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | }
22 | }
BUILD FAILURE 6.0 macosSpm