Build Information
Failed to build CircularRangeSlider, reference main (daddf7), with Swift 6.2 for macOS (SPM) on 13 Oct 2025 23:13:24 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/diegotid/circular-range-slider.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/diegotid/circular-range-slider
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at daddf7c Allow the marker position to be configured as either inside or outside
Cloned https://github.com/diegotid/circular-range-slider.git
Revision (git rev-parse @):
daddf7cea9604a373ba3e3a2fdbd8fc64c612baa
SUCCESS checkout https://github.com/diegotid/circular-range-slider.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "circular-range-slider",
"name": "CircularRangeSlider",
"url": "https://github.com/diegotid/circular-range-slider.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/circular-range-slider",
"dependencies": [
]
}
]
}
Fetching https://github.com/diegotid/circular-range-slider.git
[1/83] Fetching circular-range-slider
Fetched https://github.com/diegotid/circular-range-slider.git from cache (1.26s)
Creating working copy for https://github.com/diegotid/circular-range-slider.git
Working copy of https://github.com/diegotid/circular-range-slider.git resolved at main (daddf7c)
warning: '.resolve-product-dependencies': dependency 'circular-range-slider' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/diegotid/circular-range-slider.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-49B95AFC49DCD68C.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module CircularRangeSlider
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:73:50: error: 'zero' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
71 | }
72 |
73 | @State private var startDragOffset: Angle = .zero
| `- error: 'zero' is only available in macOS 10.15 or newer
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:74:48: error: 'zero' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
72 |
73 | @State private var startDragOffset: Angle = .zero
74 | @State private var endDragOffset: Angle = .zero
| `- error: 'zero' is only available in macOS 10.15 or newer
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:10:6: error: 'Binding' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
| `- error: 'Binding' is only available in macOS 10.15 or newer
11 | var bounds: ClosedRange<Double>
12 | var circleDiameter: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:16:16: error: 'Color' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
14 | var trackWidth: CGFloat
15 | var handleWidth: CGFloat
16 | var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | var step: Double
18 | var markers: [Double]?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:19:35: error: 'AnyView' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
17 | var step: Double
18 | var markers: [Double]?
19 | var markerLabel: ((Double) -> AnyView)?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
20 | var isMarkerOutside: Bool
21 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:28:16: error: 'Binding' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
25 | @usableFromInline static var defaultHandleWidth: CGFloat { 36 }
26 |
27 | public init(
| `- note: add '@available' attribute to enclosing initializer
28 | range: Binding<ClosedRange<Double>>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
29 | bounds: ClosedRange<Double>,
30 | circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter,
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:34:16: error: 'Color' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
25 | @usableFromInline static var defaultHandleWidth: CGFloat { 36 }
26 |
27 | public init(
| `- note: add '@available' attribute to enclosing initializer
28 | range: Binding<ClosedRange<Double>>,
29 | bounds: ClosedRange<Double>,
:
32 | trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth,
33 | handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth,
34 | color: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
35 | step: Double? = nil,
36 | markers: [Double]? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:37:35: error: 'AnyView' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
25 | @usableFromInline static var defaultHandleWidth: CGFloat { 36 }
26 |
27 | public init(
| `- note: add '@available' attribute to enclosing initializer
28 | range: Binding<ClosedRange<Double>>,
29 | bounds: ClosedRange<Double>,
:
35 | step: Double? = nil,
36 | markers: [Double]? = nil,
37 | markerLabel: ((Double) -> AnyView)? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
38 | isMarkerOutside: Bool = false
39 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:73:41: error: 'Angle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
71 | }
72 |
73 | @State private var startDragOffset: Angle = .zero
| `- error: 'Angle' is only available in macOS 10.15 or newer
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:73:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
71 | }
72 |
73 | @State private var startDragOffset: Angle = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:74:39: error: 'Angle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
72 |
73 | @State private var startDragOffset: Angle = .zero
74 | @State private var endDragOffset: Angle = .zero
| `- error: 'Angle' is only available in macOS 10.15 or newer
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:74:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
72 |
73 | @State private var startDragOffset: Angle = .zero
74 | @State private var endDragOffset: Angle = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:75:41: error: 'Angle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
73 | @State private var startDragOffset: Angle = .zero
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
| `- error: 'Angle' is only available in macOS 10.15 or newer
76 | @State private var draggingHandle: Handle?
77 | @GestureState private var activeDragAngle: Angle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:75:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
73 | @State private var startDragOffset: Angle = .zero
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
| `- error: 'State' is only available in macOS 10.15 or newer
76 | @State private var draggingHandle: Handle?
77 | @GestureState private var activeDragAngle: Angle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:76:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
| `- error: 'State' is only available in macOS 10.15 or newer
77 | @GestureState private var activeDragAngle: Angle?
78 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:77:48: error: 'Angle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
77 | @GestureState private var activeDragAngle: Angle?
| `- error: 'Angle' is only available in macOS 10.15 or newer
78 |
79 | static let sliderAnimationSteps: Int = 20
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:77:6: error: 'GestureState' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
77 | @GestureState private var activeDragAngle: Angle?
| `- error: 'GestureState' is only available in macOS 10.15 or newer
78 |
79 | static let sliderAnimationSteps: Int = 20
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:81:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
79 | static let sliderAnimationSteps: Int = 20
80 | static let sliderAnimationDuration: Double = 0.3
81 | @State private var showSlider: Bool = true
| `- error: 'State' is only available in macOS 10.15 or newer
82 | @State private var stuckMarkerForStart: Double?
83 | @State private var stuckMarkerForEnd: Double?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:82:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
80 | static let sliderAnimationDuration: Double = 0.3
81 | @State private var showSlider: Bool = true
82 | @State private var stuckMarkerForStart: Double?
| `- error: 'State' is only available in macOS 10.15 or newer
83 | @State private var stuckMarkerForEnd: Double?
84 | @State private var stuckMarkerForArc: Double?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:83:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
81 | @State private var showSlider: Bool = true
82 | @State private var stuckMarkerForStart: Double?
83 | @State private var stuckMarkerForEnd: Double?
| `- error: 'State' is only available in macOS 10.15 or newer
84 | @State private var stuckMarkerForArc: Double?
85 | @State private var hasHapticStuckStart: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:84:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
82 | @State private var stuckMarkerForStart: Double?
83 | @State private var stuckMarkerForEnd: Double?
84 | @State private var stuckMarkerForArc: Double?
| `- error: 'State' is only available in macOS 10.15 or newer
85 | @State private var hasHapticStuckStart: Bool = false
86 | @State private var hasHapticStuckEnd: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:85:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
83 | @State private var stuckMarkerForEnd: Double?
84 | @State private var stuckMarkerForArc: Double?
85 | @State private var hasHapticStuckStart: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
86 | @State private var hasHapticStuckEnd: Bool = false
87 | @State private var hasHapticStuckArc: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:86:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
84 | @State private var stuckMarkerForArc: Double?
85 | @State private var hasHapticStuckStart: Bool = false
86 | @State private var hasHapticStuckEnd: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
87 | @State private var hasHapticStuckArc: Bool = false
88 | @State private var markerLabelsInRange: [Double] = []
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:87:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
85 | @State private var hasHapticStuckStart: Bool = false
86 | @State private var hasHapticStuckEnd: Bool = false
87 | @State private var hasHapticStuckArc: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
88 | @State private var markerLabelsInRange: [Double] = []
89 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:88:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
86 | @State private var hasHapticStuckEnd: Bool = false
87 | @State private var hasHapticStuckArc: Bool = false
88 | @State private var markerLabelsInRange: [Double] = []
| `- error: 'State' is only available in macOS 10.15 or newer
89 |
90 | private var markerSnapThreshold: Double {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:98:27: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:126:47: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
124 |
125 | @ViewBuilder
126 | private func trimmedCircleTrack() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
127 | Circle()
128 | .trim(from: CGFloat(boundsDegrees.lowerBound) / 360,
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:125:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
123 | }
124 |
125 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
126 | private func trimmedCircleTrack() -> some View {
| `- note: add '@available' attribute to enclosing instance method
127 | Circle()
128 | .trim(from: CGFloat(boundsDegrees.lowerBound) / 360,
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:136:36: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
134 |
135 | @ViewBuilder
136 | private func arcView() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
137 | CircleArc(
138 | startAngle: angleFromValue(range.lowerBound),
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:135:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
133 | }
134 |
135 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
136 | private func arcView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
137 | CircleArc(
138 | startAngle: angleFromValue(range.lowerBound),
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:145:55: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
143 |
144 | @ViewBuilder
145 | private func handleView(at value: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
146 | let angle: Angle = angleFromValue(value)
147 | let handleRadius = handleWidth / 2
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:144:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
142 | }
143 |
144 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
145 | private func handleView(at value: Double) -> some View {
| `- note: add '@available' attribute to enclosing instance method
146 | let angle: Angle = angleFromValue(value)
147 | let handleRadius = handleWidth / 2
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:167:59: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
165 |
166 | @ViewBuilder
167 | private func markersView(_ markers: [Double]) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
168 | ForEach(Array(markers.enumerated()), id: \.offset) { _, marker in
169 | if marker >= bounds.lowerBound && marker <= bounds.upperBound {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:166:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
164 | }
165 |
166 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
167 | private func markersView(_ markers: [Double]) -> some View {
| `- note: add '@available' attribute to enclosing instance method
168 | ForEach(Array(markers.enumerated()), id: \.offset) { _, marker in
169 | if marker >= bounds.lowerBound && marker <= bounds.upperBound {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:176:55: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
174 |
175 | @ViewBuilder
176 | private func markerView(at value: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
177 | let angle = angleFromValue(value)
178 | let centerRadius = circleDiameter / 2
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:175:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
173 | }
174 |
175 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
176 | private func markerView(at value: Double) -> some View {
| `- note: add '@available' attribute to enclosing instance method
177 | let angle = angleFromValue(value)
178 | let centerRadius = circleDiameter / 2
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:224:45: error: 'Angle' is only available in macOS 10.15 or newer
217 | }
218 |
219 | extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
220 | enum Handle {
221 | case start, end, arc
222 | }
223 |
224 | func angleFromValue(_ value: Double) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
225 | let totalRange = bounds.upperBound - bounds.lowerBound
226 | let valueOffset = value - bounds.lowerBound
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:233:34: error: 'Angle' is only available in macOS 10.15 or newer
217 | }
218 |
219 | extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
220 | enum Handle {
221 | case start, end, arc
:
231 | }
232 |
233 | func valueFromAngle(_ angle: Angle) -> Double {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
234 | let totalRange = bounds.upperBound - bounds.lowerBound
235 | let angleRange = boundsDegrees.upperBound - boundsDegrees.lowerBound
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:300:25: error: 'Angle' is only available in macOS 10.15 or newer
297 |
298 | private extension CircularRangeSlider {
299 | struct CircleArc: Shape {
| `- note: add '@available' attribute to enclosing struct
300 | var startAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
301 | var endAngle: Angle
302 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:301:23: error: 'Angle' is only available in macOS 10.15 or newer
297 |
298 | private extension CircularRangeSlider {
299 | struct CircleArc: Shape {
| `- note: add '@available' attribute to enclosing struct
300 | var startAngle: Angle
301 | var endAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
302 |
303 | func path(in rect: CGRect) -> Path {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:303:39: error: 'Path' is only available in macOS 10.15 or newer
297 |
298 | private extension CircularRangeSlider {
299 | struct CircleArc: Shape {
| `- note: add '@available' attribute to enclosing struct
300 | var startAngle: Angle
301 | var endAngle: Angle
302 |
303 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
304 | var path = Path()
305 | let radius = min(rect.width, rect.height) / 2
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:318:46: error: 'Angle' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
316 | }
317 |
318 | func angleFromDrag(location: CGPoint) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
319 | let radius = circleDiameter / 2
320 | let center = CGPoint(x: radius, y: radius)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:327:50: error: 'Gesture' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
325 | }
326 |
327 | func dragGesture(for handle: Handle) -> some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
328 | DragGesture()
329 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:471:52: error: 'Angle' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
469 | }
470 |
471 | func moveStartHandleResultingInValue(to angle: Angle) -> Double {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
472 | let raw = angle.degrees - startDragOffset.degrees
473 | var newDegrees = raw.truncatingRemainder(dividingBy: 360)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:488:50: error: 'Angle' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
486 | }
487 |
488 | func moveEndHandleResultingInValue(to angle: Angle) -> Double {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
489 | var newDegrees = angle.degrees - endDragOffset.degrees
490 | newDegrees = newDegrees.truncatingRemainder(dividingBy: 360)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:535:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
533 | }
534 |
535 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
536 | CircularRangeSliderPreview()
537 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:540:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
541 | @State private var overlayValues: Bool = true
542 | @State private var rangeUserSelection: ClosedRange<Double>
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:541:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
| `- error: 'State' is only available in macOS 10.15 or newer
542 | @State private var rangeUserSelection: ClosedRange<Double>
543 | @State private var bounds: ClosedRange<Double>
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:542:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
542 | @State private var rangeUserSelection: ClosedRange<Double>
| `- error: 'State' is only available in macOS 10.15 or newer
543 | @State private var bounds: ClosedRange<Double>
544 | @State private var circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:543:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
542 | @State private var rangeUserSelection: ClosedRange<Double>
543 | @State private var bounds: ClosedRange<Double>
| `- error: 'State' is only available in macOS 10.15 or newer
544 | @State private var circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter
545 | @State private var arcTrimmingDegrees: CGFloat = CircularRangeSlider.defaultArcTrimmingDegrees
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:544:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
542 | @State private var rangeUserSelection: ClosedRange<Double>
543 | @State private var bounds: ClosedRange<Double>
544 | @State private var circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter
| `- error: 'State' is only available in macOS 10.15 or newer
545 | @State private var arcTrimmingDegrees: CGFloat = CircularRangeSlider.defaultArcTrimmingDegrees
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:545:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
543 | @State private var bounds: ClosedRange<Double>
544 | @State private var circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter
545 | @State private var arcTrimmingDegrees: CGFloat = CircularRangeSlider.defaultArcTrimmingDegrees
| `- error: 'State' is only available in macOS 10.15 or newer
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:546:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
544 | @State private var circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter
545 | @State private var arcTrimmingDegrees: CGFloat = CircularRangeSlider.defaultArcTrimmingDegrees
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
| `- error: 'State' is only available in macOS 10.15 or newer
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
548 | @State private var color: Color
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:547:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
545 | @State private var arcTrimmingDegrees: CGFloat = CircularRangeSlider.defaultArcTrimmingDegrees
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
| `- error: 'State' is only available in macOS 10.15 or newer
548 | @State private var color: Color
549 | @State private var step: Double
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:548:31: error: 'Color' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
548 | @State private var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
549 | @State private var step: Double
550 | @State private var markers: [Double] = []
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:548:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
548 | @State private var color: Color
| `- error: 'State' is only available in macOS 10.15 or newer
549 | @State private var step: Double
550 | @State private var markers: [Double] = []
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:549:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
548 | @State private var color: Color
549 | @State private var step: Double
| `- error: 'State' is only available in macOS 10.15 or newer
550 | @State private var markers: [Double] = []
551 | @State private var isMarkerOutside: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:550:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
548 | @State private var color: Color
549 | @State private var step: Double
550 | @State private var markers: [Double] = []
| `- error: 'State' is only available in macOS 10.15 or newer
551 | @State private var isMarkerOutside: Bool = false
552 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:551:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
549 | @State private var step: Double
550 | @State private var markers: [Double] = []
551 | @State private var isMarkerOutside: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
552 |
553 | private let defaultBounds: ClosedRange<Double> = 0.0...999.0
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:564:20: error: 'View' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
562 | }
563 |
564 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
565 | NavigationStack {
566 | VStack {
[4/4] Compiling CircularRangeSlider CircularRangeSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:73:50: error: 'zero' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
71 | }
72 |
73 | @State private var startDragOffset: Angle = .zero
| `- error: 'zero' is only available in macOS 10.15 or newer
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:74:48: error: 'zero' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
72 |
73 | @State private var startDragOffset: Angle = .zero
74 | @State private var endDragOffset: Angle = .zero
| `- error: 'zero' is only available in macOS 10.15 or newer
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:10:6: error: 'Binding' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
| `- error: 'Binding' is only available in macOS 10.15 or newer
11 | var bounds: ClosedRange<Double>
12 | var circleDiameter: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:16:16: error: 'Color' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
14 | var trackWidth: CGFloat
15 | var handleWidth: CGFloat
16 | var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | var step: Double
18 | var markers: [Double]?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:19:35: error: 'AnyView' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
17 | var step: Double
18 | var markers: [Double]?
19 | var markerLabel: ((Double) -> AnyView)?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
20 | var isMarkerOutside: Bool
21 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:28:16: error: 'Binding' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
25 | @usableFromInline static var defaultHandleWidth: CGFloat { 36 }
26 |
27 | public init(
| `- note: add '@available' attribute to enclosing initializer
28 | range: Binding<ClosedRange<Double>>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
29 | bounds: ClosedRange<Double>,
30 | circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter,
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:34:16: error: 'Color' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
25 | @usableFromInline static var defaultHandleWidth: CGFloat { 36 }
26 |
27 | public init(
| `- note: add '@available' attribute to enclosing initializer
28 | range: Binding<ClosedRange<Double>>,
29 | bounds: ClosedRange<Double>,
:
32 | trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth,
33 | handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth,
34 | color: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
35 | step: Double? = nil,
36 | markers: [Double]? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:37:35: error: 'AnyView' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
25 | @usableFromInline static var defaultHandleWidth: CGFloat { 36 }
26 |
27 | public init(
| `- note: add '@available' attribute to enclosing initializer
28 | range: Binding<ClosedRange<Double>>,
29 | bounds: ClosedRange<Double>,
:
35 | step: Double? = nil,
36 | markers: [Double]? = nil,
37 | markerLabel: ((Double) -> AnyView)? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
38 | isMarkerOutside: Bool = false
39 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:73:41: error: 'Angle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
71 | }
72 |
73 | @State private var startDragOffset: Angle = .zero
| `- error: 'Angle' is only available in macOS 10.15 or newer
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:73:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
71 | }
72 |
73 | @State private var startDragOffset: Angle = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:74:39: error: 'Angle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
72 |
73 | @State private var startDragOffset: Angle = .zero
74 | @State private var endDragOffset: Angle = .zero
| `- error: 'Angle' is only available in macOS 10.15 or newer
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:74:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
72 |
73 | @State private var startDragOffset: Angle = .zero
74 | @State private var endDragOffset: Angle = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:75:41: error: 'Angle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
73 | @State private var startDragOffset: Angle = .zero
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
| `- error: 'Angle' is only available in macOS 10.15 or newer
76 | @State private var draggingHandle: Handle?
77 | @GestureState private var activeDragAngle: Angle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:75:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
73 | @State private var startDragOffset: Angle = .zero
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
| `- error: 'State' is only available in macOS 10.15 or newer
76 | @State private var draggingHandle: Handle?
77 | @GestureState private var activeDragAngle: Angle?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:76:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
74 | @State private var endDragOffset: Angle = .zero
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
| `- error: 'State' is only available in macOS 10.15 or newer
77 | @GestureState private var activeDragAngle: Angle?
78 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:77:48: error: 'Angle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
77 | @GestureState private var activeDragAngle: Angle?
| `- error: 'Angle' is only available in macOS 10.15 or newer
78 |
79 | static let sliderAnimationSteps: Int = 20
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:77:6: error: 'GestureState' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
75 | @State private var lastHapticAngle: Angle?
76 | @State private var draggingHandle: Handle?
77 | @GestureState private var activeDragAngle: Angle?
| `- error: 'GestureState' is only available in macOS 10.15 or newer
78 |
79 | static let sliderAnimationSteps: Int = 20
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:81:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
79 | static let sliderAnimationSteps: Int = 20
80 | static let sliderAnimationDuration: Double = 0.3
81 | @State private var showSlider: Bool = true
| `- error: 'State' is only available in macOS 10.15 or newer
82 | @State private var stuckMarkerForStart: Double?
83 | @State private var stuckMarkerForEnd: Double?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:82:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
80 | static let sliderAnimationDuration: Double = 0.3
81 | @State private var showSlider: Bool = true
82 | @State private var stuckMarkerForStart: Double?
| `- error: 'State' is only available in macOS 10.15 or newer
83 | @State private var stuckMarkerForEnd: Double?
84 | @State private var stuckMarkerForArc: Double?
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:83:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
81 | @State private var showSlider: Bool = true
82 | @State private var stuckMarkerForStart: Double?
83 | @State private var stuckMarkerForEnd: Double?
| `- error: 'State' is only available in macOS 10.15 or newer
84 | @State private var stuckMarkerForArc: Double?
85 | @State private var hasHapticStuckStart: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:84:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
82 | @State private var stuckMarkerForStart: Double?
83 | @State private var stuckMarkerForEnd: Double?
84 | @State private var stuckMarkerForArc: Double?
| `- error: 'State' is only available in macOS 10.15 or newer
85 | @State private var hasHapticStuckStart: Bool = false
86 | @State private var hasHapticStuckEnd: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:85:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
83 | @State private var stuckMarkerForEnd: Double?
84 | @State private var stuckMarkerForArc: Double?
85 | @State private var hasHapticStuckStart: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
86 | @State private var hasHapticStuckEnd: Bool = false
87 | @State private var hasHapticStuckArc: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:86:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
84 | @State private var stuckMarkerForArc: Double?
85 | @State private var hasHapticStuckStart: Bool = false
86 | @State private var hasHapticStuckEnd: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
87 | @State private var hasHapticStuckArc: Bool = false
88 | @State private var markerLabelsInRange: [Double] = []
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:87:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
85 | @State private var hasHapticStuckStart: Bool = false
86 | @State private var hasHapticStuckEnd: Bool = false
87 | @State private var hasHapticStuckArc: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
88 | @State private var markerLabelsInRange: [Double] = []
89 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:88:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
86 | @State private var hasHapticStuckEnd: Bool = false
87 | @State private var hasHapticStuckArc: Bool = false
88 | @State private var markerLabelsInRange: [Double] = []
| `- error: 'State' is only available in macOS 10.15 or newer
89 |
90 | private var markerSnapThreshold: Double {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:98:27: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:126:47: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
124 |
125 | @ViewBuilder
126 | private func trimmedCircleTrack() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
127 | Circle()
128 | .trim(from: CGFloat(boundsDegrees.lowerBound) / 360,
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:125:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
123 | }
124 |
125 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
126 | private func trimmedCircleTrack() -> some View {
| `- note: add '@available' attribute to enclosing instance method
127 | Circle()
128 | .trim(from: CGFloat(boundsDegrees.lowerBound) / 360,
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:136:36: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
134 |
135 | @ViewBuilder
136 | private func arcView() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
137 | CircleArc(
138 | startAngle: angleFromValue(range.lowerBound),
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:135:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
133 | }
134 |
135 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
136 | private func arcView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
137 | CircleArc(
138 | startAngle: angleFromValue(range.lowerBound),
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:145:55: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
143 |
144 | @ViewBuilder
145 | private func handleView(at value: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
146 | let angle: Angle = angleFromValue(value)
147 | let handleRadius = handleWidth / 2
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:144:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
142 | }
143 |
144 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
145 | private func handleView(at value: Double) -> some View {
| `- note: add '@available' attribute to enclosing instance method
146 | let angle: Angle = angleFromValue(value)
147 | let handleRadius = handleWidth / 2
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:167:59: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
165 |
166 | @ViewBuilder
167 | private func markersView(_ markers: [Double]) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
168 | ForEach(Array(markers.enumerated()), id: \.offset) { _, marker in
169 | if marker >= bounds.lowerBound && marker <= bounds.upperBound {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:166:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
164 | }
165 |
166 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
167 | private func markersView(_ markers: [Double]) -> some View {
| `- note: add '@available' attribute to enclosing instance method
168 | ForEach(Array(markers.enumerated()), id: \.offset) { _, marker in
169 | if marker >= bounds.lowerBound && marker <= bounds.upperBound {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:176:55: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
174 |
175 | @ViewBuilder
176 | private func markerView(at value: Double) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
177 | let angle = angleFromValue(value)
178 | let centerRadius = circleDiameter / 2
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:175:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
173 | }
174 |
175 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
176 | private func markerView(at value: Double) -> some View {
| `- note: add '@available' attribute to enclosing instance method
177 | let angle = angleFromValue(value)
178 | let centerRadius = circleDiameter / 2
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:224:45: error: 'Angle' is only available in macOS 10.15 or newer
217 | }
218 |
219 | extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
220 | enum Handle {
221 | case start, end, arc
222 | }
223 |
224 | func angleFromValue(_ value: Double) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
225 | let totalRange = bounds.upperBound - bounds.lowerBound
226 | let valueOffset = value - bounds.lowerBound
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:233:34: error: 'Angle' is only available in macOS 10.15 or newer
217 | }
218 |
219 | extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
220 | enum Handle {
221 | case start, end, arc
:
231 | }
232 |
233 | func valueFromAngle(_ angle: Angle) -> Double {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
234 | let totalRange = bounds.upperBound - bounds.lowerBound
235 | let angleRange = boundsDegrees.upperBound - boundsDegrees.lowerBound
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:300:25: error: 'Angle' is only available in macOS 10.15 or newer
297 |
298 | private extension CircularRangeSlider {
299 | struct CircleArc: Shape {
| `- note: add '@available' attribute to enclosing struct
300 | var startAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
301 | var endAngle: Angle
302 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:301:23: error: 'Angle' is only available in macOS 10.15 or newer
297 |
298 | private extension CircularRangeSlider {
299 | struct CircleArc: Shape {
| `- note: add '@available' attribute to enclosing struct
300 | var startAngle: Angle
301 | var endAngle: Angle
| `- error: 'Angle' is only available in macOS 10.15 or newer
302 |
303 | func path(in rect: CGRect) -> Path {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:303:39: error: 'Path' is only available in macOS 10.15 or newer
297 |
298 | private extension CircularRangeSlider {
299 | struct CircleArc: Shape {
| `- note: add '@available' attribute to enclosing struct
300 | var startAngle: Angle
301 | var endAngle: Angle
302 |
303 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
304 | var path = Path()
305 | let radius = min(rect.width, rect.height) / 2
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:318:46: error: 'Angle' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
316 | }
317 |
318 | func angleFromDrag(location: CGPoint) -> Angle {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
319 | let radius = circleDiameter / 2
320 | let center = CGPoint(x: radius, y: radius)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:327:50: error: 'Gesture' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
325 | }
326 |
327 | func dragGesture(for handle: Handle) -> some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
328 | DragGesture()
329 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:471:52: error: 'Angle' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
469 | }
470 |
471 | func moveStartHandleResultingInValue(to angle: Angle) -> Double {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
472 | let raw = angle.degrees - startDragOffset.degrees
473 | var newDegrees = raw.truncatingRemainder(dividingBy: 360)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:488:50: error: 'Angle' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
486 | }
487 |
488 | func moveEndHandleResultingInValue(to angle: Angle) -> Double {
| | `- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
489 | var newDegrees = angle.degrees - endDragOffset.degrees
490 | newDegrees = newDegrees.truncatingRemainder(dividingBy: 360)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:535:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
533 | }
534 |
535 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
536 | CircularRangeSliderPreview()
537 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:540:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
541 | @State private var overlayValues: Bool = true
542 | @State private var rangeUserSelection: ClosedRange<Double>
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:541:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
| `- error: 'State' is only available in macOS 10.15 or newer
542 | @State private var rangeUserSelection: ClosedRange<Double>
543 | @State private var bounds: ClosedRange<Double>
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:542:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
542 | @State private var rangeUserSelection: ClosedRange<Double>
| `- error: 'State' is only available in macOS 10.15 or newer
543 | @State private var bounds: ClosedRange<Double>
544 | @State private var circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:543:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
542 | @State private var rangeUserSelection: ClosedRange<Double>
543 | @State private var bounds: ClosedRange<Double>
| `- error: 'State' is only available in macOS 10.15 or newer
544 | @State private var circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter
545 | @State private var arcTrimmingDegrees: CGFloat = CircularRangeSlider.defaultArcTrimmingDegrees
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:544:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
542 | @State private var rangeUserSelection: ClosedRange<Double>
543 | @State private var bounds: ClosedRange<Double>
544 | @State private var circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter
| `- error: 'State' is only available in macOS 10.15 or newer
545 | @State private var arcTrimmingDegrees: CGFloat = CircularRangeSlider.defaultArcTrimmingDegrees
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:545:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
543 | @State private var bounds: ClosedRange<Double>
544 | @State private var circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter
545 | @State private var arcTrimmingDegrees: CGFloat = CircularRangeSlider.defaultArcTrimmingDegrees
| `- error: 'State' is only available in macOS 10.15 or newer
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:546:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
544 | @State private var circleDiameter: CGFloat = CircularRangeSlider.defaultCircleDiameter
545 | @State private var arcTrimmingDegrees: CGFloat = CircularRangeSlider.defaultArcTrimmingDegrees
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
| `- error: 'State' is only available in macOS 10.15 or newer
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
548 | @State private var color: Color
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:547:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
545 | @State private var arcTrimmingDegrees: CGFloat = CircularRangeSlider.defaultArcTrimmingDegrees
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
| `- error: 'State' is only available in macOS 10.15 or newer
548 | @State private var color: Color
549 | @State private var step: Double
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:548:31: error: 'Color' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
548 | @State private var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
549 | @State private var step: Double
550 | @State private var markers: [Double] = []
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:548:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
546 | @State private var trackWidth: CGFloat = CircularRangeSlider.defaultTrackWidth
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
548 | @State private var color: Color
| `- error: 'State' is only available in macOS 10.15 or newer
549 | @State private var step: Double
550 | @State private var markers: [Double] = []
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:549:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
547 | @State private var handleWidth: CGFloat = CircularRangeSlider.defaultHandleWidth
548 | @State private var color: Color
549 | @State private var step: Double
| `- error: 'State' is only available in macOS 10.15 or newer
550 | @State private var markers: [Double] = []
551 | @State private var isMarkerOutside: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:550:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
548 | @State private var color: Color
549 | @State private var step: Double
550 | @State private var markers: [Double] = []
| `- error: 'State' is only available in macOS 10.15 or newer
551 | @State private var isMarkerOutside: Bool = false
552 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:551:6: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
549 | @State private var step: Double
550 | @State private var markers: [Double] = []
551 | @State private var isMarkerOutside: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
552 |
553 | private let defaultBounds: ClosedRange<Double> = 0.0...999.0
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:564:20: error: 'View' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
562 | }
563 |
564 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
565 | NavigationStack {
566 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:46:32: error: 'accentColor' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
25 | @usableFromInline static var defaultHandleWidth: CGFloat { 36 }
26 |
27 | public init(
| `- note: add '@available' attribute to enclosing initializer
28 | range: Binding<ClosedRange<Double>>,
29 | bounds: ClosedRange<Double>,
:
44 | self.trackWidth = trackWidth
45 | self.handleWidth = handleWidth
46 | self.color = color ?? .accentColor
| |- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | self.step = step ?? CircularRangeSlider.defaultBoundsStep(for: bounds)
48 | self.markers = markers
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:99:9: error: 'ZStack' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | trimmedCircleTrack()
101 | if let markers = markers {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:101:38: error: 'buildIf' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
101 | if let markers = markers {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | markersView(markers)
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:103:13: error: 'buildIf' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
101 | if let markers = markers {
102 | markersView(markers)
103 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | if showSlider {
105 | arcView()
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:106:22: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
:
104 | if showSlider {
105 | arcView()
106 | .gesture(dragGesture(for: .arc))
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | handleView(at: range.lowerBound)
108 | .gesture(dragGesture(for: .start))
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:108:22: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
:
106 | .gesture(dragGesture(for: .arc))
107 | handleView(at: range.lowerBound)
108 | .gesture(dragGesture(for: .start))
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | handleView(at: range.upperBound)
110 | .gesture(dragGesture(for: .end))
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:110:22: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
:
108 | .gesture(dragGesture(for: .start))
109 | handleView(at: range.upperBound)
110 | .gesture(dragGesture(for: .end))
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | }
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:104:27: error: 'buildIf' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
:
102 | markersView(markers)
103 | }
104 | if showSlider {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | arcView()
106 | .gesture(dragGesture(for: .arc))
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:111:13: error: 'buildIf' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
:
109 | handleView(at: range.upperBound)
110 | .gesture(dragGesture(for: .end))
111 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | }
113 | .onChange(of: bounds) { oldValue, _ in
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:99:16: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | trimmedCircleTrack()
101 | if let markers = markers {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:99:16: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | trimmedCircleTrack()
101 | if let markers = markers {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:113:10: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
:
111 | }
112 | }
113 | .onChange(of: bounds) { oldValue, _ in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
114 | clampRangeIfNeeded(fromPriorBounds: oldValue)
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:116:10: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
:
114 | clampRangeIfNeeded(fromPriorBounds: oldValue)
115 | }
116 | .onChange(of: range) { _, _ in
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
117 | updateVisibleMarkerLabels()
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:119:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
:
117 | updateVisibleMarkerLabels()
118 | }
119 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | updateVisibleMarkerLabels()
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:122:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
96 | }
97 |
98 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
99 | ZStack {
100 | trimmedCircleTrack()
:
120 | updateVisibleMarkerLabels()
121 | }
122 | .frame(width: circleDiameter, height: circleDiameter)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
123 | }
124 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:130:26: error: extraneous argument label 'uiColor:' in call
128 | .trim(from: CGFloat(boundsDegrees.lowerBound) / 360,
129 | to: CGFloat(boundsDegrees.upperBound) / 360)
130 | .stroke(Color(uiColor: .lightGray).opacity(0.15),
| `- error: extraneous argument label 'uiColor:' in call
131 | style: StrokeStyle(lineWidth: trackWidth, lineCap: .round))
132 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:137:9: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
134 |
135 | @ViewBuilder
136 | private func arcView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
137 | CircleArc(
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | startAngle: angleFromValue(range.lowerBound),
139 | endAngle: angleFromValue(range.upperBound)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:141:10: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
134 |
135 | @ViewBuilder
136 | private func arcView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
137 | CircleArc(
138 | startAngle: angleFromValue(range.lowerBound),
139 | endAngle: angleFromValue(range.upperBound)
140 | )
141 | .stroke(color, lineWidth: min(handleWidth, trackWidth))
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:136:41: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
134 |
135 | @ViewBuilder
136 | private func arcView() -> some View {
| | |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
137 | CircleArc(
138 | startAngle: angleFromValue(range.lowerBound),
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:136:41: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
134 |
135 | @ViewBuilder
136 | private func arcView() -> some View {
| | |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
137 | CircleArc(
138 | startAngle: angleFromValue(range.lowerBound),
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:160:34: error: no exact matches in call to initializer
158 | .scaledToFit()
159 | .frame(width: handleRadius * 1.25, height: handleRadius * 1.25)
160 | .foregroundStyle(Color(uiColor: .systemBackground).opacity(0.25))
| |- error: no exact matches in call to initializer
| |- note: candidate has partially matching parameter list (importing: URL, contentType: UTType?)
| `- note: candidate has partially matching parameter list (importing: Data, contentType: UTType?)
161 | .rotationEffect(angle)
162 | .position(x: x, y: y)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:160:50: error: cannot infer contextual base in reference to member 'systemBackground'
158 | .scaledToFit()
159 | .frame(width: handleRadius * 1.25, height: handleRadius * 1.25)
160 | .foregroundStyle(Color(uiColor: .systemBackground).opacity(0.25))
| `- error: cannot infer contextual base in reference to member 'systemBackground'
161 | .rotationEffect(angle)
162 | .position(x: x, y: y)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:168:9: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
165 |
166 | @ViewBuilder
167 | private func markersView(_ markers: [Double]) -> some View {
| `- note: add '@available' attribute to enclosing instance method
168 | ForEach(Array(markers.enumerated()), id: \.offset) { _, marker in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | if marker >= bounds.lowerBound && marker <= bounds.upperBound {
170 | markerView(at: marker)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:168:9: error: 'ForEach' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
165 |
166 | @ViewBuilder
167 | private func markersView(_ markers: [Double]) -> some View {
| `- note: add '@available' attribute to enclosing instance method
168 | ForEach(Array(markers.enumerated()), id: \.offset) { _, marker in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | if marker >= bounds.lowerBound && marker <= bounds.upperBound {
170 | markerView(at: marker)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:168:9: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
165 |
166 | @ViewBuilder
167 | private func markersView(_ markers: [Double]) -> some View {
| `- note: add '@available' attribute to enclosing instance method
168 | ForEach(Array(markers.enumerated()), id: \.offset) { _, marker in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | if marker >= bounds.lowerBound && marker <= bounds.upperBound {
170 | markerView(at: marker)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:169:75: error: 'buildIf' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
165 |
166 | @ViewBuilder
167 | private func markersView(_ markers: [Double]) -> some View {
| `- note: add '@available' attribute to enclosing instance method
168 | ForEach(Array(markers.enumerated()), id: \.offset) { _, marker in
169 | if marker >= bounds.lowerBound && marker <= bounds.upperBound {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | markerView(at: marker)
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:171:13: error: 'buildIf' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
165 |
166 | @ViewBuilder
167 | private func markersView(_ markers: [Double]) -> some View {
| `- note: add '@available' attribute to enclosing instance method
168 | ForEach(Array(markers.enumerated()), id: \.offset) { _, marker in
169 | if marker >= bounds.lowerBound && marker <= bounds.upperBound {
170 | markerView(at: marker)
171 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
172 | }
173 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:168:60: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
165 |
166 | @ViewBuilder
167 | private func markersView(_ markers: [Double]) -> some View {
| `- note: add '@available' attribute to enclosing instance method
168 | ForEach(Array(markers.enumerated()), id: \.offset) { _, marker in
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | if marker >= bounds.lowerBound && marker <= bounds.upperBound {
170 | markerView(at: marker)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:167:64: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct CircularRangeSlider: View {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var range: ClosedRange<Double>
11 | var bounds: ClosedRange<Double>
:
165 |
166 | @ViewBuilder
167 | private func markersView(_ markers: [Double]) -> some View {
| | |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
168 | ForEach(Array(markers.enumerated()), id: \.offset) { _, marker in
169 | if marker >= bounds.lowerBound && marker <= bounds.upperBound {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:196:29: error: no exact matches in call to initializer
194 | path.addLine(to: CGPoint(x: labelX, y: labelY))
195 | }
196 | .stroke(Color(uiColor: .secondarySystemBackground), lineWidth: 2)
| |- error: no exact matches in call to initializer
| |- note: candidate has partially matching parameter list (importing: URL, contentType: UTType?)
| `- note: candidate has partially matching parameter list (importing: Data, contentType: UTType?)
197 | markerLabel(value)
198 | .padding(.horizontal, 8)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:196:45: error: cannot infer contextual base in reference to member 'secondarySystemBackground'
194 | path.addLine(to: CGPoint(x: labelX, y: labelY))
195 | }
196 | .stroke(Color(uiColor: .secondarySystemBackground), lineWidth: 2)
| `- error: cannot infer contextual base in reference to member 'secondarySystemBackground'
197 | markerLabel(value)
198 | .padding(.horizontal, 8)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:230:16: error: 'Angle' is only available in macOS 10.15 or newer
217 | }
218 |
219 | extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
220 | enum Handle {
221 | case start, end, arc
222 | }
223 |
224 | func angleFromValue(_ value: Double) -> Angle {
| `- note: add '@available' attribute to enclosing instance method
225 | let totalRange = bounds.upperBound - bounds.lowerBound
226 | let valueOffset = value - bounds.lowerBound
:
228 | let angleRange = boundsDegrees.upperBound - boundsDegrees.lowerBound
229 | let degrees = boundsDegrees.lowerBound + fraction * angleRange
230 | return Angle(degrees: degrees)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
231 | }
232 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:278:13: error: cannot pass as inout because setter for 'markerLabelsInRange' is only available in macOS 10.15 or newer
217 | }
218 |
219 | extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
220 | enum Handle {
221 | case start, end, arc
:
274 | }
275 |
276 | private func updateVisibleMarkerLabels() {
| `- note: add '@available' attribute to enclosing instance method
277 | guard let markers = markers, !markers.isEmpty else {
278 | markerLabelsInRange.removeAll()
| |- error: cannot pass as inout because setter for 'markerLabelsInRange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
279 | return
280 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:286:21: error: 'withAnimation' is only available in macOS 10.15 or newer
217 | }
218 |
219 | extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
220 | enum Handle {
221 | case start, end, arc
:
274 | }
275 |
276 | private func updateVisibleMarkerLabels() {
| `- note: add '@available' attribute to enclosing instance method
277 | guard let markers = markers, !markers.isEmpty else {
278 | markerLabelsInRange.removeAll()
:
284 | newVisibleLabels.append(marker)
285 | if !markerLabelsInRange.contains(marker) {
286 | withAnimation(.easeInOut(duration: 0.2)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
287 | markerLabelsInRange.append(marker)
288 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:286:36: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
217 | }
218 |
219 | extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
220 | enum Handle {
221 | case start, end, arc
:
274 | }
275 |
276 | private func updateVisibleMarkerLabels() {
| `- note: add '@available' attribute to enclosing instance method
277 | guard let markers = markers, !markers.isEmpty else {
278 | markerLabelsInRange.removeAll()
:
284 | newVisibleLabels.append(marker)
285 | if !markerLabelsInRange.contains(marker) {
286 | withAnimation(.easeInOut(duration: 0.2)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
287 | markerLabelsInRange.append(marker)
288 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:287:25: error: cannot pass as inout because setter for 'markerLabelsInRange' is only available in macOS 10.15 or newer
217 | }
218 |
219 | extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
220 | enum Handle {
221 | case start, end, arc
:
274 | }
275 |
276 | private func updateVisibleMarkerLabels() {
| `- note: add '@available' attribute to enclosing instance method
277 | guard let markers = markers, !markers.isEmpty else {
278 | markerLabelsInRange.removeAll()
:
285 | if !markerLabelsInRange.contains(marker) {
286 | withAnimation(.easeInOut(duration: 0.2)) {
287 | markerLabelsInRange.append(marker)
| |- error: cannot pass as inout because setter for 'markerLabelsInRange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
288 | }
289 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:292:9: error: cannot pass as inout because setter for 'markerLabelsInRange' is only available in macOS 10.15 or newer
217 | }
218 |
219 | extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
220 | enum Handle {
221 | case start, end, arc
:
274 | }
275 |
276 | private func updateVisibleMarkerLabels() {
| `- note: add '@available' attribute to enclosing instance method
277 | guard let markers = markers, !markers.isEmpty else {
278 | markerLabelsInRange.removeAll()
:
290 | }
291 | }
292 | markerLabelsInRange.removeAll { marker in
| |- error: cannot pass as inout because setter for 'markerLabelsInRange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
293 | !newVisibleLabels.contains(marker)
294 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:304:24: error: 'Path' is only available in macOS 10.15 or newer
297 |
298 | private extension CircularRangeSlider {
299 | struct CircleArc: Shape {
| `- note: add '@available' attribute to enclosing struct
300 | var startAngle: Angle
301 | var endAngle: Angle
302 |
303 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
304 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | let radius = min(rect.width, rect.height) / 2
306 | let center = CGPoint(x: rect.midX, y: rect.midY)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:307:18: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
297 |
298 | private extension CircularRangeSlider {
299 | struct CircleArc: Shape {
| `- note: add '@available' attribute to enclosing struct
300 | var startAngle: Angle
301 | var endAngle: Angle
302 |
303 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
304 | var path = Path()
305 | let radius = min(rect.width, rect.height) / 2
306 | let center = CGPoint(x: rect.midX, y: rect.midY)
307 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
308 | center: center,
309 | radius: radius,
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:310:40: error: '-' is only available in macOS 10.15 or newer
297 |
298 | private extension CircularRangeSlider {
299 | struct CircleArc: Shape {
| `- note: add '@available' attribute to enclosing struct
300 | var startAngle: Angle
301 | var endAngle: Angle
302 |
303 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
304 | var path = Path()
305 | let radius = min(rect.width, rect.height) / 2
:
308 | center: center,
309 | radius: radius,
310 | startAngle: startAngle - .degrees(270),
| |- error: '-' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
311 | endAngle: endAngle - .degrees(270),
312 | clockwise: false
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:311:36: error: '-' is only available in macOS 10.15 or newer
297 |
298 | private extension CircularRangeSlider {
299 | struct CircleArc: Shape {
| `- note: add '@available' attribute to enclosing struct
300 | var startAngle: Angle
301 | var endAngle: Angle
302 |
303 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
304 | var path = Path()
305 | let radius = min(rect.width, rect.height) / 2
:
309 | radius: radius,
310 | startAngle: startAngle - .degrees(270),
311 | endAngle: endAngle - .degrees(270),
| |- error: '-' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
312 | clockwise: false
313 | )
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:324:16: error: 'Angle' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
316 | }
317 |
318 | func angleFromDrag(location: CGPoint) -> Angle {
| `- note: add '@available' attribute to enclosing instance method
319 | let radius = circleDiameter / 2
320 | let center = CGPoint(x: radius, y: radius)
:
322 | let angle = atan2(vector.dy, vector.dx) * 180 / .pi
323 | let normalized = angle < 0 ? angle + 360 : angle
324 | return Angle(degrees: normalized)
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
325 | }
326 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:373:29: error: cannot find 'UIImpactFeedbackGenerator' in scope
371 | if let last: Angle = lastHapticAngle {
372 | if abs(angle.degrees - last.degrees) > 4 {
373 | UIImpactFeedbackGenerator(style: .light).impactOccurred()
| `- error: cannot find 'UIImpactFeedbackGenerator' in scope
374 | lastHapticAngle = angle
375 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:377:25: error: cannot find 'UIImpactFeedbackGenerator' in scope
375 | }
376 | } else {
377 | UIImpactFeedbackGenerator(style: .light).impactOccurred()
| `- error: cannot find 'UIImpactFeedbackGenerator' in scope
378 | lastHapticAngle = angle
379 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:393:41: error: cannot find 'UIImpactFeedbackGenerator' in scope
391 | stuckMarker = nearest
392 | if !hasHapticStuck {
393 | UIImpactFeedbackGenerator(style: .medium).impactOccurred()
| `- error: cannot find 'UIImpactFeedbackGenerator' in scope
394 | hasHapticStuck = true
395 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:425:41: error: cannot find 'UIImpactFeedbackGenerator' in scope
423 | stuckMarker = nearest
424 | if !hasHapticStuck {
425 | UIImpactFeedbackGenerator(style: .medium).impactOccurred()
| `- error: cannot find 'UIImpactFeedbackGenerator' in scope
426 | hasHapticStuck = true
427 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:373:63: error: cannot infer contextual base in reference to member 'light'
371 | if let last: Angle = lastHapticAngle {
372 | if abs(angle.degrees - last.degrees) > 4 {
373 | UIImpactFeedbackGenerator(style: .light).impactOccurred()
| `- error: cannot infer contextual base in reference to member 'light'
374 | lastHapticAngle = angle
375 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:482:35: error: 'Angle' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
469 | }
470 |
471 | func moveStartHandleResultingInValue(to angle: Angle) -> Double {
| `- note: add '@available' attribute to enclosing instance method
472 | let raw = angle.degrees - startDragOffset.degrees
473 | var newDegrees = raw.truncatingRemainder(dividingBy: 360)
:
480 | } else if newDegrees >= boundsDegrees.lowerBound &&
481 | newDegrees < rangeDegrees.upperBound - handleSizeDegrees {
482 | return valueFromAngle(Angle(degrees: newDegrees))
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
483 | } else {
484 | return range.lowerBound
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:499:35: error: 'Angle' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
486 | }
487 |
488 | func moveEndHandleResultingInValue(to angle: Angle) -> Double {
| `- note: add '@available' attribute to enclosing instance method
489 | var newDegrees = angle.degrees - endDragOffset.degrees
490 | newDegrees = newDegrees.truncatingRemainder(dividingBy: 360)
:
497 | } else if newDegrees <= boundsDegrees.upperBound &&
498 | newDegrees > rangeDegrees.lowerBound + handleSizeDegrees {
499 | return valueFromAngle(Angle(degrees: newDegrees))
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
500 | } else {
501 | return range.upperBound
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:509:9: error: setter for 'showSlider' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
503 | }
504 |
505 | func animateRangeChange(
| `- note: add '@available' attribute to enclosing instance method
506 | to newRange: ClosedRange<Double>,
507 | fromPriorBounds oldBounds: ClosedRange<Double>
508 | ) {
509 | showSlider = false
| |- error: setter for 'showSlider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
510 | let steps = CircularRangeSlider.sliderAnimationSteps
511 | let interval = CircularRangeSlider.sliderAnimationDuration / Double(steps)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:526:17: error: setter for 'range' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
503 | }
504 |
505 | func animateRangeChange(
| `- note: add '@available' attribute to enclosing instance method
506 | to newRange: ClosedRange<Double>,
507 | fromPriorBounds oldBounds: ClosedRange<Double>
:
524 | let newUpper = bounds.lowerBound + upperFrac * newTotal
525 | DispatchQueue.main.asyncAfter(deadline: .now() + interval * Double(i)) {
526 | self.range = newLower...newUpper
| |- error: setter for 'range' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
527 | if i > 1 {
528 | showSlider = true
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:528:20: error: setter for 'showSlider' is only available in macOS 10.15 or newer
296 | }
297 |
298 | private extension CircularRangeSlider {
| `- note: add '@available' attribute to enclosing extension
299 | struct CircleArc: Shape {
300 | var startAngle: Angle
:
503 | }
504 |
505 | func animateRangeChange(
| `- note: add '@available' attribute to enclosing instance method
506 | to newRange: ClosedRange<Double>,
507 | fromPriorBounds oldBounds: ClosedRange<Double>
:
526 | self.range = newLower...newUpper
527 | if i > 1 {
528 | showSlider = true
| |- error: setter for 'showSlider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
529 | }
530 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:558:31: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
553 | private let defaultBounds: ClosedRange<Double> = 0.0...999.0
554 |
555 | init() {
| `- note: add '@available' attribute to enclosing initializer
556 | let defaultLower: Double = defaultBounds.upperBound / 6
557 | let defaultUpper: Double = defaultBounds.upperBound / 3
558 | _rangeUserSelection = State(initialValue: defaultLower...defaultUpper)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
559 | _bounds = State(initialValue: defaultBounds)
560 | _step = State(initialValue: CircularRangeSlider.defaultBoundsStep(for: defaultBounds))
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:559:19: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
553 | private let defaultBounds: ClosedRange<Double> = 0.0...999.0
554 |
555 | init() {
| `- note: add '@available' attribute to enclosing initializer
556 | let defaultLower: Double = defaultBounds.upperBound / 6
557 | let defaultUpper: Double = defaultBounds.upperBound / 3
558 | _rangeUserSelection = State(initialValue: defaultLower...defaultUpper)
559 | _bounds = State(initialValue: defaultBounds)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
560 | _step = State(initialValue: CircularRangeSlider.defaultBoundsStep(for: defaultBounds))
561 | _color = State(initialValue: .accentColor)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:560:17: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
553 | private let defaultBounds: ClosedRange<Double> = 0.0...999.0
554 |
555 | init() {
| `- note: add '@available' attribute to enclosing initializer
556 | let defaultLower: Double = defaultBounds.upperBound / 6
557 | let defaultUpper: Double = defaultBounds.upperBound / 3
558 | _rangeUserSelection = State(initialValue: defaultLower...defaultUpper)
559 | _bounds = State(initialValue: defaultBounds)
560 | _step = State(initialValue: CircularRangeSlider.defaultBoundsStep(for: defaultBounds))
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
561 | _color = State(initialValue: .accentColor)
562 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:561:18: error: 'State' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
553 | private let defaultBounds: ClosedRange<Double> = 0.0...999.0
554 |
555 | init() {
| `- note: add '@available' attribute to enclosing initializer
556 | let defaultLower: Double = defaultBounds.upperBound / 6
557 | let defaultUpper: Double = defaultBounds.upperBound / 3
:
559 | _bounds = State(initialValue: defaultBounds)
560 | _step = State(initialValue: CircularRangeSlider.defaultBoundsStep(for: defaultBounds))
561 | _color = State(initialValue: .accentColor)
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
562 | }
563 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:561:39: error: 'accentColor' is only available in macOS 10.15 or newer
537 | }
538 |
539 | private struct CircularRangeSliderPreview: View {
| `- note: add '@available' attribute to enclosing struct
540 | @State private var showSlider: Bool = false
541 | @State private var overlayValues: Bool = true
:
553 | private let defaultBounds: ClosedRange<Double> = 0.0...999.0
554 |
555 | init() {
| `- note: add '@available' attribute to enclosing initializer
556 | let defaultLower: Double = defaultBounds.upperBound / 6
557 | let defaultUpper: Double = defaultBounds.upperBound / 3
:
559 | _bounds = State(initialValue: defaultBounds)
560 | _step = State(initialValue: CircularRangeSlider.defaultBoundsStep(for: defaultBounds))
561 | _color = State(initialValue: .accentColor)
| |- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
562 | }
563 |
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:835:29: error: no exact matches in call to initializer
833 | }
834 | .presentationDetents([.height(420)])
835 | .background(Color(uiColor: .systemBackground))
| |- error: no exact matches in call to initializer
| |- note: candidate has partially matching parameter list (importing: URL, contentType: UTType?)
| `- note: candidate has partially matching parameter list (importing: Data, contentType: UTType?)
836 | }
837 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:589:30: error: value of type 'TextField<Text>' has no member 'keyboardType'
587 | format: IntegerFormatStyle().grouping(.never)
588 | )
589 | .keyboardType(.numberPad)
| `- error: value of type 'TextField<Text>' has no member 'keyboardType'
590 | .frame(width: 90)
591 | .multilineTextAlignment(.trailing)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:592:47: error: cannot infer contextual base in reference to member 'secondary'
590 | .frame(width: 90)
591 | .multilineTextAlignment(.trailing)
592 | .foregroundStyle(.secondary)
| `- error: cannot infer contextual base in reference to member 'secondary'
593 | }
594 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:591:54: error: cannot infer contextual base in reference to member 'trailing'
589 | .keyboardType(.numberPad)
590 | .frame(width: 90)
591 | .multilineTextAlignment(.trailing)
| `- error: cannot infer contextual base in reference to member 'trailing'
592 | .foregroundStyle(.secondary)
593 | }
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:589:44: error: cannot infer contextual base in reference to member 'numberPad'
587 | format: IntegerFormatStyle().grouping(.never)
588 | )
589 | .keyboardType(.numberPad)
| `- error: cannot infer contextual base in reference to member 'numberPad'
590 | .frame(width: 90)
591 | .multilineTextAlignment(.trailing)
/Users/admin/builder/spi-builder-workspace/Sources/CircularRangeSlider/CircularRangeSlider.swift:835:45: error: cannot infer contextual base in reference to member 'systemBackground'
833 | }
834 | .presentationDetents([.height(420)])
835 | .background(Color(uiColor: .systemBackground))
| `- error: cannot infer contextual base in reference to member 'systemBackground'
836 | }
837 | }
BUILD FAILURE 6.2 macosSpm