The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SteppedSlider, reference 1.0.0 (367251), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 15:09:43 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                            |- error: 'opacity' is only available in macOS 10.15 or newer
    |                                            `- note: add 'if #available' version check
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:94:57: error: 'black' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                                         |- error: 'black' is only available in macOS 10.15 or newer
    |                                                         `- note: add 'if #available' version check
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:94:108: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                                                                                            |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                                                                                                            `- note: add 'if #available' version check
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:95:13: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
    |             |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
 97 |           }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:95:13: error: 'Color' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
    |             |- error: 'Color' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
 97 |           }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:95:19: error: 'black' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
    |                   |- error: 'black' is only available in macOS 10.15 or newer
    |                   `- note: add 'if #available' version check
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
 97 |           }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:96:13: error: 'LinearGradient' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |             |- error: 'LinearGradient' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 97 |           }
 98 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:96:38: error: 'black' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                      |- error: 'black' is only available in macOS 10.15 or newer
    |                                      `- note: add 'if #available' version check
 97 |           }
 98 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:96:46: error: 'black' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                              |- error: 'black' is only available in macOS 10.15 or newer
    |                                              `- note: add 'if #available' version check
 97 |           }
 98 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:96:52: error: 'opacity' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                                    |- error: 'opacity' is only available in macOS 10.15 or newer
    |                                                    `- note: add 'if #available' version check
 97 |           }
 98 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:96:108: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                                                                                            |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                                                                                                            `- note: add 'if #available' version check
 97 |           }
 98 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:93:30: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 91 |           Color.black
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
    |                              |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:93:11: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 91 |           Color.black
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
    |           |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:88:13: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 86 |       .scrollPosition(id: $scrollIndex, anchor: .center)
 87 |       .scrollTargetBehavior(.snap(step: spacing + itemWidth))
 88 |       .mask {
    |             |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 89 |         switch horizontalEdgeMask {
 90 |         case .hidden:
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:100:8: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 98 |         }
 99 |       }
100 |       .overlay(
    |        |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
101 |         anchorView()
102 |       )
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:103:8: error: 'sensoryFeedback(_:trigger:)' is only available in macOS 14.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
101 |         anchorView()
102 |       )
103 |       .sensoryFeedback(.selection, trigger: scrollIndex)
    |        |- error: 'sensoryFeedback(_:trigger:)' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
104 |       .onGeometryChange(for: CGSize.self, of: \.size, action: {
105 |         contentSize = $0
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:104:8: error: 'onGeometryChange(for:of:action:)' is only available in macOS 13.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
102 |       )
103 |       .sensoryFeedback(.selection, trigger: scrollIndex)
104 |       .onGeometryChange(for: CGSize.self, of: \.size, action: {
    |        |- error: 'onGeometryChange(for:of:action:)' is only available in macOS 13.0 or newer
    |        `- note: add 'if #available' version check
105 |         contentSize = $0
106 |       })
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:105:9: error: setter for 'contentSize' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
103 |       .sensoryFeedback(.selection, trigger: scrollIndex)
104 |       .onGeometryChange(for: CGSize.self, of: \.size, action: {
105 |         contentSize = $0
    |         |- error: setter for 'contentSize' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
106 |       })
107 |       .onChange(of: scrollIndex ?? 0, { oldValue, newValue in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:107:8: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
105 |         contentSize = $0
106 |       })
107 |       .onChange(of: scrollIndex ?? 0, { oldValue, newValue in
    |        |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
108 |         value = range.lowerBound + CGFloat(newValue) * steps
109 |         onEditing()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:108:9: error: setter for 'value' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
106 |       })
107 |       .onChange(of: scrollIndex ?? 0, { oldValue, newValue in
108 |         value = range.lowerBound + CGFloat(newValue) * steps
    |         |- error: setter for 'value' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
109 |         onEditing()
110 |       })
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:111:8: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
109 |         onEditing()
110 |       })
111 |       .onChange(of: value, { oldValue, newValue in
    |        |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
112 |
113 |         // 履歴をタップして反映させる時, 他のスライダーに連動して反映する時
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:119:9: error: 'withAnimation' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
117 |         guard index != scrollIndex else { return }
118 |
119 |         withAnimation(animation) {
    |         |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
120 |           scrollProxy.scrollTo(index, anchor: .center)
121 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:123:8: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
121 |         }
122 |       })
123 |       .onAppear {
    |        |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
124 |         Task { @MainActor in
125 |           withAnimation(animation) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:124:9: error: 'Task' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
122 |       })
123 |       .onAppear {
124 |         Task { @MainActor in
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
125 |           withAnimation(animation) {
126 |             scrollProxy.scrollTo(currentIndex, anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:124:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
122 |       })
123 |       .onAppear {
124 |         Task { @MainActor in
    |         |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
125 |           withAnimation(animation) {
126 |             scrollProxy.scrollTo(currentIndex, anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:125:11: error: 'withAnimation' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
123 |       .onAppear {
124 |         Task { @MainActor in
125 |           withAnimation(animation) {
    |           |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
126 |             scrollProxy.scrollTo(currentIndex, anchor: .center)
127 |           }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:143:13: error: 'scrollTransition(_:axis:transition:)' is only available in macOS 14.0 or newer
139 |
140 |
141 | struct ScrollTransitionModifier: ViewModifier {
    |        `- note: add @available attribute to enclosing struct
142 |   func body(content: Content) -> some View {
    |        `- note: add @available attribute to enclosing instance method
143 |     content.scrollTransition { content, phase in
    |             |- error: 'scrollTransition(_:axis:transition:)' is only available in macOS 14.0 or newer
    |             `- note: add 'if #available' version check
144 |       content
145 |         .opacity(phase.isIdentity ? 1 : 0.3)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:145:10: error: 'opacity' is only available in macOS 14.0 or newer
139 |
140 |
141 | struct ScrollTransitionModifier: ViewModifier {
    |        `- note: add @available attribute to enclosing struct
142 |   func body(content: Content) -> some View {
    |        `- note: add @available attribute to enclosing instance method
143 |     content.scrollTransition { content, phase in
144 |       content
145 |         .opacity(phase.isIdentity ? 1 : 0.3)
    |          |- error: 'opacity' is only available in macOS 14.0 or newer
    |          `- note: add 'if #available' version check
146 |     }
147 |   }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Emitting module SteppedSlider
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SnapScrollBehavior.swift:38:21: error: 'ScrollTarget' is only available in macOS 14.0 or newer
12 |
13 | /// A structure that defines a snapping behavior for scroll targets, conforming to `ScrollTargetBehavior`.
14 | struct SnapScrollTargetBehavior: ScrollTargetBehavior {
   |        `- note: add @available attribute to enclosing struct
15 |   /// The step value to which the scroll target should snap.
16 |   let step: Double
   :
35 |   }
36 |
37 |   func updateTarget(
   |        `- note: add @available attribute to enclosing instance method
38 |     _ target: inout ScrollTarget,
   |                     `- error: 'ScrollTarget' is only available in macOS 14.0 or newer
39 |     context: TargetContext
40 |   ) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SnapScrollBehavior.swift:49:11: error: 'ScrollTargetBehavior' is only available in macOS 14.0 or newer
47 | }
48 |
49 | extension ScrollTargetBehavior where Self == SnapScrollTargetBehavior {
   | |         `- error: 'ScrollTargetBehavior' is only available in macOS 14.0 or newer
   | `- note: add @available attribute to enclosing extension
50 |   /// Creates a `SnapScrollTargetBehavior` with the specified step.
51 |   /// - Parameter step: The step value to which the scroll target should snap.
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:9:4: error: 'Binding' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    |    `- error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 |   @State private var currentIndex: Int
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:11:4: error: 'State' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
 10 |
 11 |   @State private var currentIndex: Int
    |    `- error: 'State' is only available in macOS 10.15 or newer
 12 |   @State private var scrollIndex: Int?
 13 |   @State private var contentSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:12:4: error: 'State' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
 10 |
 11 |   @State private var currentIndex: Int
 12 |   @State private var scrollIndex: Int?
    |    `- error: 'State' is only available in macOS 10.15 or newer
 13 |   @State private var contentSize: CGSize = .zero
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:13:4: error: 'State' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 11 |   @State private var currentIndex: Int
 12 |   @State private var scrollIndex: Int?
 13 |   @State private var contentSize: CGSize = .zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 14 |
 15 |   private let itemWidth: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:34:18: error: 'Animation' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 32 |
 33 |   let horizontalEdgeMask: HorizontalEdgeMask
 34 |   let animation: Animation?
    |                  `- error: 'Animation' is only available in macOS 10.15 or newer
 35 |
 36 |   let segmentModifier: Modifier
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:39:12: error: 'Binding' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
    |            `- error: 'Binding' is only available in macOS 10.15 or newer
 40 |     range: ClosedRange<CGFloat>,
 41 |     steps: CGFloat,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:45:16: error: 'Animation' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 43 |     spacing: CGFloat = 0,
 44 |     horizontalEdgeMask: HorizontalEdgeMask = .visible(width: 12),
 45 |     animation: Animation? = .default,
    |                `- error: 'Animation' is only available in macOS 10.15 or newer
 46 |     segmentModifier: Modifier = EmptyModifier(),
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:47:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 45 |     animation: Animation? = .default,
 46 |     segmentModifier: Modifier = EmptyModifier(),
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 48 |     @ViewBuilder segmentView: @MainActor @escaping (Int, Int) -> Segment,
 49 |     @ViewBuilder segmentOverlayView: @MainActor @escaping (Int, Int) -> SegmentOverlay,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:48:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 46 |     segmentModifier: Modifier = EmptyModifier(),
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
 48 |     @ViewBuilder segmentView: @MainActor @escaping (Int, Int) -> Segment,
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 49 |     @ViewBuilder segmentOverlayView: @MainActor @escaping (Int, Int) -> SegmentOverlay,
 50 |     onEditing: @MainActor @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:49:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
 48 |     @ViewBuilder segmentView: @MainActor @escaping (Int, Int) -> Segment,
 49 |     @ViewBuilder segmentOverlayView: @MainActor @escaping (Int, Int) -> SegmentOverlay,
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 50 |     onEditing: @MainActor @escaping () -> Void
 51 |   ) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:45:30: error: 'default' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 43 |     spacing: CGFloat = 0,
 44 |     horizontalEdgeMask: HorizontalEdgeMask = .visible(width: 12),
 45 |     animation: Animation? = .default,
    |                              `- error: 'default' is only available in macOS 10.15 or newer
 46 |     segmentModifier: Modifier = EmptyModifier(),
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:46:33: error: 'EmptyModifier' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 44 |     horizontalEdgeMask: HorizontalEdgeMask = .visible(width: 12),
 45 |     animation: Animation? = .default,
 46 |     segmentModifier: Modifier = EmptyModifier(),
    |                                 `- error: 'EmptyModifier' is only available in macOS 10.15 or newer
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
 48 |     @ViewBuilder segmentView: @MainActor @escaping (Int, Int) -> Segment,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:69:25: error: 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              |          `- error: 'View' is only available in macOS 10.15 or newer
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:7:37: error: 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               |                     `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:7:52: error: 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               |                                    `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:7:74: error: 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               |                                                          `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:7:90: error: 'ViewModifier' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               |                                                                          `- error: 'ViewModifier' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:142:39: error: 'View' is only available in macOS 10.15 or newer
139 |
140 |
141 | struct ScrollTransitionModifier: ViewModifier {
    |        `- note: add @available attribute to enclosing struct
142 |   func body(content: Content) -> some View {
    |        |                              `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
143 |     content.scrollTransition { content, phase in
144 |       content
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:152:4: error: 'Previewable()' is only available in macOS 14.0 or newer
150 | #Preview {
151 |
152 |   @Previewable @State var value: CGFloat = 5.8
    |    |- error: 'Previewable()' is only available in macOS 14.0 or newer
    |    `- note: add 'if #available' version check
153 |
154 |   let range: ClosedRange<CGFloat> = 1...50
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:152:17: error: 'State' is only available in macOS 10.15 or newer
150 | #Preview {
151 |
152 |   @Previewable @State var value: CGFloat = 5.8
    |                 |- error: 'State' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
153 |
154 |   let range: ClosedRange<CGFloat> = 1...50
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:150:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
148 | }
149 |
150 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
151 |
152 |   @Previewable @State var value: CGFloat = 5.8
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:3: error: 'VStack' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |   |- error: 'VStack' is only available in macOS 10.15 or newer
    |   `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:10: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |          |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:10: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |          |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |          |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |          |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:162:5: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
160 |   VStack {
161 |
162 |     SteppedSlider(
    |     |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
163 |       value: $value,
164 |       range: range,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:162:5: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
160 |   VStack {
161 |
162 |     SteppedSlider(
    |     |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
163 |       value: $value,
164 |       range: range,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:166:28: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
164 |       range: range,
165 |       steps: steps,
166 |       horizontalEdgeMask: .hidden,
    |                            |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
167 |       animation: nil,
168 |       segmentModifier: ScrollTransitionModifier(),
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:170:9: error: 'Rectangle' is only available in macOS 10.15 or newer
168 |       segmentModifier: ScrollTransitionModifier(),
169 |       anchorView: {
170 |         Rectangle()
    |         |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
171 |           .frame(width: 2, height: 24)
172 |           .foregroundColor(.red)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:171:12: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
169 |       anchorView: {
170 |         Rectangle()
171 |           .frame(width: 2, height: 24)
    |            |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
172 |           .foregroundColor(.red)
173 |           .padding(.top, 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:172:12: error: 'foregroundColor' is only available in macOS 10.15 or newer
170 |         Rectangle()
171 |           .frame(width: 2, height: 24)
172 |           .foregroundColor(.red)
    |            |- error: 'foregroundColor' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
173 |           .padding(.top, 12)
174 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:172:29: error: 'red' is only available in macOS 10.15 or newer
170 |         Rectangle()
171 |           .frame(width: 2, height: 24)
172 |           .foregroundColor(.red)
    |                             |- error: 'red' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
173 |           .padding(.top, 12)
174 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:173:12: error: 'padding' is only available in macOS 10.15 or newer
171 |           .frame(width: 2, height: 24)
172 |           .foregroundColor(.red)
173 |           .padding(.top, 12)
    |            |- error: 'padding' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
174 |       },
175 |       segmentView: { index, maximumIndex in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:177:9: error: 'Rectangle' is only available in macOS 10.15 or newer
175 |       segmentView: { index, maximumIndex in
176 |         let isBold = shouldBold1(index, maximumIndex)
177 |         Rectangle()
    |         |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
178 |           .foregroundStyle(Color.primary)
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:178:12: error: 'foregroundStyle' is only available in macOS 12.0 or newer
176 |         let isBold = shouldBold1(index, maximumIndex)
177 |         Rectangle()
178 |           .foregroundStyle(Color.primary)
    |            |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
    |            `- note: add 'if #available' version check
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
180 |           .padding(.top, 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:178:28: error: 'Color' is only available in macOS 10.15 or newer
176 |         let isBold = shouldBold1(index, maximumIndex)
177 |         Rectangle()
178 |           .foregroundStyle(Color.primary)
    |                            |- error: 'Color' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
180 |           .padding(.top, 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:178:34: error: 'primary' is only available in macOS 10.15 or newer
176 |         let isBold = shouldBold1(index, maximumIndex)
177 |         Rectangle()
178 |           .foregroundStyle(Color.primary)
    |                                  |- error: 'primary' is only available in macOS 10.15 or newer
    |                                  `- note: add 'if #available' version check
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
180 |           .padding(.top, 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:179:12: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
177 |         Rectangle()
178 |           .foregroundStyle(Color.primary)
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
    |            |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
180 |           .padding(.top, 12)
181 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:180:12: error: 'padding' is only available in macOS 10.15 or newer
178 |           .foregroundStyle(Color.primary)
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
180 |           .padding(.top, 12)
    |            |- error: 'padding' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
181 |       },
182 |       segmentOverlayView: { index, maximumIndex in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:184:11: error: 'Text' is only available in macOS 10.15 or newer
182 |       segmentOverlayView: { index, maximumIndex in
183 |         if shouldBold1(index, maximumIndex) {
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
    |           |- error: 'Text' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
185 |             .font(.caption2)
186 |             .fixedSize()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:185:14: error: 'font' is only available in macOS 10.15 or newer
183 |         if shouldBold1(index, maximumIndex) {
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
185 |             .font(.caption2)
    |              |- error: 'font' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
186 |             .fixedSize()
187 |             .offset(y: -20)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:185:20: error: 'caption2' is only available in macOS 11.0 or newer
183 |         if shouldBold1(index, maximumIndex) {
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
185 |             .font(.caption2)
    |                    |- error: 'caption2' is only available in macOS 11.0 or newer
    |                    `- note: add 'if #available' version check
186 |             .fixedSize()
187 |             .offset(y: -20)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:186:14: error: 'fixedSize()' is only available in macOS 10.15 or newer
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
185 |             .font(.caption2)
186 |             .fixedSize()
    |              |- error: 'fixedSize()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
187 |             .offset(y: -20)
188 |             .padding(.top, 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:187:14: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
185 |             .font(.caption2)
186 |             .fixedSize()
187 |             .offset(y: -20)
    |              |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
188 |             .padding(.top, 12)
189 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:188:14: error: 'padding' is only available in macOS 10.15 or newer
186 |             .fixedSize()
187 |             .offset(y: -20)
188 |             .padding(.top, 12)
    |              |- error: 'padding' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
189 |         }
190 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:183:45: error: 'buildIf' is only available in macOS 10.15 or newer
181 |       },
182 |       segmentOverlayView: { index, maximumIndex in
183 |         if shouldBold1(index, maximumIndex) {
    |                                             |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                                             `- note: add 'if #available' version check
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
185 |             .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:189:9: error: 'buildIf' is only available in macOS 10.15 or newer
187 |             .offset(y: -20)
188 |             .padding(.top, 12)
189 |         }
    |         |- error: 'buildIf' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
190 |       },
191 |       onEditing: {}
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:182:27: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
180 |           .padding(.top, 12)
181 |       },
182 |       segmentOverlayView: { index, maximumIndex in
    |                           |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
183 |         if shouldBold1(index, maximumIndex) {
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:193:6: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
191 |       onEditing: {}
192 |     )
193 |     .frame(height: 60)
    |      |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |      `- note: add 'if #available' version check
194 |     .padding()
195 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:194:6: error: 'padding' is only available in macOS 10.15 or newer
192 |     )
193 |     .frame(height: 60)
194 |     .padding()
    |      |- error: 'padding' is only available in macOS 10.15 or newer
    |      `- note: add 'if #available' version check
195 |
196 |     Spacer(minLength: 24).fixedSize()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:196:5: error: 'Spacer' is only available in macOS 10.15 or newer
194 |     .padding()
195 |
196 |     Spacer(minLength: 24).fixedSize()
    |     |- error: 'Spacer' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
197 |
198 |     let shouldBold2: (Int, Int) -> Bool = { index, maximumIndex -> Bool in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:196:27: error: 'fixedSize()' is only available in macOS 10.15 or newer
194 |     .padding()
195 |
196 |     Spacer(minLength: 24).fixedSize()
    |                           |- error: 'fixedSize()' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
197 |
198 |     let shouldBold2: (Int, Int) -> Bool = { index, maximumIndex -> Bool in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:202:5: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
200 |     }
201 |
202 |     SteppedSlider(
    |     |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
203 |       value: $value,
204 |       range: range,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:202:5: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
200 |     }
201 |
202 |     SteppedSlider(
    |     |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
203 |       value: $value,
204 |       range: range,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:206:28: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
204 |       range: range,
205 |       steps: steps,
206 |       horizontalEdgeMask: .visible(width: 24),
    |                            |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
207 |       animation: nil,
208 |       anchorView: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:209:9: error: 'Rectangle' is only available in macOS 10.15 or newer
207 |       animation: nil,
208 |       anchorView: {
209 |         Rectangle()
    |         |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
210 |           .frame(width: 2)
211 |           .foregroundColor(.red)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:210:12: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
208 |       anchorView: {
209 |         Rectangle()
210 |           .frame(width: 2)
    |            |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
211 |           .foregroundColor(.red)
212 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:211:12: error: 'foregroundColor' is only available in macOS 10.15 or newer
209 |         Rectangle()
210 |           .frame(width: 2)
211 |           .foregroundColor(.red)
    |            |- error: 'foregroundColor' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
212 |       },
213 |       segmentView: { index, maximumIndex in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:211:29: error: 'red' is only available in macOS 10.15 or newer
209 |         Rectangle()
210 |           .frame(width: 2)
211 |           .foregroundColor(.red)
    |                             |- error: 'red' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
212 |       },
213 |       segmentView: { index, maximumIndex in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:215:9: error: 'VStack' is only available in macOS 10.15 or newer
213 |       segmentView: { index, maximumIndex in
214 |         let isBold = shouldBold2(index, maximumIndex)
215 |         VStack {
    |         |- error: 'VStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
216 |           Rectangle()
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:216:11: error: 'Rectangle' is only available in macOS 10.15 or newer
214 |         let isBold = shouldBold2(index, maximumIndex)
215 |         VStack {
216 |           Rectangle()
    |           |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
218 |           Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:217:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
215 |         VStack {
216 |           Rectangle()
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
    |              |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
218 |           Spacer()
219 |           Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:218:11: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
216 |           Rectangle()
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
218 |           Spacer()
    |           |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
219 |           Rectangle()
220 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:218:11: error: 'Spacer' is only available in macOS 10.15 or newer
216 |           Rectangle()
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
218 |           Spacer()
    |           |- error: 'Spacer' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
219 |           Rectangle()
220 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:219:11: error: 'Rectangle' is only available in macOS 10.15 or newer
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
218 |           Spacer()
219 |           Rectangle()
    |           |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
220 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
221 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:220:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
218 |           Spacer()
219 |           Rectangle()
220 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
    |              |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
221 |         }
222 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:215:16: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
213 |       segmentView: { index, maximumIndex in
214 |         let isBold = shouldBold2(index, maximumIndex)
215 |         VStack {
    |                |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
216 |           Rectangle()
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:226:11: error: 'Text' is only available in macOS 10.15 or newer
224 |         let isBold = shouldBold2(index, maximumIndex)
225 |         if isBold {
226 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
    |           |- error: 'Text' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
227 |             .font(.caption2)
228 |             .fixedSize()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:227:14: error: 'font' is only available in macOS 10.15 or newer
225 |         if isBold {
226 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
227 |             .font(.caption2)
    |              |- error: 'font' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
228 |             .fixedSize()
229 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:227:20: error: 'caption2' is only available in macOS 11.0 or newer
225 |         if isBold {
226 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
227 |             .font(.caption2)
    |                    |- error: 'caption2' is only available in macOS 11.0 or newer
    |                    `- note: add 'if #available' version check
228 |             .fixedSize()
229 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:228:14: error: 'fixedSize()' is only available in macOS 10.15 or newer
226 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
227 |             .font(.caption2)
228 |             .fixedSize()
    |              |- error: 'fixedSize()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
229 |         }
230 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:225:19: error: 'buildIf' is only available in macOS 10.15 or newer
223 |       segmentOverlayView: { index, maximumIndex in
224 |         let isBold = shouldBold2(index, maximumIndex)
225 |         if isBold {
    |                   |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                   `- note: add 'if #available' version check
226 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
227 |             .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:229:9: error: 'buildIf' is only available in macOS 10.15 or newer
227 |             .font(.caption2)
228 |             .fixedSize()
229 |         }
    |         |- error: 'buildIf' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
230 |       },
231 |       onEditing: {}
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:223:27: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
221 |         }
222 |       },
223 |       segmentOverlayView: { index, maximumIndex in
    |                           |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
224 |         let isBold = shouldBold2(index, maximumIndex)
225 |         if isBold {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:233:6: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
231 |       onEditing: {}
232 |     )
233 |     .frame(height: 60)
    |      |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |      `- note: add 'if #available' version check
234 |     .padding()
235 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:234:6: error: 'padding' is only available in macOS 10.15 or newer
232 |     )
233 |     .frame(height: 60)
234 |     .padding()
    |      |- error: 'padding' is only available in macOS 10.15 or newer
    |      `- note: add 'if #available' version check
235 |
236 |     Spacer(minLength: 24).fixedSize()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:236:5: error: 'Spacer' is only available in macOS 10.15 or newer
234 |     .padding()
235 |
236 |     Spacer(minLength: 24).fixedSize()
    |     |- error: 'Spacer' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
237 |
238 |     Text(String(format: "%g", value))
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:236:27: error: 'fixedSize()' is only available in macOS 10.15 or newer
234 |     .padding()
235 |
236 |     Spacer(minLength: 24).fixedSize()
    |                           |- error: 'fixedSize()' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
237 |
238 |     Text(String(format: "%g", value))
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:238:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
236 |     Spacer(minLength: 24).fixedSize()
237 |
238 |     Text(String(format: "%g", value))
    |     |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
239 |
240 |     HStack {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:238:5: error: 'Text' is only available in macOS 10.15 or newer
236 |     Spacer(minLength: 24).fixedSize()
237 |
238 |     Text(String(format: "%g", value))
    |     |- error: 'Text' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
239 |
240 |     HStack {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:240:5: error: 'HStack' is only available in macOS 10.15 or newer
238 |     Text(String(format: "%g", value))
239 |
240 |     HStack {
    |     |- error: 'HStack' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
241 |
242 |       Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:240:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
238 |     Text(String(format: "%g", value))
239 |
240 |     HStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
241 |
242 |       Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:240:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
238 |     Text(String(format: "%g", value))
239 |
240 |     HStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
241 |
242 |       Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:242:7: error: 'Button' is only available in macOS 10.15 or newer
240 |     HStack {
241 |
242 |       Button(action: {
    |       |- error: 'Button' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
243 |         if range.contains(value - 1) {
244 |           value -= 1
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:242:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
240 |     HStack {
241 |
242 |       Button(action: {
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
243 |         if range.contains(value - 1) {
244 |           value -= 1
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:244:11: error: cannot pass as inout because setter for 'value' is only available in macOS 10.15 or newer
242 |       Button(action: {
243 |         if range.contains(value - 1) {
244 |           value -= 1
    |           |- error: cannot pass as inout because setter for 'value' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
245 |         }
246 |       }, label: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:247:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
245 |         }
246 |       }, label: {
247 |         Text("-1").bold()
    |         |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
248 |       })
249 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:247:9: error: 'Text' is only available in macOS 10.15 or newer
245 |         }
246 |       }, label: {
247 |         Text("-1").bold()
    |         |- error: 'Text' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
248 |       })
249 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:247:20: error: 'bold()' is only available in macOS 10.15 or newer
245 |         }
246 |       }, label: {
247 |         Text("-1").bold()
    |                    |- error: 'bold()' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
248 |       })
249 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:246:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
244 |           value -= 1
245 |         }
246 |       }, label: {
    |                 |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
247 |         Text("-1").bold()
248 |       })
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:249:8: error: 'buttonStyle' is only available in macOS 10.15 or newer
247 |         Text("-1").bold()
248 |       })
249 |       .buttonStyle(.borderedProminent)
    |        |- error: 'buttonStyle' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
250 |       .disabled(!range.contains(value - 1))
251 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:249:21: error: 'borderedProminent' is only available in macOS 12.0 or newer
247 |         Text("-1").bold()
248 |       })
249 |       .buttonStyle(.borderedProminent)
    |                     |- error: 'borderedProminent' is only available in macOS 12.0 or newer
    |                     `- note: add 'if #available' version check
250 |       .disabled(!range.contains(value - 1))
251 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:250:8: error: 'disabled' is only available in macOS 10.15 or newer
248 |       })
249 |       .buttonStyle(.borderedProminent)
250 |       .disabled(!range.contains(value - 1))
    |        |- error: 'disabled' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
251 |
252 |       Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:252:7: error: 'Button' is only available in macOS 10.15 or newer
250 |       .disabled(!range.contains(value - 1))
251 |
252 |       Button(action: {
    |       |- error: 'Button' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
253 |         if range.contains(value + 1) {
254 |           value += 1
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:252:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
250 |       .disabled(!range.contains(value - 1))
251 |
252 |       Button(action: {
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
253 |         if range.contains(value + 1) {
254 |           value += 1
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:254:11: error: cannot pass as inout because setter for 'value' is only available in macOS 10.15 or newer
252 |       Button(action: {
253 |         if range.contains(value + 1) {
254 |           value += 1
    |           |- error: cannot pass as inout because setter for 'value' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
255 |         }
256 |       }, label: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:257:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
255 |         }
256 |       }, label: {
257 |         Text("+1").bold()
    |         |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
258 |       })
259 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:257:9: error: 'Text' is only available in macOS 10.15 or newer
255 |         }
256 |       }, label: {
257 |         Text("+1").bold()
    |         |- error: 'Text' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
258 |       })
259 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:257:20: error: 'bold()' is only available in macOS 10.15 or newer
255 |         }
256 |       }, label: {
257 |         Text("+1").bold()
    |                    |- error: 'bold()' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
258 |       })
259 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:256:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
254 |           value += 1
255 |         }
256 |       }, label: {
    |                 |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
257 |         Text("+1").bold()
258 |       })
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:259:8: error: 'buttonStyle' is only available in macOS 10.15 or newer
257 |         Text("+1").bold()
258 |       })
259 |       .buttonStyle(.borderedProminent)
    |        |- error: 'buttonStyle' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
260 |       .disabled(!range.contains(value + 1))
261 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:259:21: error: 'borderedProminent' is only available in macOS 12.0 or newer
257 |         Text("+1").bold()
258 |       })
259 |       .buttonStyle(.borderedProminent)
    |                     |- error: 'borderedProminent' is only available in macOS 12.0 or newer
    |                     `- note: add 'if #available' version check
260 |       .disabled(!range.contains(value + 1))
261 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:260:8: error: 'disabled' is only available in macOS 10.15 or newer
258 |       })
259 |       .buttonStyle(.borderedProminent)
260 |       .disabled(!range.contains(value + 1))
    |        |- error: 'disabled' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
261 |
262 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |          |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
[3/4] Compiling SteppedSlider SteppedSlider.swift
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:9:4: error: 'Binding' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    |    `- error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 |   @State private var currentIndex: Int
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:11:4: error: 'State' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
 10 |
 11 |   @State private var currentIndex: Int
    |    `- error: 'State' is only available in macOS 10.15 or newer
 12 |   @State private var scrollIndex: Int?
 13 |   @State private var contentSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:12:4: error: 'State' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
 10 |
 11 |   @State private var currentIndex: Int
 12 |   @State private var scrollIndex: Int?
    |    `- error: 'State' is only available in macOS 10.15 or newer
 13 |   @State private var contentSize: CGSize = .zero
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:13:4: error: 'State' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 11 |   @State private var currentIndex: Int
 12 |   @State private var scrollIndex: Int?
 13 |   @State private var contentSize: CGSize = .zero
    |    `- error: 'State' is only available in macOS 10.15 or newer
 14 |
 15 |   private let itemWidth: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:34:18: error: 'Animation' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 32 |
 33 |   let horizontalEdgeMask: HorizontalEdgeMask
 34 |   let animation: Animation?
    |                  `- error: 'Animation' is only available in macOS 10.15 or newer
 35 |
 36 |   let segmentModifier: Modifier
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:39:12: error: 'Binding' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
    |            `- error: 'Binding' is only available in macOS 10.15 or newer
 40 |     range: ClosedRange<CGFloat>,
 41 |     steps: CGFloat,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:45:16: error: 'Animation' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 43 |     spacing: CGFloat = 0,
 44 |     horizontalEdgeMask: HorizontalEdgeMask = .visible(width: 12),
 45 |     animation: Animation? = .default,
    |                `- error: 'Animation' is only available in macOS 10.15 or newer
 46 |     segmentModifier: Modifier = EmptyModifier(),
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:47:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 45 |     animation: Animation? = .default,
 46 |     segmentModifier: Modifier = EmptyModifier(),
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 48 |     @ViewBuilder segmentView: @MainActor @escaping (Int, Int) -> Segment,
 49 |     @ViewBuilder segmentOverlayView: @MainActor @escaping (Int, Int) -> SegmentOverlay,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:48:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 46 |     segmentModifier: Modifier = EmptyModifier(),
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
 48 |     @ViewBuilder segmentView: @MainActor @escaping (Int, Int) -> Segment,
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 49 |     @ViewBuilder segmentOverlayView: @MainActor @escaping (Int, Int) -> SegmentOverlay,
 50 |     onEditing: @MainActor @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:49:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
 48 |     @ViewBuilder segmentView: @MainActor @escaping (Int, Int) -> Segment,
 49 |     @ViewBuilder segmentOverlayView: @MainActor @escaping (Int, Int) -> SegmentOverlay,
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 50 |     onEditing: @MainActor @escaping () -> Void
 51 |   ) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:45:30: error: 'default' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 43 |     spacing: CGFloat = 0,
 44 |     horizontalEdgeMask: HorizontalEdgeMask = .visible(width: 12),
 45 |     animation: Animation? = .default,
    |                              `- error: 'default' is only available in macOS 10.15 or newer
 46 |     segmentModifier: Modifier = EmptyModifier(),
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:46:33: error: 'EmptyModifier' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 44 |     horizontalEdgeMask: HorizontalEdgeMask = .visible(width: 12),
 45 |     animation: Animation? = .default,
 46 |     segmentModifier: Modifier = EmptyModifier(),
    |                                 `- error: 'EmptyModifier' is only available in macOS 10.15 or newer
 47 |     @ViewBuilder anchorView: @MainActor @escaping () -> Anchor,
 48 |     @ViewBuilder segmentView: @MainActor @escaping (Int, Int) -> Segment,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:69:25: error: 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              |          `- error: 'View' is only available in macOS 10.15 or newer
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:7:37: error: 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               |                     `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:7:52: error: 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               |                                    `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:7:74: error: 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               |                                                          `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:7:90: error: 'ViewModifier' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               |                                                                          `- error: 'ViewModifier' is only available in macOS 10.15 or newer
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:142:39: error: 'View' is only available in macOS 10.15 or newer
139 |
140 |
141 | struct ScrollTransitionModifier: ViewModifier {
    |        `- note: add @available attribute to enclosing struct
142 |   func body(content: Content) -> some View {
    |        |                              `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing instance method
143 |     content.scrollTransition { content, phase in
144 |       content
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:152:4: error: 'Previewable()' is only available in macOS 14.0 or newer
150 | #Preview {
151 |
152 |   @Previewable @State var value: CGFloat = 5.8
    |    |- error: 'Previewable()' is only available in macOS 14.0 or newer
    |    `- note: add 'if #available' version check
153 |
154 |   let range: ClosedRange<CGFloat> = 1...50
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:152:17: error: 'State' is only available in macOS 10.15 or newer
150 | #Preview {
151 |
152 |   @Previewable @State var value: CGFloat = 5.8
    |                 |- error: 'State' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
153 |
154 |   let range: ClosedRange<CGFloat> = 1...50
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:150:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
148 | }
149 |
150 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
151 |
152 |   @Previewable @State var value: CGFloat = 5.8
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:3: error: 'VStack' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |   |- error: 'VStack' is only available in macOS 10.15 or newer
    |   `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:10: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |          |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:10: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |          |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |          |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |          |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:162:5: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
160 |   VStack {
161 |
162 |     SteppedSlider(
    |     |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
163 |       value: $value,
164 |       range: range,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:162:5: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
160 |   VStack {
161 |
162 |     SteppedSlider(
    |     |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
163 |       value: $value,
164 |       range: range,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:166:28: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
164 |       range: range,
165 |       steps: steps,
166 |       horizontalEdgeMask: .hidden,
    |                            |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
167 |       animation: nil,
168 |       segmentModifier: ScrollTransitionModifier(),
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:170:9: error: 'Rectangle' is only available in macOS 10.15 or newer
168 |       segmentModifier: ScrollTransitionModifier(),
169 |       anchorView: {
170 |         Rectangle()
    |         |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
171 |           .frame(width: 2, height: 24)
172 |           .foregroundColor(.red)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:171:12: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
169 |       anchorView: {
170 |         Rectangle()
171 |           .frame(width: 2, height: 24)
    |            |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
172 |           .foregroundColor(.red)
173 |           .padding(.top, 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:172:12: error: 'foregroundColor' is only available in macOS 10.15 or newer
170 |         Rectangle()
171 |           .frame(width: 2, height: 24)
172 |           .foregroundColor(.red)
    |            |- error: 'foregroundColor' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
173 |           .padding(.top, 12)
174 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:172:29: error: 'red' is only available in macOS 10.15 or newer
170 |         Rectangle()
171 |           .frame(width: 2, height: 24)
172 |           .foregroundColor(.red)
    |                             |- error: 'red' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
173 |           .padding(.top, 12)
174 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:173:12: error: 'padding' is only available in macOS 10.15 or newer
171 |           .frame(width: 2, height: 24)
172 |           .foregroundColor(.red)
173 |           .padding(.top, 12)
    |            |- error: 'padding' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
174 |       },
175 |       segmentView: { index, maximumIndex in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:177:9: error: 'Rectangle' is only available in macOS 10.15 or newer
175 |       segmentView: { index, maximumIndex in
176 |         let isBold = shouldBold1(index, maximumIndex)
177 |         Rectangle()
    |         |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
178 |           .foregroundStyle(Color.primary)
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:178:12: error: 'foregroundStyle' is only available in macOS 12.0 or newer
176 |         let isBold = shouldBold1(index, maximumIndex)
177 |         Rectangle()
178 |           .foregroundStyle(Color.primary)
    |            |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
    |            `- note: add 'if #available' version check
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
180 |           .padding(.top, 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:178:28: error: 'Color' is only available in macOS 10.15 or newer
176 |         let isBold = shouldBold1(index, maximumIndex)
177 |         Rectangle()
178 |           .foregroundStyle(Color.primary)
    |                            |- error: 'Color' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
180 |           .padding(.top, 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:178:34: error: 'primary' is only available in macOS 10.15 or newer
176 |         let isBold = shouldBold1(index, maximumIndex)
177 |         Rectangle()
178 |           .foregroundStyle(Color.primary)
    |                                  |- error: 'primary' is only available in macOS 10.15 or newer
    |                                  `- note: add 'if #available' version check
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
180 |           .padding(.top, 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:179:12: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
177 |         Rectangle()
178 |           .foregroundStyle(Color.primary)
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
    |            |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
180 |           .padding(.top, 12)
181 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:180:12: error: 'padding' is only available in macOS 10.15 or newer
178 |           .foregroundStyle(Color.primary)
179 |           .frame(width: isBold ? 2 : 1, height: isBold ? 24 : 12)
180 |           .padding(.top, 12)
    |            |- error: 'padding' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
181 |       },
182 |       segmentOverlayView: { index, maximumIndex in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:184:11: error: 'Text' is only available in macOS 10.15 or newer
182 |       segmentOverlayView: { index, maximumIndex in
183 |         if shouldBold1(index, maximumIndex) {
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
    |           |- error: 'Text' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
185 |             .font(.caption2)
186 |             .fixedSize()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:185:14: error: 'font' is only available in macOS 10.15 or newer
183 |         if shouldBold1(index, maximumIndex) {
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
185 |             .font(.caption2)
    |              |- error: 'font' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
186 |             .fixedSize()
187 |             .offset(y: -20)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:185:20: error: 'caption2' is only available in macOS 11.0 or newer
183 |         if shouldBold1(index, maximumIndex) {
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
185 |             .font(.caption2)
    |                    |- error: 'caption2' is only available in macOS 11.0 or newer
    |                    `- note: add 'if #available' version check
186 |             .fixedSize()
187 |             .offset(y: -20)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:186:14: error: 'fixedSize()' is only available in macOS 10.15 or newer
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
185 |             .font(.caption2)
186 |             .fixedSize()
    |              |- error: 'fixedSize()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
187 |             .offset(y: -20)
188 |             .padding(.top, 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:187:14: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
185 |             .font(.caption2)
186 |             .fixedSize()
187 |             .offset(y: -20)
    |              |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
188 |             .padding(.top, 12)
189 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:188:14: error: 'padding' is only available in macOS 10.15 or newer
186 |             .fixedSize()
187 |             .offset(y: -20)
188 |             .padding(.top, 12)
    |              |- error: 'padding' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
189 |         }
190 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:183:45: error: 'buildIf' is only available in macOS 10.15 or newer
181 |       },
182 |       segmentOverlayView: { index, maximumIndex in
183 |         if shouldBold1(index, maximumIndex) {
    |                                             |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                                             `- note: add 'if #available' version check
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
185 |             .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:189:9: error: 'buildIf' is only available in macOS 10.15 or newer
187 |             .offset(y: -20)
188 |             .padding(.top, 12)
189 |         }
    |         |- error: 'buildIf' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
190 |       },
191 |       onEditing: {}
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:182:27: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
180 |           .padding(.top, 12)
181 |       },
182 |       segmentOverlayView: { index, maximumIndex in
    |                           |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
183 |         if shouldBold1(index, maximumIndex) {
184 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:193:6: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
191 |       onEditing: {}
192 |     )
193 |     .frame(height: 60)
    |      |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |      `- note: add 'if #available' version check
194 |     .padding()
195 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:194:6: error: 'padding' is only available in macOS 10.15 or newer
192 |     )
193 |     .frame(height: 60)
194 |     .padding()
    |      |- error: 'padding' is only available in macOS 10.15 or newer
    |      `- note: add 'if #available' version check
195 |
196 |     Spacer(minLength: 24).fixedSize()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:196:5: error: 'Spacer' is only available in macOS 10.15 or newer
194 |     .padding()
195 |
196 |     Spacer(minLength: 24).fixedSize()
    |     |- error: 'Spacer' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
197 |
198 |     let shouldBold2: (Int, Int) -> Bool = { index, maximumIndex -> Bool in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:196:27: error: 'fixedSize()' is only available in macOS 10.15 or newer
194 |     .padding()
195 |
196 |     Spacer(minLength: 24).fixedSize()
    |                           |- error: 'fixedSize()' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
197 |
198 |     let shouldBold2: (Int, Int) -> Bool = { index, maximumIndex -> Bool in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:202:5: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
200 |     }
201 |
202 |     SteppedSlider(
    |     |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
203 |       value: $value,
204 |       range: range,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:202:5: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
200 |     }
201 |
202 |     SteppedSlider(
    |     |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
203 |       value: $value,
204 |       range: range,
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:206:28: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
204 |       range: range,
205 |       steps: steps,
206 |       horizontalEdgeMask: .visible(width: 24),
    |                            |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
207 |       animation: nil,
208 |       anchorView: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:209:9: error: 'Rectangle' is only available in macOS 10.15 or newer
207 |       animation: nil,
208 |       anchorView: {
209 |         Rectangle()
    |         |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
210 |           .frame(width: 2)
211 |           .foregroundColor(.red)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:210:12: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
208 |       anchorView: {
209 |         Rectangle()
210 |           .frame(width: 2)
    |            |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
211 |           .foregroundColor(.red)
212 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:211:12: error: 'foregroundColor' is only available in macOS 10.15 or newer
209 |         Rectangle()
210 |           .frame(width: 2)
211 |           .foregroundColor(.red)
    |            |- error: 'foregroundColor' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
212 |       },
213 |       segmentView: { index, maximumIndex in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:211:29: error: 'red' is only available in macOS 10.15 or newer
209 |         Rectangle()
210 |           .frame(width: 2)
211 |           .foregroundColor(.red)
    |                             |- error: 'red' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
212 |       },
213 |       segmentView: { index, maximumIndex in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:215:9: error: 'VStack' is only available in macOS 10.15 or newer
213 |       segmentView: { index, maximumIndex in
214 |         let isBold = shouldBold2(index, maximumIndex)
215 |         VStack {
    |         |- error: 'VStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
216 |           Rectangle()
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:216:11: error: 'Rectangle' is only available in macOS 10.15 or newer
214 |         let isBold = shouldBold2(index, maximumIndex)
215 |         VStack {
216 |           Rectangle()
    |           |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
218 |           Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:217:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
215 |         VStack {
216 |           Rectangle()
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
    |              |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
218 |           Spacer()
219 |           Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:218:11: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
216 |           Rectangle()
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
218 |           Spacer()
    |           |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
219 |           Rectangle()
220 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:218:11: error: 'Spacer' is only available in macOS 10.15 or newer
216 |           Rectangle()
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
218 |           Spacer()
    |           |- error: 'Spacer' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
219 |           Rectangle()
220 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:219:11: error: 'Rectangle' is only available in macOS 10.15 or newer
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
218 |           Spacer()
219 |           Rectangle()
    |           |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
220 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
221 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:220:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
218 |           Spacer()
219 |           Rectangle()
220 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
    |              |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
221 |         }
222 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:215:16: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
213 |       segmentView: { index, maximumIndex in
214 |         let isBold = shouldBold2(index, maximumIndex)
215 |         VStack {
    |                |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
216 |           Rectangle()
217 |             .frame(width: isBold ? 2 : 1, height: isBold ? 16 : 12)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:226:11: error: 'Text' is only available in macOS 10.15 or newer
224 |         let isBold = shouldBold2(index, maximumIndex)
225 |         if isBold {
226 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
    |           |- error: 'Text' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
227 |             .font(.caption2)
228 |             .fixedSize()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:227:14: error: 'font' is only available in macOS 10.15 or newer
225 |         if isBold {
226 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
227 |             .font(.caption2)
    |              |- error: 'font' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
228 |             .fixedSize()
229 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:227:20: error: 'caption2' is only available in macOS 11.0 or newer
225 |         if isBold {
226 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
227 |             .font(.caption2)
    |                    |- error: 'caption2' is only available in macOS 11.0 or newer
    |                    `- note: add 'if #available' version check
228 |             .fixedSize()
229 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:228:14: error: 'fixedSize()' is only available in macOS 10.15 or newer
226 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
227 |             .font(.caption2)
228 |             .fixedSize()
    |              |- error: 'fixedSize()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
229 |         }
230 |       },
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:225:19: error: 'buildIf' is only available in macOS 10.15 or newer
223 |       segmentOverlayView: { index, maximumIndex in
224 |         let isBold = shouldBold2(index, maximumIndex)
225 |         if isBold {
    |                   |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                   `- note: add 'if #available' version check
226 |           Text(String(format: "%g", CGFloat(index) * steps + range.lowerBound))
227 |             .font(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:229:9: error: 'buildIf' is only available in macOS 10.15 or newer
227 |             .font(.caption2)
228 |             .fixedSize()
229 |         }
    |         |- error: 'buildIf' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
230 |       },
231 |       onEditing: {}
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:223:27: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
221 |         }
222 |       },
223 |       segmentOverlayView: { index, maximumIndex in
    |                           |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
224 |         let isBold = shouldBold2(index, maximumIndex)
225 |         if isBold {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:233:6: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
231 |       onEditing: {}
232 |     )
233 |     .frame(height: 60)
    |      |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |      `- note: add 'if #available' version check
234 |     .padding()
235 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:234:6: error: 'padding' is only available in macOS 10.15 or newer
232 |     )
233 |     .frame(height: 60)
234 |     .padding()
    |      |- error: 'padding' is only available in macOS 10.15 or newer
    |      `- note: add 'if #available' version check
235 |
236 |     Spacer(minLength: 24).fixedSize()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:236:5: error: 'Spacer' is only available in macOS 10.15 or newer
234 |     .padding()
235 |
236 |     Spacer(minLength: 24).fixedSize()
    |     |- error: 'Spacer' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
237 |
238 |     Text(String(format: "%g", value))
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:236:27: error: 'fixedSize()' is only available in macOS 10.15 or newer
234 |     .padding()
235 |
236 |     Spacer(minLength: 24).fixedSize()
    |                           |- error: 'fixedSize()' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
237 |
238 |     Text(String(format: "%g", value))
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:238:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
236 |     Spacer(minLength: 24).fixedSize()
237 |
238 |     Text(String(format: "%g", value))
    |     |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
239 |
240 |     HStack {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:238:5: error: 'Text' is only available in macOS 10.15 or newer
236 |     Spacer(minLength: 24).fixedSize()
237 |
238 |     Text(String(format: "%g", value))
    |     |- error: 'Text' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
239 |
240 |     HStack {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:240:5: error: 'HStack' is only available in macOS 10.15 or newer
238 |     Text(String(format: "%g", value))
239 |
240 |     HStack {
    |     |- error: 'HStack' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
241 |
242 |       Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:240:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
238 |     Text(String(format: "%g", value))
239 |
240 |     HStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
241 |
242 |       Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:240:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
238 |     Text(String(format: "%g", value))
239 |
240 |     HStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
241 |
242 |       Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:242:7: error: 'Button' is only available in macOS 10.15 or newer
240 |     HStack {
241 |
242 |       Button(action: {
    |       |- error: 'Button' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
243 |         if range.contains(value - 1) {
244 |           value -= 1
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:242:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
240 |     HStack {
241 |
242 |       Button(action: {
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
243 |         if range.contains(value - 1) {
244 |           value -= 1
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:244:11: error: cannot pass as inout because setter for 'value' is only available in macOS 10.15 or newer
242 |       Button(action: {
243 |         if range.contains(value - 1) {
244 |           value -= 1
    |           |- error: cannot pass as inout because setter for 'value' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
245 |         }
246 |       }, label: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:247:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
245 |         }
246 |       }, label: {
247 |         Text("-1").bold()
    |         |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
248 |       })
249 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:247:9: error: 'Text' is only available in macOS 10.15 or newer
245 |         }
246 |       }, label: {
247 |         Text("-1").bold()
    |         |- error: 'Text' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
248 |       })
249 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:247:20: error: 'bold()' is only available in macOS 10.15 or newer
245 |         }
246 |       }, label: {
247 |         Text("-1").bold()
    |                    |- error: 'bold()' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
248 |       })
249 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:246:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
244 |           value -= 1
245 |         }
246 |       }, label: {
    |                 |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
247 |         Text("-1").bold()
248 |       })
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:249:8: error: 'buttonStyle' is only available in macOS 10.15 or newer
247 |         Text("-1").bold()
248 |       })
249 |       .buttonStyle(.borderedProminent)
    |        |- error: 'buttonStyle' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
250 |       .disabled(!range.contains(value - 1))
251 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:249:21: error: 'borderedProminent' is only available in macOS 12.0 or newer
247 |         Text("-1").bold()
248 |       })
249 |       .buttonStyle(.borderedProminent)
    |                     |- error: 'borderedProminent' is only available in macOS 12.0 or newer
    |                     `- note: add 'if #available' version check
250 |       .disabled(!range.contains(value - 1))
251 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:250:8: error: 'disabled' is only available in macOS 10.15 or newer
248 |       })
249 |       .buttonStyle(.borderedProminent)
250 |       .disabled(!range.contains(value - 1))
    |        |- error: 'disabled' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
251 |
252 |       Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:252:7: error: 'Button' is only available in macOS 10.15 or newer
250 |       .disabled(!range.contains(value - 1))
251 |
252 |       Button(action: {
    |       |- error: 'Button' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
253 |         if range.contains(value + 1) {
254 |           value += 1
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:252:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
250 |       .disabled(!range.contains(value - 1))
251 |
252 |       Button(action: {
    |       |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
253 |         if range.contains(value + 1) {
254 |           value += 1
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:254:11: error: cannot pass as inout because setter for 'value' is only available in macOS 10.15 or newer
252 |       Button(action: {
253 |         if range.contains(value + 1) {
254 |           value += 1
    |           |- error: cannot pass as inout because setter for 'value' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
255 |         }
256 |       }, label: {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:257:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
255 |         }
256 |       }, label: {
257 |         Text("+1").bold()
    |         |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
258 |       })
259 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:257:9: error: 'Text' is only available in macOS 10.15 or newer
255 |         }
256 |       }, label: {
257 |         Text("+1").bold()
    |         |- error: 'Text' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
258 |       })
259 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:257:20: error: 'bold()' is only available in macOS 10.15 or newer
255 |         }
256 |       }, label: {
257 |         Text("+1").bold()
    |                    |- error: 'bold()' is only available in macOS 10.15 or newer
    |                    `- note: add 'if #available' version check
258 |       })
259 |       .buttonStyle(.borderedProminent)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:256:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
254 |           value += 1
255 |         }
256 |       }, label: {
    |                 |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
257 |         Text("+1").bold()
258 |       })
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:259:8: error: 'buttonStyle' is only available in macOS 10.15 or newer
257 |         Text("+1").bold()
258 |       })
259 |       .buttonStyle(.borderedProminent)
    |        |- error: 'buttonStyle' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
260 |       .disabled(!range.contains(value + 1))
261 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:259:21: error: 'borderedProminent' is only available in macOS 12.0 or newer
257 |         Text("+1").bold()
258 |       })
259 |       .buttonStyle(.borderedProminent)
    |                     |- error: 'borderedProminent' is only available in macOS 12.0 or newer
    |                     `- note: add 'if #available' version check
260 |       .disabled(!range.contains(value + 1))
261 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:260:8: error: 'disabled' is only available in macOS 10.15 or newer
258 |       })
259 |       .buttonStyle(.borderedProminent)
260 |       .disabled(!range.contains(value + 1))
    |        |- error: 'disabled' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
261 |
262 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:160:10: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
158 |   }
159 |
160 |   VStack {
    |          |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
161 |
162 |     SteppedSlider(
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:66:5: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 36 |   let segmentModifier: Modifier
 37 |
 38 |   public init(
    |          `- note: add @available attribute to enclosing initializer
 39 |     value: Binding<CGFloat>,
 40 |     range: ClosedRange<CGFloat>,
    :
 64 |
 65 |     self.maximumIndex = Int(((range.upperBound - range.lowerBound) / steps))
 66 |     self.currentIndex = .init(SteppedSlider.calculateCurrentIndex(value: value.wrappedValue, steps: steps, range: range))
    |     |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
 67 |   }
 68 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:70:5: error: 'ScrollViewReader' is only available in macOS 11.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
    |     |- error: 'ScrollViewReader' is only available in macOS 11.0 or newer
    |     `- note: add 'if #available' version check
 71 |       ScrollView(.horizontal, showsIndicators: false) {
 72 |         LazyHStack(spacing: spacing) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:71:7: error: 'ScrollView' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    |       |- error: 'ScrollView' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 72 |         LazyHStack(spacing: spacing) {
 73 |           ForEach(0...maximumIndex, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:71:7: error: 'init(_:showsIndicators:content:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    |       |- error: 'init(_:showsIndicators:content:)' is only available in macOS 10.15 or newer
    |       `- note: add 'if #available' version check
 72 |         LazyHStack(spacing: spacing) {
 73 |           ForEach(0...maximumIndex, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:72:9: error: 'LazyHStack' is only available in macOS 11.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
 72 |         LazyHStack(spacing: spacing) {
    |         |- error: 'LazyHStack' is only available in macOS 11.0 or newer
    |         `- note: add 'if #available' version check
 73 |           ForEach(0...maximumIndex, id: \.self) { index in
 74 |             segmentView(index, maximumIndex)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:73:11: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
 71 |       ScrollView(.horizontal, showsIndicators: false) {
 72 |         LazyHStack(spacing: spacing) {
 73 |           ForEach(0...maximumIndex, id: \.self) { index in
    |           `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
 74 |             segmentView(index, maximumIndex)
 75 |               .frame(width: itemWidth)
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 |   public static func buildExpression(_ invalid: Any) -> some View
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:73:11: error: 'ForEach' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
 72 |         LazyHStack(spacing: spacing) {
 73 |           ForEach(0...maximumIndex, id: \.self) { index in
    |           |- error: 'ForEach' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 74 |             segmentView(index, maximumIndex)
 75 |               .frame(width: itemWidth)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:73:11: error: 'init(_:id:content:)' is only available in macOS 12.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
 72 |         LazyHStack(spacing: spacing) {
 73 |           ForEach(0...maximumIndex, id: \.self) { index in
    |           |- error: 'init(_:id:content:)' is only available in macOS 12.0 or newer
    |           `- note: add 'if #available' version check
 74 |             segmentView(index, maximumIndex)
 75 |               .frame(width: itemWidth)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:74:13: error: 'buildExpression' is unavailable: this expression does not conform to 'AccessibilityRotorContent'
 72 |         LazyHStack(spacing: spacing) {
 73 |           ForEach(0...maximumIndex, id: \.self) { index in
 74 |             segmentView(index, maximumIndex)
    |             `- error: 'buildExpression' is unavailable: this expression does not conform to 'AccessibilityRotorContent'
 75 |               .frame(width: itemWidth)
 76 |               .overlay(
SwiftUI.AccessibilityRotorContentBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct AccessibilityRotorContentBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'AccessibilityRotorContent'")
3 |   public static func buildExpression(_ invalid: Any) -> some AccessibilityRotorContent
  |                      `- note: 'buildExpression' has been explicitly marked unavailable here
4 |   }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:75:16: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 73 |           ForEach(0...maximumIndex, id: \.self) { index in
 74 |             segmentView(index, maximumIndex)
 75 |               .frame(width: itemWidth)
    |                |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
 76 |               .overlay(
 77 |                 segmentOverlayView(index, maximumIndex)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:76:16: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 74 |             segmentView(index, maximumIndex)
 75 |               .frame(width: itemWidth)
 76 |               .overlay(
    |                |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
 77 |                 segmentOverlayView(index, maximumIndex)
 78 |               )
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:79:16: error: 'id' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 77 |                 segmentOverlayView(index, maximumIndex)
 78 |               )
 79 |               .id(index)
    |                |- error: 'id' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
 80 |               .modifier(segmentModifier)
 81 |           }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:80:16: error: 'modifier' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 78 |               )
 79 |               .id(index)
 80 |               .modifier(segmentModifier)
    |                |- error: 'modifier' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
 81 |           }
 82 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:83:10: error: 'scrollTargetLayout(isEnabled:)' is only available in macOS 14.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 81 |           }
 82 |         }
 83 |         .scrollTargetLayout()
    |          |- error: 'scrollTargetLayout(isEnabled:)' is only available in macOS 14.0 or newer
    |          `- note: add 'if #available' version check
 84 |       }
 85 |       .contentMargins(.horizontal, contentSize.width/2 - itemWidth/2)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:85:8: error: 'contentMargins(_:_:for:)' is only available in macOS 14.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 83 |         .scrollTargetLayout()
 84 |       }
 85 |       .contentMargins(.horizontal, contentSize.width/2 - itemWidth/2)
    |        |- error: 'contentMargins(_:_:for:)' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
 86 |       .scrollPosition(id: $scrollIndex, anchor: .center)
 87 |       .scrollTargetBehavior(.snap(step: spacing + itemWidth))
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:86:8: error: 'scrollPosition(id:anchor:)' is only available in macOS 14.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 84 |       }
 85 |       .contentMargins(.horizontal, contentSize.width/2 - itemWidth/2)
 86 |       .scrollPosition(id: $scrollIndex, anchor: .center)
    |        |- error: 'scrollPosition(id:anchor:)' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
 87 |       .scrollTargetBehavior(.snap(step: spacing + itemWidth))
 88 |       .mask {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:87:8: error: 'scrollTargetBehavior' is only available in macOS 14.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 85 |       .contentMargins(.horizontal, contentSize.width/2 - itemWidth/2)
 86 |       .scrollPosition(id: $scrollIndex, anchor: .center)
 87 |       .scrollTargetBehavior(.snap(step: spacing + itemWidth))
    |        |- error: 'scrollTargetBehavior' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
 88 |       .mask {
 89 |         switch horizontalEdgeMask {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:88:8: error: 'mask(alignment:_:)' is only available in macOS 12.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 86 |       .scrollPosition(id: $scrollIndex, anchor: .center)
 87 |       .scrollTargetBehavior(.snap(step: spacing + itemWidth))
 88 |       .mask {
    |        |- error: 'mask(alignment:_:)' is only available in macOS 12.0 or newer
    |        `- note: add 'if #available' version check
 89 |         switch horizontalEdgeMask {
 90 |         case .hidden:
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:91:11: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 89 |         switch horizontalEdgeMask {
 90 |         case .hidden:
 91 |           Color.black
    |           |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:91:11: error: 'Color' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 89 |         switch horizontalEdgeMask {
 90 |         case .hidden:
 91 |           Color.black
    |           |- error: 'Color' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:91:17: error: 'black' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 89 |         switch horizontalEdgeMask {
 90 |         case .hidden:
 91 |           Color.black
    |                 |- error: 'black' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:91:11: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 89 |         switch horizontalEdgeMask {
 90 |         case .hidden:
 91 |           Color.black
    |           |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:91:11: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 89 |         switch horizontalEdgeMask {
 90 |         case .hidden:
 91 |           Color.black
    |           |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:93:11: error: 'HStack' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 91 |           Color.black
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
    |           |- error: 'HStack' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:94:13: error: 'LinearGradient' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |             |- error: 'LinearGradient' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:94:38: error: 'black' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                      |- error: 'black' is only available in macOS 10.15 or newer
    |                                      `- note: add 'if #available' version check
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:94:44: error: 'opacity' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                            |- error: 'opacity' is only available in macOS 10.15 or newer
    |                                            `- note: add 'if #available' version check
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:94:57: error: 'black' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                                         |- error: 'black' is only available in macOS 10.15 or newer
    |                                                         `- note: add 'if #available' version check
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:94:108: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                                                                                            |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                                                                                                            `- note: add 'if #available' version check
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:95:13: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
    |             |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
 97 |           }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:95:13: error: 'Color' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
    |             |- error: 'Color' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
 97 |           }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:95:19: error: 'black' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 93 |           HStack(spacing: 0) {
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
    |                   |- error: 'black' is only available in macOS 10.15 or newer
    |                   `- note: add 'if #available' version check
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
 97 |           }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:96:13: error: 'LinearGradient' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |             |- error: 'LinearGradient' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 97 |           }
 98 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:96:38: error: 'black' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                      |- error: 'black' is only available in macOS 10.15 or newer
    |                                      `- note: add 'if #available' version check
 97 |           }
 98 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:96:46: error: 'black' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                              |- error: 'black' is only available in macOS 10.15 or newer
    |                                              `- note: add 'if #available' version check
 97 |           }
 98 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:96:52: error: 'opacity' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                                    |- error: 'opacity' is only available in macOS 10.15 or newer
    |                                                    `- note: add 'if #available' version check
 97 |           }
 98 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:96:108: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
 96 |             LinearGradient(colors: [.black, .black.opacity(0)], startPoint: .leading, endPoint: .trailing).frame(width: width)
    |                                                                                                            |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                                                                                                            `- note: add 'if #available' version check
 97 |           }
 98 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:93:30: error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 91 |           Color.black
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
    |                              |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:93:11: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 91 |           Color.black
 92 |         case .visible(let width):
 93 |           HStack(spacing: 0) {
    |           |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
 94 |             LinearGradient(colors: [.black.opacity(0), .black], startPoint: .leading, endPoint: .trailing).frame(width: width)
 95 |             Color.black
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:88:13: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 86 |       .scrollPosition(id: $scrollIndex, anchor: .center)
 87 |       .scrollTargetBehavior(.snap(step: spacing + itemWidth))
 88 |       .mask {
    |             |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 89 |         switch horizontalEdgeMask {
 90 |         case .hidden:
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:100:8: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
 98 |         }
 99 |       }
100 |       .overlay(
    |        |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
101 |         anchorView()
102 |       )
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:103:8: error: 'sensoryFeedback(_:trigger:)' is only available in macOS 14.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
101 |         anchorView()
102 |       )
103 |       .sensoryFeedback(.selection, trigger: scrollIndex)
    |        |- error: 'sensoryFeedback(_:trigger:)' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
104 |       .onGeometryChange(for: CGSize.self, of: \.size, action: {
105 |         contentSize = $0
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:104:8: error: 'onGeometryChange(for:of:action:)' is only available in macOS 13.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
102 |       )
103 |       .sensoryFeedback(.selection, trigger: scrollIndex)
104 |       .onGeometryChange(for: CGSize.self, of: \.size, action: {
    |        |- error: 'onGeometryChange(for:of:action:)' is only available in macOS 13.0 or newer
    |        `- note: add 'if #available' version check
105 |         contentSize = $0
106 |       })
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:105:9: error: setter for 'contentSize' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
103 |       .sensoryFeedback(.selection, trigger: scrollIndex)
104 |       .onGeometryChange(for: CGSize.self, of: \.size, action: {
105 |         contentSize = $0
    |         |- error: setter for 'contentSize' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
106 |       })
107 |       .onChange(of: scrollIndex ?? 0, { oldValue, newValue in
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:107:8: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
105 |         contentSize = $0
106 |       })
107 |       .onChange(of: scrollIndex ?? 0, { oldValue, newValue in
    |        |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
108 |         value = range.lowerBound + CGFloat(newValue) * steps
109 |         onEditing()
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:108:9: error: setter for 'value' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
106 |       })
107 |       .onChange(of: scrollIndex ?? 0, { oldValue, newValue in
108 |         value = range.lowerBound + CGFloat(newValue) * steps
    |         |- error: setter for 'value' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
109 |         onEditing()
110 |       })
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:111:8: error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
109 |         onEditing()
110 |       })
111 |       .onChange(of: value, { oldValue, newValue in
    |        |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
    |        `- note: add 'if #available' version check
112 |
113 |         // 履歴をタップして反映させる時, 他のスライダーに連動して反映する時
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:119:9: error: 'withAnimation' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
117 |         guard index != scrollIndex else { return }
118 |
119 |         withAnimation(animation) {
    |         |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
120 |           scrollProxy.scrollTo(index, anchor: .center)
121 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:123:8: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
121 |         }
122 |       })
123 |       .onAppear {
    |        |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
    |        `- note: add 'if #available' version check
124 |         Task { @MainActor in
125 |           withAnimation(animation) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:124:9: error: 'Task' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
122 |       })
123 |       .onAppear {
124 |         Task { @MainActor in
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
125 |           withAnimation(animation) {
126 |             scrollProxy.scrollTo(currentIndex, anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:124:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
122 |       })
123 |       .onAppear {
124 |         Task { @MainActor in
    |         |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
125 |           withAnimation(animation) {
126 |             scrollProxy.scrollTo(currentIndex, anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:125:11: error: 'withAnimation' is only available in macOS 10.15 or newer
  5 | import SwiftUI
  6 |
  7 | public struct SteppedSlider<Anchor: View, Segment: View, SegmentOverlay: View, Modifier: ViewModifier>: View {
    |               `- note: add @available attribute to enclosing generic struct
  8 |
  9 |   @Binding private var value: CGFloat
    :
 67 |   }
 68 |
 69 |   public var body: some View {
    |              `- note: add @available attribute to enclosing property
 70 |     ScrollViewReader { scrollProxy in
 71 |       ScrollView(.horizontal, showsIndicators: false) {
    :
123 |       .onAppear {
124 |         Task { @MainActor in
125 |           withAnimation(animation) {
    |           |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |           `- note: add 'if #available' version check
126 |             scrollProxy.scrollTo(currentIndex, anchor: .center)
127 |           }
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:143:13: error: 'scrollTransition(_:axis:transition:)' is only available in macOS 14.0 or newer
139 |
140 |
141 | struct ScrollTransitionModifier: ViewModifier {
    |        `- note: add @available attribute to enclosing struct
142 |   func body(content: Content) -> some View {
    |        `- note: add @available attribute to enclosing instance method
143 |     content.scrollTransition { content, phase in
    |             |- error: 'scrollTransition(_:axis:transition:)' is only available in macOS 14.0 or newer
    |             `- note: add 'if #available' version check
144 |       content
145 |         .opacity(phase.isIdentity ? 1 : 0.3)
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SteppedSlider.swift:145:10: error: 'opacity' is only available in macOS 14.0 or newer
139 |
140 |
141 | struct ScrollTransitionModifier: ViewModifier {
    |        `- note: add @available attribute to enclosing struct
142 |   func body(content: Content) -> some View {
    |        `- note: add @available attribute to enclosing instance method
143 |     content.scrollTransition { content, phase in
144 |       content
145 |         .opacity(phase.isIdentity ? 1 : 0.3)
    |          |- error: 'opacity' is only available in macOS 14.0 or newer
    |          `- note: add 'if #available' version check
146 |     }
147 |   }
[4/4] Compiling SteppedSlider SnapScrollBehavior.swift
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SnapScrollBehavior.swift:38:21: error: 'ScrollTarget' is only available in macOS 14.0 or newer
12 |
13 | /// A structure that defines a snapping behavior for scroll targets, conforming to `ScrollTargetBehavior`.
14 | struct SnapScrollTargetBehavior: ScrollTargetBehavior {
   |        `- note: add @available attribute to enclosing struct
15 |   /// The step value to which the scroll target should snap.
16 |   let step: Double
   :
35 |   }
36 |
37 |   func updateTarget(
   |        `- note: add @available attribute to enclosing instance method
38 |     _ target: inout ScrollTarget,
   |                     `- error: 'ScrollTarget' is only available in macOS 14.0 or newer
39 |     context: TargetContext
40 |   ) {
/Users/admin/builder/spi-builder-workspace/Sources/SteppedSlider/SnapScrollBehavior.swift:49:11: error: 'ScrollTargetBehavior' is only available in macOS 14.0 or newer
47 | }
48 |
49 | extension ScrollTargetBehavior where Self == SnapScrollTargetBehavior {
   | |         `- error: 'ScrollTargetBehavior' is only available in macOS 14.0 or newer
   | `- note: add @available attribute to enclosing extension
50 |   /// Creates a `SnapScrollTargetBehavior` with the specified step.
51 |   /// - Parameter step: The step value to which the scroll target should snap.
BUILD FAILURE 6.1 macosSpm