Build Information
Failed to build JunoUI, reference main (c7c996
), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 09:06:50 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/christianselig/JunoSlider.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/christianselig/JunoSlider
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c7c9967 Create LICENSE
Cloned https://github.com/christianselig/JunoSlider.git
Revision (git rev-parse @):
c7c9967c0107b3753bf45f23babba7f94d82a684
SUCCESS checkout https://github.com/christianselig/JunoSlider.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/christianselig/JunoSlider.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module JunoUI
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:5:6: error: 'Binding' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
6 | let maxSliderValue: CGFloat
7 | let baseHeight: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
10 | let editingChanged: ((Bool) -> Void)?
11 |
12 | @State private var isGestureActive: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
13 | @State private var startingSliderValue: CGFloat?
14 | @State private var sliderWidth = 10.0 // Just an initial value to prevent division by 0
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
11 |
12 | @State private var isGestureActive: Bool = false
13 | @State private var startingSliderValue: CGFloat?
| `- error: 'State' is only available in macOS 10.15 or newer
14 | @State private var sliderWidth = 10.0 // Just an initial value to prevent division by 0
15 | @State private var isAtTrackExtremity = false
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:14:6: error: 'State' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
12 | @State private var isGestureActive: Bool = false
13 | @State private var startingSliderValue: CGFloat?
14 | @State private var sliderWidth = 10.0 // Just an initial value to prevent division by 0
| `- error: 'State' is only available in macOS 10.15 or newer
15 | @State private var isAtTrackExtremity = false
16 |
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
13 | @State private var startingSliderValue: CGFloat?
14 | @State private var sliderWidth = 10.0 // Just an initial value to prevent division by 0
15 | @State private var isAtTrackExtremity = false
| `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 | /// Create a slider that expands on selection.
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:25:30: error: 'Binding' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
23 | /// - label: A string to describe what the data the slider represents
24 | /// - editingChanged: An optional block that is called when the slider updates to sliding and when it stops
25 | public init(sliderValue: Binding<CGFloat>, maxSliderValue: CGFloat, baseHeight: CGFloat = 9.0, expandedHeight: CGFloat = 20.0, label: String, editingChanged: ((Bool) -> Void)? = nil) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self._sliderValue = sliderValue
27 | self.maxSliderValue = maxSliderValue
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:34:27: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
[4/4] Compiling JunoUI JunoSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:5:6: error: 'Binding' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
6 | let maxSliderValue: CGFloat
7 | let baseHeight: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
10 | let editingChanged: ((Bool) -> Void)?
11 |
12 | @State private var isGestureActive: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
13 | @State private var startingSliderValue: CGFloat?
14 | @State private var sliderWidth = 10.0 // Just an initial value to prevent division by 0
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
11 |
12 | @State private var isGestureActive: Bool = false
13 | @State private var startingSliderValue: CGFloat?
| `- error: 'State' is only available in macOS 10.15 or newer
14 | @State private var sliderWidth = 10.0 // Just an initial value to prevent division by 0
15 | @State private var isAtTrackExtremity = false
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:14:6: error: 'State' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
12 | @State private var isGestureActive: Bool = false
13 | @State private var startingSliderValue: CGFloat?
14 | @State private var sliderWidth = 10.0 // Just an initial value to prevent division by 0
| `- error: 'State' is only available in macOS 10.15 or newer
15 | @State private var isAtTrackExtremity = false
16 |
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
13 | @State private var startingSliderValue: CGFloat?
14 | @State private var sliderWidth = 10.0 // Just an initial value to prevent division by 0
15 | @State private var isAtTrackExtremity = false
| `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 | /// Create a slider that expands on selection.
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:25:30: error: 'Binding' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
23 | /// - label: A string to describe what the data the slider represents
24 | /// - editingChanged: An optional block that is called when the slider updates to sliding and when it stops
25 | public init(sliderValue: Binding<CGFloat>, maxSliderValue: CGFloat, baseHeight: CGFloat = 9.0, expandedHeight: CGFloat = 20.0, label: String, editingChanged: ((Bool) -> Void)? = nil) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self._sliderValue = sliderValue
27 | self.maxSliderValue = maxSliderValue
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:34:27: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:35:9: error: 'ZStack' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
37 | Color.orange.opacity(0.0001)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:37:13: error: 'Color' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
37 | Color.orange.opacity(0.0001)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .frame(height: 40.0)
39 |
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:37:19: error: 'orange' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
37 | Color.orange.opacity(0.0001)
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .frame(height: 40.0)
39 |
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:37:26: error: 'opacity' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
37 | Color.orange.opacity(0.0001)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .frame(height: 40.0)
39 |
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:38:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
37 | Color.orange.opacity(0.0001)
38 | .frame(height: 40.0)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 |
40 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:40:13: error: 'Capsule' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
38 | .frame(height: 40.0)
39 |
40 | Capsule()
| |- error: 'Capsule' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | .background {
42 | GeometryReader { proxy in
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:41:18: error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
39 |
40 | Capsule()
41 | .background {
| |- error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
42 | GeometryReader { proxy in
43 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:42:21: error: 'GeometryReader' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
40 | Capsule()
41 | .background {
42 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | Color.clear
44 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:43:25: error: 'Color' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
41 | .background {
42 | GeometryReader { proxy in
43 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | .onAppear {
45 | sliderWidth = proxy.size.width
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:43:31: error: 'clear' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
41 | .background {
42 | GeometryReader { proxy in
43 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | .onAppear {
45 | sliderWidth = proxy.size.width
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:44:30: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
42 | GeometryReader { proxy in
43 | Color.clear
44 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | sliderWidth = proxy.size.width
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:45:33: error: setter for 'sliderWidth' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
43 | Color.clear
44 | .onAppear {
45 | sliderWidth = proxy.size.width
| |- error: setter for 'sliderWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:49:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
47 | }
48 | }
49 | .frame(height: isGestureActive ? expandedHeight : baseHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .foregroundStyle(
51 | Color(white: 0.1, opacity: 0.5)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:50:18: error: 'foregroundStyle' is only available in macOS 12.0 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
48 | }
49 | .frame(height: isGestureActive ? expandedHeight : baseHeight)
50 | .foregroundStyle(
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
51 | Color(white: 0.1, opacity: 0.5)
52 | .shadow(.inner(color: .black.opacity(0.3), radius: 3.0, y: 2.0))
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:51:21: error: 'Color' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
49 | .frame(height: isGestureActive ? expandedHeight : baseHeight)
50 | .foregroundStyle(
51 | Color(white: 0.1, opacity: 0.5)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .shadow(.inner(color: .black.opacity(0.3), radius: 3.0, y: 2.0))
53 | )
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:51:21: error: 'init(_:white:opacity:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
49 | .frame(height: isGestureActive ? expandedHeight : baseHeight)
50 | .foregroundStyle(
51 | Color(white: 0.1, opacity: 0.5)
| |- error: 'init(_:white:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .shadow(.inner(color: .black.opacity(0.3), radius: 3.0, y: 2.0))
53 | )
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:52:26: error: 'shadow' is only available in macOS 13.0 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
50 | .foregroundStyle(
51 | Color(white: 0.1, opacity: 0.5)
52 | .shadow(.inner(color: .black.opacity(0.3), radius: 3.0, y: 2.0))
| |- error: 'shadow' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
53 | )
54 | .shadow(color: .white.opacity(0.2), radius: 1, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:52:48: error: 'black' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
50 | .foregroundStyle(
51 | Color(white: 0.1, opacity: 0.5)
52 | .shadow(.inner(color: .black.opacity(0.3), radius: 3.0, y: 2.0))
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | )
54 | .shadow(color: .white.opacity(0.2), radius: 1, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:52:54: error: 'opacity' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
50 | .foregroundStyle(
51 | Color(white: 0.1, opacity: 0.5)
52 | .shadow(.inner(color: .black.opacity(0.3), radius: 3.0, y: 2.0))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | )
54 | .shadow(color: .white.opacity(0.2), radius: 1, y: 1)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:54:18: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
52 | .shadow(.inner(color: .black.opacity(0.3), radius: 3.0, y: 2.0))
53 | )
54 | .shadow(color: .white.opacity(0.2), radius: 1, y: 1)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .overlay(alignment: .leading) {
56 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:54:33: error: 'white' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
52 | .shadow(.inner(color: .black.opacity(0.3), radius: 3.0, y: 2.0))
53 | )
54 | .shadow(color: .white.opacity(0.2), radius: 1, y: 1)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .overlay(alignment: .leading) {
56 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:54:39: error: 'opacity' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
52 | .shadow(.inner(color: .black.opacity(0.3), radius: 3.0, y: 2.0))
53 | )
54 | .shadow(color: .white.opacity(0.2), radius: 1, y: 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .overlay(alignment: .leading) {
56 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:55:18: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
53 | )
54 | .shadow(color: .white.opacity(0.2), radius: 1, y: 1)
55 | .overlay(alignment: .leading) {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
56 | Capsule()
57 | .overlay(alignment: .trailing) {
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:55:38: error: 'leading' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
53 | )
54 | .shadow(color: .white.opacity(0.2), radius: 1, y: 1)
55 | .overlay(alignment: .leading) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | Capsule()
57 | .overlay(alignment: .trailing) {
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:56:21: error: 'Capsule' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
54 | .shadow(color: .white.opacity(0.2), radius: 1, y: 1)
55 | .overlay(alignment: .leading) {
56 | Capsule()
| |- error: 'Capsule' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .overlay(alignment: .trailing) {
58 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:57:26: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
55 | .overlay(alignment: .leading) {
56 | Capsule()
57 | .overlay(alignment: .trailing) {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
58 | Circle()
59 | .foregroundStyle(Color.white)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:57:46: error: 'trailing' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
55 | .overlay(alignment: .leading) {
56 | Capsule()
57 | .overlay(alignment: .trailing) {
| |- error: 'trailing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | Circle()
59 | .foregroundStyle(Color.white)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:58:29: error: 'Circle' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
56 | Capsule()
57 | .overlay(alignment: .trailing) {
58 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .foregroundStyle(Color.white)
60 | .shadow(radius: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:59:34: error: 'foregroundStyle' is only available in macOS 12.0 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
57 | .overlay(alignment: .trailing) {
58 | Circle()
59 | .foregroundStyle(Color.white)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
60 | .shadow(radius: 1.0)
61 | .padding(innerCirclePadding)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:59:50: error: 'Color' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
57 | .overlay(alignment: .trailing) {
58 | Circle()
59 | .foregroundStyle(Color.white)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .shadow(radius: 1.0)
61 | .padding(innerCirclePadding)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:59:56: error: 'white' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
57 | .overlay(alignment: .trailing) {
58 | Circle()
59 | .foregroundStyle(Color.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .shadow(radius: 1.0)
61 | .padding(innerCirclePadding)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:60:34: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
58 | Circle()
59 | .foregroundStyle(Color.white)
60 | .shadow(radius: 1.0)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .padding(innerCirclePadding)
62 | .opacity(isGestureActive ? 1.0 : 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:61:34: error: 'padding' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
59 | .foregroundStyle(Color.white)
60 | .shadow(radius: 1.0)
61 | .padding(innerCirclePadding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | .opacity(isGestureActive ? 1.0 : 0.0)
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:62:34: error: 'opacity' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
60 | .shadow(radius: 1.0)
61 | .padding(innerCirclePadding)
62 | .opacity(isGestureActive ? 1.0 : 0.0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | .foregroundStyle(Color(white: isGestureActive ? 0.85 : 1.0))
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:64:26: error: 'foregroundStyle' is only available in macOS 12.0 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
62 | .opacity(isGestureActive ? 1.0 : 0.0)
63 | }
64 | .foregroundStyle(Color(white: isGestureActive ? 0.85 : 1.0))
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
65 | .frame(width: calculateProgressWidth(), height: isGestureActive ? expandedHeight : baseHeight)
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:64:42: error: 'Color' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
62 | .opacity(isGestureActive ? 1.0 : 0.0)
63 | }
64 | .foregroundStyle(Color(white: isGestureActive ? 0.85 : 1.0))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .frame(width: calculateProgressWidth(), height: isGestureActive ? expandedHeight : baseHeight)
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:64:42: error: 'init(_:white:opacity:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
62 | .opacity(isGestureActive ? 1.0 : 0.0)
63 | }
64 | .foregroundStyle(Color(white: isGestureActive ? 0.85 : 1.0))
| |- error: 'init(_:white:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .frame(width: calculateProgressWidth(), height: isGestureActive ? expandedHeight : baseHeight)
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:65:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
63 | }
64 | .foregroundStyle(Color(white: isGestureActive ? 0.85 : 1.0))
65 | .frame(width: calculateProgressWidth(), height: isGestureActive ? expandedHeight : baseHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | }
67 | .clipShape(.capsule) // Best attempt at fixing a bug https://twitter.com/ChristianSelig/status/1757139789457829902
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:67:18: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
65 | .frame(width: calculateProgressWidth(), height: isGestureActive ? expandedHeight : baseHeight)
66 | }
67 | .clipShape(.capsule) // Best attempt at fixing a bug https://twitter.com/ChristianSelig/status/1757139789457829902
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .contentShape(.hoverEffect, .capsule)
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:67:29: error: 'capsule' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
65 | .frame(width: calculateProgressWidth(), height: isGestureActive ? expandedHeight : baseHeight)
66 | }
67 | .clipShape(.capsule) // Best attempt at fixing a bug https://twitter.com/ChristianSelig/status/1757139789457829902
| |- error: 'capsule' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | .contentShape(.hoverEffect, .capsule)
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:68:18: error: 'contentShape(_:_:eoFill:)' is only available in macOS 12.0 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
66 | }
67 | .clipShape(.capsule) // Best attempt at fixing a bug https://twitter.com/ChristianSelig/status/1757139789457829902
68 | .contentShape(.hoverEffect, .capsule)
| |- error: 'contentShape(_:_:eoFill:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
69 | }
70 | .gesture(DragGesture(minimumDistance: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:68:32: error: 'hoverEffect' is unavailable in macOS
66 | }
67 | .clipShape(.capsule) // Best attempt at fixing a bug https://twitter.com/ChristianSelig/status/1757139789457829902
68 | .contentShape(.hoverEffect, .capsule)
| `- error: 'hoverEffect' is unavailable in macOS
69 | }
70 | .gesture(DragGesture(minimumDistance: 0.0)
SwiftUICore.ContentShapeKinds:16:23: note: 'hoverEffect' has been explicitly marked unavailable here
14 | @available(macOS, unavailable)
15 | @available(watchOS, unavailable)
16 | public static let hoverEffect: ContentShapeKinds
| `- note: 'hoverEffect' has been explicitly marked unavailable here
17 | @available(iOS, unavailable)
18 | @available(tvOS, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:68:46: error: 'capsule' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
66 | }
67 | .clipShape(.capsule) // Best attempt at fixing a bug https://twitter.com/ChristianSelig/status/1757139789457829902
68 | .contentShape(.hoverEffect, .capsule)
| |- error: 'capsule' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | }
70 | .gesture(DragGesture(minimumDistance: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:70:10: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
68 | .contentShape(.hoverEffect, .capsule)
69 | }
70 | .gesture(DragGesture(minimumDistance: 0.0)
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .onChanged { value in
72 | if startingSliderValue == nil {
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:70:18: error: 'DragGesture' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
68 | .contentShape(.hoverEffect, .capsule)
69 | }
70 | .gesture(DragGesture(minimumDistance: 0.0)
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .onChanged { value in
72 | if startingSliderValue == nil {
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:70:18: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
68 | .contentShape(.hoverEffect, .capsule)
69 | }
70 | .gesture(DragGesture(minimumDistance: 0.0)
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
71 | .onChanged { value in
72 | if startingSliderValue == nil {
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:71:14: error: 'onChanged' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
69 | }
70 | .gesture(DragGesture(minimumDistance: 0.0)
71 | .onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | if startingSliderValue == nil {
73 | startingSliderValue = sliderValue
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:73:21: error: setter for 'startingSliderValue' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
71 | .onChanged { value in
72 | if startingSliderValue == nil {
73 | startingSliderValue = sliderValue
| |- error: setter for 'startingSliderValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | isGestureActive = true
75 | editingChanged?(true)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:74:21: error: setter for 'isGestureActive' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
72 | if startingSliderValue == nil {
73 | startingSliderValue = sliderValue
74 | isGestureActive = true
| |- error: setter for 'isGestureActive' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | editingChanged?(true)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:81:17: error: setter for 'sliderValue' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
79 | let initialPercentage = (startingSliderValue ?? sliderValue) / maxSliderValue
80 | let newPercentage = min(1.0, max(0.0, initialPercentage + percentagePointsIncreased))
81 | sliderValue = newPercentage * maxSliderValue
| |- error: setter for 'sliderValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 |
83 | if newPercentage == 0.0 && !isAtTrackExtremity {
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:84:21: error: setter for 'isAtTrackExtremity' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
82 |
83 | if newPercentage == 0.0 && !isAtTrackExtremity {
84 | isAtTrackExtremity = true
| |- error: setter for 'isAtTrackExtremity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | } else if newPercentage == 1.0 && !isAtTrackExtremity {
86 | isAtTrackExtremity = true
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:86:21: error: setter for 'isAtTrackExtremity' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
84 | isAtTrackExtremity = true
85 | } else if newPercentage == 1.0 && !isAtTrackExtremity {
86 | isAtTrackExtremity = true
| |- error: setter for 'isAtTrackExtremity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | } else if newPercentage > 0.0 && newPercentage < 1.0 {
88 | isAtTrackExtremity = false
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:88:21: error: setter for 'isAtTrackExtremity' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
86 | isAtTrackExtremity = true
87 | } else if newPercentage > 0.0 && newPercentage < 1.0 {
88 | isAtTrackExtremity = false
| |- error: setter for 'isAtTrackExtremity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:91:14: error: 'onEnded' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
89 | }
90 | }
91 | .onEnded { value in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | // Check if they just tapped somewhere on the bar rather than actually dragging, in which case update the progress to the position they tapped
93 | if value.translation.width == 0.0 {
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:96:21: error: 'withAnimation' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
94 | let newPercentage = value.location.x / sliderWidth
95 |
96 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | sliderValue = newPercentage * maxSliderValue
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:97:25: error: setter for 'sliderValue' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
95 |
96 | withAnimation {
97 | sliderValue = newPercentage * maxSliderValue
| |- error: setter for 'sliderValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:101:17: error: setter for 'startingSliderValue' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
99 | }
100 |
101 | startingSliderValue = nil
| |- error: setter for 'startingSliderValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | isGestureActive = false
103 | editingChanged?(false)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:102:17: error: setter for 'isGestureActive' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
100 |
101 | startingSliderValue = nil
102 | isGestureActive = false
| |- error: setter for 'isGestureActive' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | editingChanged?(false)
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:106:10: error: 'hoverEffect(_:isEnabled:)' is unavailable in macOS
104 | }
105 | )
106 | .hoverEffect(.highlight)
| `- error: 'hoverEffect(_:isEnabled:)' is unavailable in macOS
107 | .animation(.default, value: isGestureActive)
108 | .accessibilityRepresentation {
SwiftUI.View:5:29: note: 'hoverEffect(_:isEnabled:)' has been explicitly marked unavailable here
3 | @available(watchOS, unavailable)
4 | extension View {
5 | nonisolated public func hoverEffect(_ effect: some CustomHoverEffect = .automatic, isEnabled: Bool = true) -> some View
| `- note: 'hoverEffect(_:isEnabled:)' has been explicitly marked unavailable here
6 |
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:106:23: error: 'highlight' is unavailable in macOS
104 | }
105 | )
106 | .hoverEffect(.highlight)
| `- error: 'highlight' is unavailable in macOS
107 | .animation(.default, value: isGestureActive)
108 | .accessibilityRepresentation {
SwiftUI.CustomHoverEffect:5:23: note: 'highlight' has been explicitly marked unavailable here
3 | @available(watchOS, unavailable)
4 | extension CustomHoverEffect where Self == HighlightHoverEffect {
5 | public static var highlight: HighlightHoverEffect { get }
| `- note: 'highlight' has been explicitly marked unavailable here
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:107:10: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
105 | )
106 | .hoverEffect(.highlight)
107 | .animation(.default, value: isGestureActive)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | .accessibilityRepresentation {
109 | Slider(value: $sliderValue, in: 0.0 ... maxSliderValue, label: {
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:107:21: error: 'default' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
105 | )
106 | .hoverEffect(.highlight)
107 | .animation(.default, value: isGestureActive)
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | .accessibilityRepresentation {
109 | Slider(value: $sliderValue, in: 0.0 ... maxSliderValue, label: {
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:108:10: error: 'accessibilityRepresentation(representation:)' is only available in macOS 12.0 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
106 | .hoverEffect(.highlight)
107 | .animation(.default, value: isGestureActive)
108 | .accessibilityRepresentation {
| |- error: 'accessibilityRepresentation(representation:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
109 | Slider(value: $sliderValue, in: 0.0 ... maxSliderValue, label: {
110 | Text(label)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:108:38: 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
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
106 | .hoverEffect(.highlight)
107 | .animation(.default, value: isGestureActive)
108 | .accessibilityRepresentation {
| |- 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
109 | Slider(value: $sliderValue, in: 0.0 ... maxSliderValue, label: {
110 | Text(label)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:109:13: 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
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
107 | .animation(.default, value: isGestureActive)
108 | .accessibilityRepresentation {
109 | Slider(value: $sliderValue, in: 0.0 ... maxSliderValue, label: {
| |- 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
110 | Text(label)
111 | }, onEditingChanged: { editingChanged in
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:109:13: error: 'Slider' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
107 | .animation(.default, value: isGestureActive)
108 | .accessibilityRepresentation {
109 | Slider(value: $sliderValue, in: 0.0 ... maxSliderValue, label: {
| |- error: 'Slider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | Text(label)
111 | }, onEditingChanged: { editingChanged in
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:109:13: error: 'init(value:in:label:onEditingChanged:)' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
107 | .animation(.default, value: isGestureActive)
108 | .accessibilityRepresentation {
109 | Slider(value: $sliderValue, in: 0.0 ... maxSliderValue, label: {
| |- error: 'init(value:in:label:onEditingChanged:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | Text(label)
111 | }, onEditingChanged: { editingChanged in
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:110:17: 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
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
108 | .accessibilityRepresentation {
109 | Slider(value: $sliderValue, in: 0.0 ... maxSliderValue, label: {
110 | Text(label)
| |- 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
111 | }, onEditingChanged: { editingChanged in
112 | self.editingChanged?(editingChanged)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:110:17: error: 'Text' is only available in macOS 10.15 or newer
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
108 | .accessibilityRepresentation {
109 | Slider(value: $sliderValue, in: 0.0 ... maxSliderValue, label: {
110 | Text(label)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | }, onEditingChanged: { editingChanged in
112 | self.editingChanged?(editingChanged)
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:109:76: 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
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
107 | .animation(.default, value: isGestureActive)
108 | .accessibilityRepresentation {
109 | Slider(value: $sliderValue, in: 0.0 ... maxSliderValue, label: {
| |- 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
110 | Text(label)
111 | }, onEditingChanged: { editingChanged in
/Users/admin/builder/spi-builder-workspace/Sources/JunoUI/JunoSlider.swift:108:38: 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
2 |
3 | /// A slider that expands on selection.
4 | public struct JunoSlider: View {
| `- note: add @available attribute to enclosing struct
5 | @Binding var sliderValue: CGFloat
6 | let maxSliderValue: CGFloat
:
32 | }
33 |
34 | public var body: some View {
| `- note: add @available attribute to enclosing property
35 | ZStack {
36 | // visionOS (on device) does not like when drag targets are smaller than 40pt tall, so add an almost-transparent (as it still needs to be interactive) that enforces an effective minimum height. If the slider is tall than this on its own it's essentially just ignored.
:
106 | .hoverEffect(.highlight)
107 | .animation(.default, value: isGestureActive)
108 | .accessibilityRepresentation {
| |- 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
109 | Slider(value: $sliderValue, in: 0.0 ... maxSliderValue, label: {
110 | Text(label)
BUILD FAILURE 6.0 macosSpm