Build Information
Failed to build AdaptiveSlider, reference 0.2.0 (68bef7), with Swift 6.2 for macOS (SPM) on 22 Jun 2025 15:40:34 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Hovig90/AdaptiveSlider.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Hovig90/AdaptiveSlider
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at 68bef76 Updated README file
Cloned https://github.com/Hovig90/AdaptiveSlider.git
Revision (git rev-parse @):
68bef7618e4ee358a5a4fbfbcd8a62fe3c37bbe1
SUCCESS checkout https://github.com/Hovig90/AdaptiveSlider.git at 0.2.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Hovig90/AdaptiveSlider.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Compiling AdaptiveSlider ClosedRange+Ext.swift
[4/8] Compiling AdaptiveSlider CircularSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:12:20: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | public var bounds: ClosedRange<Value>
14 | public var step: Value.Stride
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:19:25: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
17 | public var radius: CGFloat = 100
18 | public var thumbRadius: CGFloat = 11
19 | public var thumbColor: Color = .white
| `- error: 'Color' is only available in macOS 10.15 or newer
20 |
21 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:19:34: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
17 | public var radius: CGFloat = 100
18 | public var thumbRadius: CGFloat = 11
19 | public var thumbColor: Color = .white
| `- error: 'white' is only available in macOS 10.15 or newer
20 |
21 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:24:25: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
22 | public var trackColor: Color = Color(.systemGray5)
23 | #else
24 | public var trackColor: Color = Color.gray
| `- error: 'Color' is only available in macOS 10.15 or newer
25 | #endif
26 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:24:33: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
22 | public var trackColor: Color = Color(.systemGray5)
23 | #else
24 | public var trackColor: Color = Color.gray
| `- error: 'Color' is only available in macOS 10.15 or newer
25 | #endif
26 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:24:39: error: 'gray' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
22 | public var trackColor: Color = Color(.systemGray5)
23 | #else
24 | public var trackColor: Color = Color.gray
| `- error: 'gray' is only available in macOS 10.15 or newer
25 | #endif
26 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:32:24: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
30 | public var tickCount: Int = 0
31 | public var tickSize: CGSize = .zero
32 | public var tickColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
33 | public var accessibilityLabel: String = ""
34 | public var accessibilityValue: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:32:33: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
30 | public var tickCount: Int = 0
31 | public var tickSize: CGSize = .zero
32 | public var tickColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
33 | public var accessibilityLabel: String = ""
34 | public var accessibilityValue: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:46:10: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
43 | }
44 |
45 | public init(
| `- note: add @available attribute to enclosing initializer
46 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
47 | in bounds: ClosedRange<Value>,
48 | step: Value.Stride,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:49:4: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
43 | }
44 |
45 | public init(
| `- note: add @available attribute to enclosing initializer
46 | value: Binding<Value>,
47 | in bounds: ClosedRange<Value>,
48 | step: Value.Stride,
49 | @ViewBuilder label: @escaping () -> Label
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
50 | ) {
51 | self.value = value
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:68:24: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
66 | }
67 |
68 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
69 | ZStack {
70 | // Track Circle
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:190:42: error: 'AccessibilityAdjustmentDirection' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
188 | }
189 |
190 | private func adjustValue(for direction: AccessibilityAdjustmentDirection) {
| | `- error: 'AccessibilityAdjustmentDirection' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
191 | switch direction {
192 | case .increment:
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:10:65: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:203:3: error: 'State' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
| `- error: 'State' is only available in macOS 10.15 or newer
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:204:3: error: 'State' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
| `- error: 'State' is only available in macOS 10.15 or newer
205 | var body: some View {
206 | VStack(spacing: 40) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:205:17: error: 'View' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:233:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
231 | }
232 |
233 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
234 | PreviewCircularSlider()
235 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:68:29: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
66 | }
67 |
68 | public var body: some View {
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
69 | ZStack {
70 | // Track Circle
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:206:3: error: 'VStack' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
207 | CircularSlider(
208 | value: $sliderValue1,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:206:23: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
207 | CircularSlider(
208 | value: $sliderValue1,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:206:23: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
207 | CircularSlider(
208 | value: $sliderValue1,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:206:23: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
207 | CircularSlider(
208 | value: $sliderValue1,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:206:23: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
207 | CircularSlider(
208 | value: $sliderValue1,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:207:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
208 | value: $sliderValue1,
209 | in: 0...100) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:207:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
208 | value: $sliderValue1,
209 | in: 0...100) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:207:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
208 | value: $sliderValue1,
209 | in: 0...100) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:210:6: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
208 | value: $sliderValue1,
209 | in: 0...100) {
210 | Text("\(Int(sliderValue1))")
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
211 | }
212 | .tint(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:210:6: error: 'Text' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
208 | value: $sliderValue1,
209 | in: 0...100) {
210 | Text("\(Int(sliderValue1))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
211 | }
212 | .tint(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:209:18: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
208 | value: $sliderValue1,
209 | in: 0...100) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
210 | Text("\(Int(sliderValue1))")
211 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:212:6: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
210 | Text("\(Int(sliderValue1))")
211 | }
212 | .tint(
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
213 | LinearGradient(
214 | colors: [.red, .orange, .yellow],
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:213:6: error: 'LinearGradient' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
211 | }
212 | .tint(
213 | LinearGradient(
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | colors: [.red, .orange, .yellow],
215 | startPoint: .top,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:214:17: error: 'red' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
212 | .tint(
213 | LinearGradient(
214 | colors: [.red, .orange, .yellow],
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | startPoint: .top,
216 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:214:23: error: 'orange' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
212 | .tint(
213 | LinearGradient(
214 | colors: [.red, .orange, .yellow],
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | startPoint: .top,
216 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:214:32: error: 'yellow' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
212 | .tint(
213 | LinearGradient(
214 | colors: [.red, .orange, .yellow],
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | startPoint: .top,
216 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:221:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
219 | // .showTicks(count: 6)
220 |
221 | CircularSlider(
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
222 | value: $sliderValue2,
223 | in: 0...100) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:221:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
219 | // .showTicks(count: 6)
220 |
221 | CircularSlider(
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
222 | value: $sliderValue2,
223 | in: 0...100) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:221:4: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
219 | // .showTicks(count: 6)
220 |
221 | CircularSlider(
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
222 | value: $sliderValue2,
223 | in: 0...100) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:224:6: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
222 | value: $sliderValue2,
223 | in: 0...100) {
224 | Text("\(Int(sliderValue2))")
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
225 | }
226 | .tint(.red)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:224:6: error: 'Text' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
222 | value: $sliderValue2,
223 | in: 0...100) {
224 | Text("\(Int(sliderValue2))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
225 | }
226 | .tint(.red)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:223:18: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
221 | CircularSlider(
222 | value: $sliderValue2,
223 | in: 0...100) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
224 | Text("\(Int(sliderValue2))")
225 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:226:6: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
224 | Text("\(Int(sliderValue2))")
225 | }
226 | .tint(.red)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
227 | .trackStyle(lineWidth: 10, color: .green)
228 | .showTicks(count: 100, color: .yellow)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:226:12: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
224 | Text("\(Int(sliderValue2))")
225 | }
226 | .tint(.red)
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
227 | .trackStyle(lineWidth: 10, color: .green)
228 | .showTicks(count: 100, color: .yellow)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:226:12: error: 'red' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
224 | Text("\(Int(sliderValue2))")
225 | }
226 | .tint(.red)
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
227 | .trackStyle(lineWidth: 10, color: .green)
228 | .showTicks(count: 100, color: .yellow)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:227:6: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
225 | }
226 | .tint(.red)
227 | .trackStyle(lineWidth: 10, color: .green)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
228 | .showTicks(count: 100, color: .yellow)
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:227:40: error: 'green' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
225 | }
226 | .tint(.red)
227 | .trackStyle(lineWidth: 10, color: .green)
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | .showTicks(count: 100, color: .yellow)
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:228:6: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
226 | .tint(.red)
227 | .trackStyle(lineWidth: 10, color: .green)
228 | .showTicks(count: 100, color: .yellow)
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
229 | }
230 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:228:36: error: 'yellow' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
:
226 | .tint(.red)
227 | .trackStyle(lineWidth: 10, color: .green)
228 | .showTicks(count: 100, color: .yellow)
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
229 | }
230 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:206:23: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
207 | CircularSlider(
208 | value: $sliderValue1,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:206:23: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
207 | CircularSlider(
208 | value: $sliderValue1,
[5/8] Compiling AdaptiveSlider CircularSliderConfigurable.swift
[6/8] Compiling AdaptiveSlider AdaptiveSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:13:39: error: 'ShapeStyle' is only available in macOS 10.15 or newer
11 | /// let style: AdaptiveStyle = LinearGradient(colors: [.red, .blue], startPoint: .leading, endPoint: .trailing)
12 | /// ```
13 | public typealias AdaptiveStyle = (any ShapeStyle)
| | `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
14 |
15 | // MARK: - AdaptiveSlider Protocol
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:24:24: error: 'View' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
25 |
26 | // Core Slider Properties
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:29:13: error: 'Binding' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
27 |
28 | /// The current value of the slider.
29 | var value: Binding<Value> { get }
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 |
31 | /// The range within which the slider operates.
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:43:18: error: 'Color' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
41 |
42 | /// The color of the slider's thumb.
43 | var thumbColor: Color { get set }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
44 |
45 | // Track Properties
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:48:18: error: 'Color' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
46 |
47 | /// The color of the slider's track.
48 | var trackColor: Color { get set }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 |
50 | /// The color or gradient style used for the progress line
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:68:17: error: 'Color' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
66 |
67 | /// The color of the ticks displayed on the slider.
68 | var tickColor: Color { get set }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
69 |
70 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:100:10: error: 'Binding' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
97 | /// - step: The incremental step for the slider’s value.
98 | /// - label: A closure returning a label view to display with the slider.
99 | init(
| `- note: add @available attribute to enclosing initializer
100 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
101 | in bounds: ClosedRange<Value>,
102 | step: Value.Stride,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:103:4: error: 'ViewBuilder' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
97 | /// - step: The incremental step for the slider’s value.
98 | /// - label: A closure returning a label view to display with the slider.
99 | init(
| `- note: add @available attribute to enclosing initializer
100 | value: Binding<Value>,
101 | in bounds: ClosedRange<Value>,
102 | step: Value.Stride,
103 | @ViewBuilder label: @escaping () -> Label
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
104 | )
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:22:33: error: 'View' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:114:10: error: 'Binding' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
111 | /// - bounds: The range within which the slider operates. Defaults to `0...1`.
112 | /// - label: A closure returning a label view to display with the slider.
113 | public init(
| `- note: add @available attribute to enclosing initializer
114 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
115 | in bounds: ClosedRange<Value> = 0...1,
116 | @ViewBuilder label: @escaping () -> Label
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:116:4: error: 'ViewBuilder' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
111 | /// - bounds: The range within which the slider operates. Defaults to `0...1`.
112 | /// - label: A closure returning a label view to display with the slider.
113 | public init(
| `- note: add @available attribute to enclosing initializer
114 | value: Binding<Value>,
115 | in bounds: ClosedRange<Value> = 0...1,
116 | @ViewBuilder label: @escaping () -> Label
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
117 | ) {
118 | self.init(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:132:19: error: 'EmptyView' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
127 | /// - value: The current value of the slider.
128 | /// - bounds: The range within which the slider operates. Defaults to `0...1`.
129 | public init(
| `- note: add @available attribute to enclosing initializer
130 | value: Binding<Value>,
131 | in bounds: ClosedRange<Value> = 0...1
132 | ) where Label == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
133 | self.init(
134 | value: value,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:130:10: error: 'Binding' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
127 | /// - value: The current value of the slider.
128 | /// - bounds: The range within which the slider operates. Defaults to `0...1`.
129 | public init(
| `- note: add @available attribute to enclosing initializer
130 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
131 | in bounds: ClosedRange<Value> = 0...1
132 | ) where Label == EmptyView {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:147:10: error: 'Binding' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
144 | /// - step: The incremental step for the slider’s value. Defaults to `1`.
145 | /// - label: A closure returning a label view to display with the slider.
146 | public init(
| `- note: add @available attribute to enclosing initializer
147 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
148 | in bounds: ClosedRange<Value>,
149 | step: Value.Stride = 1,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:150:4: error: 'ViewBuilder' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
144 | /// - step: The incremental step for the slider’s value. Defaults to `1`.
145 | /// - label: A closure returning a label view to display with the slider.
146 | public init(
| `- note: add @available attribute to enclosing initializer
147 | value: Binding<Value>,
148 | in bounds: ClosedRange<Value>,
149 | step: Value.Stride = 1,
150 | @ViewBuilder label: @escaping () -> Label
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
151 | ) {
152 | self.init(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:168:19: error: 'EmptyView' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
162 | /// - bounds: The range within which the slider operates.
163 | /// - step: The incremental step for the slider’s value. Defaults to `1`.
164 | public init(
| `- note: add @available attribute to enclosing initializer
165 | value: Binding<Value>,
166 | in bounds: ClosedRange<Value>,
167 | step: Value.Stride = 1
168 | ) where Label == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
169 | self.init(
170 | value: value,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:165:10: error: 'Binding' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
162 | /// - bounds: The range within which the slider operates.
163 | /// - step: The incremental step for the slider’s value. Defaults to `1`.
164 | public init(
| `- note: add @available attribute to enclosing initializer
165 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
166 | in bounds: ClosedRange<Value>,
167 | step: Value.Stride = 1
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:137:13: error: 'EmptyView' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
127 | /// - value: The current value of the slider.
128 | /// - bounds: The range within which the slider operates. Defaults to `0...1`.
129 | public init(
| `- note: add @available attribute to enclosing initializer
130 | value: Binding<Value>,
131 | in bounds: ClosedRange<Value> = 0...1
:
135 | in: bounds,
136 | step: 0.01,
137 | label: { EmptyView() })
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
138 | }
139 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:173:13: error: 'EmptyView' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
162 | /// - bounds: The range within which the slider operates.
163 | /// - step: The incremental step for the slider’s value. Defaults to `1`.
164 | public init(
| `- note: add @available attribute to enclosing initializer
165 | value: Binding<Value>,
166 | in bounds: ClosedRange<Value>,
:
171 | in: bounds,
172 | step: step,
173 | label: { EmptyView() })
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | }
175 | }
[7/8] Emitting module AdaptiveSlider
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:13:39: error: 'ShapeStyle' is only available in macOS 10.15 or newer
11 | /// let style: AdaptiveStyle = LinearGradient(colors: [.red, .blue], startPoint: .leading, endPoint: .trailing)
12 | /// ```
13 | public typealias AdaptiveStyle = (any ShapeStyle)
| | `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
14 |
15 | // MARK: - AdaptiveSlider Protocol
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:24:24: error: 'View' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing associated type
25 |
26 | // Core Slider Properties
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:29:13: error: 'Binding' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
27 |
28 | /// The current value of the slider.
29 | var value: Binding<Value> { get }
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 |
31 | /// The range within which the slider operates.
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:43:18: error: 'Color' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
41 |
42 | /// The color of the slider's thumb.
43 | var thumbColor: Color { get set }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
44 |
45 | // Track Properties
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:48:18: error: 'Color' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
46 |
47 | /// The color of the slider's track.
48 | var trackColor: Color { get set }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 |
50 | /// The color or gradient style used for the progress line
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:68:17: error: 'Color' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
66 |
67 | /// The color of the ticks displayed on the slider.
68 | var tickColor: Color { get set }
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
69 |
70 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:100:10: error: 'Binding' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
97 | /// - step: The incremental step for the slider’s value.
98 | /// - label: A closure returning a label view to display with the slider.
99 | init(
| `- note: add @available attribute to enclosing initializer
100 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
101 | in bounds: ClosedRange<Value>,
102 | step: Value.Stride,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:103:4: error: 'ViewBuilder' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
:
97 | /// - step: The incremental step for the slider’s value.
98 | /// - label: A closure returning a label view to display with the slider.
99 | init(
| `- note: add @available attribute to enclosing initializer
100 | value: Binding<Value>,
101 | in bounds: ClosedRange<Value>,
102 | step: Value.Stride,
103 | @ViewBuilder label: @escaping () -> Label
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
104 | )
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:22:33: error: 'View' is only available in macOS 10.15 or newer
20 | /// It allows developers to create highly stylized sliders with custom thumb styles, track colors, ticks, labels, and haptic feedback.
21 | @MainActor
22 | public protocol AdaptiveSlider: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
23 | associatedtype Value: BinaryFloatingPoint where Value.Stride: BinaryFloatingPoint
24 | associatedtype Label: View
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:114:10: error: 'Binding' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
111 | /// - bounds: The range within which the slider operates. Defaults to `0...1`.
112 | /// - label: A closure returning a label view to display with the slider.
113 | public init(
| `- note: add @available attribute to enclosing initializer
114 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
115 | in bounds: ClosedRange<Value> = 0...1,
116 | @ViewBuilder label: @escaping () -> Label
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:116:4: error: 'ViewBuilder' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
111 | /// - bounds: The range within which the slider operates. Defaults to `0...1`.
112 | /// - label: A closure returning a label view to display with the slider.
113 | public init(
| `- note: add @available attribute to enclosing initializer
114 | value: Binding<Value>,
115 | in bounds: ClosedRange<Value> = 0...1,
116 | @ViewBuilder label: @escaping () -> Label
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
117 | ) {
118 | self.init(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:132:19: error: 'EmptyView' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
127 | /// - value: The current value of the slider.
128 | /// - bounds: The range within which the slider operates. Defaults to `0...1`.
129 | public init(
| `- note: add @available attribute to enclosing initializer
130 | value: Binding<Value>,
131 | in bounds: ClosedRange<Value> = 0...1
132 | ) where Label == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
133 | self.init(
134 | value: value,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:130:10: error: 'Binding' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
127 | /// - value: The current value of the slider.
128 | /// - bounds: The range within which the slider operates. Defaults to `0...1`.
129 | public init(
| `- note: add @available attribute to enclosing initializer
130 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
131 | in bounds: ClosedRange<Value> = 0...1
132 | ) where Label == EmptyView {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:147:10: error: 'Binding' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
144 | /// - step: The incremental step for the slider’s value. Defaults to `1`.
145 | /// - label: A closure returning a label view to display with the slider.
146 | public init(
| `- note: add @available attribute to enclosing initializer
147 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
148 | in bounds: ClosedRange<Value>,
149 | step: Value.Stride = 1,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:150:4: error: 'ViewBuilder' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
144 | /// - step: The incremental step for the slider’s value. Defaults to `1`.
145 | /// - label: A closure returning a label view to display with the slider.
146 | public init(
| `- note: add @available attribute to enclosing initializer
147 | value: Binding<Value>,
148 | in bounds: ClosedRange<Value>,
149 | step: Value.Stride = 1,
150 | @ViewBuilder label: @escaping () -> Label
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
151 | ) {
152 | self.init(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:168:19: error: 'EmptyView' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
162 | /// - bounds: The range within which the slider operates.
163 | /// - step: The incremental step for the slider’s value. Defaults to `1`.
164 | public init(
| `- note: add @available attribute to enclosing initializer
165 | value: Binding<Value>,
166 | in bounds: ClosedRange<Value>,
167 | step: Value.Stride = 1
168 | ) where Label == EmptyView {
| `- error: 'EmptyView' is only available in macOS 10.15 or newer
169 | self.init(
170 | value: value,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Protocols/AdaptiveSlider.swift:165:10: error: 'Binding' is only available in macOS 10.15 or newer
105 | }
106 |
107 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
108 | /// Initializes an adaptive slider with default bounds and step values.
109 | /// - Parameters:
:
162 | /// - bounds: The range within which the slider operates.
163 | /// - step: The incremental step for the slider’s value. Defaults to `1`.
164 | public init(
| `- note: add @available attribute to enclosing initializer
165 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
166 | in bounds: ClosedRange<Value>,
167 | step: Value.Stride = 1
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:37:20: error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
30 | }
31 |
32 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
33 | /// Provides a computed property for the progress line's fill.
34 | ///
35 | /// If a custom progress color (`progressColor`) is set, it returns that color.
36 | /// Otherwise, it defaults to system blue color (`Color(.systemBlue)`).
37 | var progressFill: AnyShapeStyle {
| | `- error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
| `- note: add @available attribute to enclosing property
38 | if let progressColor {
39 | return AnyShapeStyle(progressColor)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:59:45: error: 'Color' is only available in macOS 10.15 or newer
44 | }
45 |
46 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
47 | /// Sets the style of the track, including its width and color.
48 | ///
:
57 | /// .trackStyle(lineWidth: 5, color: .gray)
58 | /// ```
59 | func trackStyle(lineWidth: CGFloat, color: Color? = nil) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | var copy = self
61 | copy.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:84:42: error: 'Color' is only available in macOS 10.15 or newer
69 | }
70 |
71 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
72 | /// Customizes the thumb's radius and color.
73 | ///
:
82 | /// .thumbStyle(radius: 10, color: .red)
83 | /// ```
84 | func thumbStyle(radius: CGFloat, color: Color = .white) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
85 | var copy = self
86 | copy.thumbRadius = radius
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:84:51: error: 'white' is only available in macOS 10.15 or newer
69 | }
70 |
71 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
72 | /// Customizes the thumb's radius and color.
73 | ///
:
82 | /// .thumbStyle(radius: 10, color: .red)
83 | /// ```
84 | func thumbStyle(radius: CGFloat, color: Color = .white) -> Self {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
85 | var copy = self
86 | copy.thumbRadius = radius
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:109:10: error: 'Color' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
93 | /// Adds visual markers (ticks) to the slider to enhance user interaction.
94 | ///
:
104 | /// .showTicks(count: 10, size: CGSize(width: 2, height: 5), color: .black)
105 | /// ```
106 | func showTicks(
| `- note: add @available attribute to enclosing instance method
107 | count: Int,
108 | size: CGSize? = nil,
109 | color: Color? = nil
| `- error: 'Color' is only available in macOS 10.15 or newer
110 | ) -> Self {
111 | var copy = self
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:12:20: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 | public var bounds: ClosedRange<Value>
14 | public var step: Value.Stride
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:19:25: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
17 | public var radius: CGFloat = 100
18 | public var thumbRadius: CGFloat = 11
19 | public var thumbColor: Color = .white
| `- error: 'Color' is only available in macOS 10.15 or newer
20 |
21 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:19:34: error: 'white' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
17 | public var radius: CGFloat = 100
18 | public var thumbRadius: CGFloat = 11
19 | public var thumbColor: Color = .white
| `- error: 'white' is only available in macOS 10.15 or newer
20 |
21 | #if os(iOS)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:24:25: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
22 | public var trackColor: Color = Color(.systemGray5)
23 | #else
24 | public var trackColor: Color = Color.gray
| `- error: 'Color' is only available in macOS 10.15 or newer
25 | #endif
26 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:24:33: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
22 | public var trackColor: Color = Color(.systemGray5)
23 | #else
24 | public var trackColor: Color = Color.gray
| `- error: 'Color' is only available in macOS 10.15 or newer
25 | #endif
26 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:24:39: error: 'gray' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
22 | public var trackColor: Color = Color(.systemGray5)
23 | #else
24 | public var trackColor: Color = Color.gray
| `- error: 'gray' is only available in macOS 10.15 or newer
25 | #endif
26 |
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:32:24: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
30 | public var tickCount: Int = 0
31 | public var tickSize: CGSize = .zero
32 | public var tickColor: Color = .clear
| `- error: 'Color' is only available in macOS 10.15 or newer
33 | public var accessibilityLabel: String = ""
34 | public var accessibilityValue: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:32:33: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
30 | public var tickCount: Int = 0
31 | public var tickSize: CGSize = .zero
32 | public var tickColor: Color = .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
33 | public var accessibilityLabel: String = ""
34 | public var accessibilityValue: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:46:10: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
43 | }
44 |
45 | public init(
| `- note: add @available attribute to enclosing initializer
46 | value: Binding<Value>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
47 | in bounds: ClosedRange<Value>,
48 | step: Value.Stride,
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:49:4: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
43 | }
44 |
45 | public init(
| `- note: add @available attribute to enclosing initializer
46 | value: Binding<Value>,
47 | in bounds: ClosedRange<Value>,
48 | step: Value.Stride,
49 | @ViewBuilder label: @escaping () -> Label
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
50 | ) {
51 | self.value = value
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:68:24: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
66 | }
67 |
68 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
69 | ZStack {
70 | // Track Circle
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:190:42: error: 'AccessibilityAdjustmentDirection' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
:
188 | }
189 |
190 | private func adjustValue(for direction: AccessibilityAdjustmentDirection) {
| | `- error: 'AccessibilityAdjustmentDirection' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
191 | switch direction {
192 | case .increment:
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:10:65: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CircularSlider<Value: BinaryFloatingPoint, Label: View>: CircularSliderConfigurable where Value.Stride: BinaryFloatingPoint {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 |
12 | public var value: Binding<Value>
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:203:3: error: 'State' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
| `- error: 'State' is only available in macOS 10.15 or newer
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:204:3: error: 'State' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
| `- error: 'State' is only available in macOS 10.15 or newer
205 | var body: some View {
206 | VStack(spacing: 40) {
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:205:17: error: 'View' is only available in macOS 10.15 or newer
200 | }
201 |
202 | struct PreviewCircularSlider: View {
| `- note: add @available attribute to enclosing struct
203 | @State private var sliderValue1: Double = 40
204 | @State private var sliderValue2: Double = 40
205 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
206 | VStack(spacing: 40) {
207 | CircularSlider(
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Views/CircularSlider.swift:233:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
231 | }
232 |
233 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
234 | PreviewCircularSlider()
235 | }
[8/8] Compiling AdaptiveSlider AdaptiveSlider+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:37:20: error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
30 | }
31 |
32 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
33 | /// Provides a computed property for the progress line's fill.
34 | ///
35 | /// If a custom progress color (`progressColor`) is set, it returns that color.
36 | /// Otherwise, it defaults to system blue color (`Color(.systemBlue)`).
37 | var progressFill: AnyShapeStyle {
| | `- error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
| `- note: add @available attribute to enclosing property
38 | if let progressColor {
39 | return AnyShapeStyle(progressColor)
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:59:45: error: 'Color' is only available in macOS 10.15 or newer
44 | }
45 |
46 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
47 | /// Sets the style of the track, including its width and color.
48 | ///
:
57 | /// .trackStyle(lineWidth: 5, color: .gray)
58 | /// ```
59 | func trackStyle(lineWidth: CGFloat, color: Color? = nil) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | var copy = self
61 | copy.lineWidth = lineWidth
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:84:42: error: 'Color' is only available in macOS 10.15 or newer
69 | }
70 |
71 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
72 | /// Customizes the thumb's radius and color.
73 | ///
:
82 | /// .thumbStyle(radius: 10, color: .red)
83 | /// ```
84 | func thumbStyle(radius: CGFloat, color: Color = .white) -> Self {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
85 | var copy = self
86 | copy.thumbRadius = radius
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:84:51: error: 'white' is only available in macOS 10.15 or newer
69 | }
70 |
71 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
72 | /// Customizes the thumb's radius and color.
73 | ///
:
82 | /// .thumbStyle(radius: 10, color: .red)
83 | /// ```
84 | func thumbStyle(radius: CGFloat, color: Color = .white) -> Self {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
85 | var copy = self
86 | copy.thumbRadius = radius
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:109:10: error: 'Color' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
93 | /// Adds visual markers (ticks) to the slider to enhance user interaction.
94 | ///
:
104 | /// .showTicks(count: 10, size: CGSize(width: 2, height: 5), color: .black)
105 | /// ```
106 | func showTicks(
| `- note: add @available attribute to enclosing instance method
107 | count: Int,
108 | size: CGSize? = nil,
109 | color: Color? = nil
| `- error: 'Color' is only available in macOS 10.15 or newer
110 | ) -> Self {
111 | var copy = self
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:39:11: error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
30 | }
31 |
32 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
33 | /// Provides a computed property for the progress line's fill.
34 | ///
35 | /// If a custom progress color (`progressColor`) is set, it returns that color.
36 | /// Otherwise, it defaults to system blue color (`Color(.systemBlue)`).
37 | var progressFill: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
38 | if let progressColor {
39 | return AnyShapeStyle(progressColor)
| |- error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
40 | } else {
41 | return AnyShapeStyle(Color(.systemBlue))
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:41:11: error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
30 | }
31 |
32 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
33 | /// Provides a computed property for the progress line's fill.
34 | ///
35 | /// If a custom progress color (`progressColor`) is set, it returns that color.
36 | /// Otherwise, it defaults to system blue color (`Color(.systemBlue)`).
37 | var progressFill: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
38 | if let progressColor {
39 | return AnyShapeStyle(progressColor)
40 | } else {
41 | return AnyShapeStyle(Color(.systemBlue))
| |- error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:41:11: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | }
31 |
32 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
33 | /// Provides a computed property for the progress line's fill.
34 | ///
35 | /// If a custom progress color (`progressColor`) is set, it returns that color.
36 | /// Otherwise, it defaults to system blue color (`Color(.systemBlue)`).
37 | var progressFill: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
38 | if let progressColor {
39 | return AnyShapeStyle(progressColor)
40 | } else {
41 | return AnyShapeStyle(Color(.systemBlue))
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:41:25: error: 'Color' is only available in macOS 10.15 or newer
30 | }
31 |
32 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
33 | /// Provides a computed property for the progress line's fill.
34 | ///
35 | /// If a custom progress color (`progressColor`) is set, it returns that color.
36 | /// Otherwise, it defaults to system blue color (`Color(.systemBlue)`).
37 | var progressFill: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
38 | if let progressColor {
39 | return AnyShapeStyle(progressColor)
40 | } else {
41 | return AnyShapeStyle(Color(.systemBlue))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:41:25: error: 'init(_:)' is only available in macOS 10.15 or newer
30 | }
31 |
32 | extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
33 | /// Provides a computed property for the progress line's fill.
34 | ///
35 | /// If a custom progress color (`progressColor`) is set, it returns that color.
36 | /// Otherwise, it defaults to system blue color (`Color(.systemBlue)`).
37 | var progressFill: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
38 | if let progressColor {
39 | return AnyShapeStyle(progressColor)
40 | } else {
41 | return AnyShapeStyle(Color(.systemBlue))
| |- error: 'init(_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:65:30: error: 'Color' is only available in macOS 10.15 or newer
44 | }
45 |
46 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
47 | /// Sets the style of the track, including its width and color.
48 | ///
:
57 | /// .trackStyle(lineWidth: 5, color: .gray)
58 | /// ```
59 | func trackStyle(lineWidth: CGFloat, color: Color? = nil) -> Self {
| `- note: add @available attribute to enclosing instance method
60 | var copy = self
61 | copy.lineWidth = lineWidth
:
63 | copy.trackColor = color ?? Color(.systemGray5)
64 | #else
65 | copy.trackColor = color ?? Color.gray
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | #endif
67 | return copy
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:65:36: error: 'gray' is only available in macOS 10.15 or newer
44 | }
45 |
46 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
47 | /// Sets the style of the track, including its width and color.
48 | ///
:
57 | /// .trackStyle(lineWidth: 5, color: .gray)
58 | /// ```
59 | func trackStyle(lineWidth: CGFloat, color: Color? = nil) -> Self {
| `- note: add @available attribute to enclosing instance method
60 | var copy = self
61 | copy.lineWidth = lineWidth
:
63 | copy.trackColor = color ?? Color(.systemGray5)
64 | #else
65 | copy.trackColor = color ?? Color.gray
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | #endif
67 | return copy
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:118:29: error: 'Color' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
93 | /// Adds visual markers (ticks) to the slider to enhance user interaction.
94 | ///
:
104 | /// .showTicks(count: 10, size: CGSize(width: 2, height: 5), color: .black)
105 | /// ```
106 | func showTicks(
| `- note: add @available attribute to enclosing instance method
107 | count: Int,
108 | size: CGSize? = nil,
:
116 | copy.tickColor = color ?? Color(.systemGray2)
117 | #else
118 | copy.tickColor = color ?? Color.gray
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | #endif
120 | return copy
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveSlider/Utilities/Extensions/PackageExtentions/AdaptiveSlider+Ext.swift:118:35: error: 'gray' is only available in macOS 10.15 or newer
90 | }
91 |
92 | public extension AdaptiveSlider {
| `- note: add @available attribute to enclosing extension
93 | /// Adds visual markers (ticks) to the slider to enhance user interaction.
94 | ///
:
104 | /// .showTicks(count: 10, size: CGSize(width: 2, height: 5), color: .black)
105 | /// ```
106 | func showTicks(
| `- note: add @available attribute to enclosing instance method
107 | count: Int,
108 | size: CGSize? = nil,
:
116 | copy.tickColor = color ?? Color(.systemGray2)
117 | #else
118 | copy.tickColor = color ?? Color.gray
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | #endif
120 | return copy
BUILD FAILURE 6.2 macosSpm