The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWWheelPickerViewUI, reference 0.8.0 (b74bce), with Swift 6.2 for macOS (SPM) on 13 Aug 2026 00:26:09 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWWheelPickerViewUI.git
Reference: 0.8.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWWheelPickerViewUI
 * tag               0.8.0      -> FETCH_HEAD
HEAD is now at b74bce9 - 使用WWPickerItem當中介,免除index設定錯錯的問題
Cloned https://github.com/William-Weng/WWWheelPickerViewUI.git
Revision (git rev-parse @):
b74bce90103f998905ebdbf44247f800242f4299
SUCCESS checkout https://github.com/William-Weng/WWWheelPickerViewUI.git at 0.8.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/William-Weng/WWWheelPickerViewUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Copying Privacy
[2/3] Write swift-version--3CB7CFEC50E0D141.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Compiling WWWheelPickerViewUI resource_bundle_accessor.swift
[5/8] Compiling WWWheelPickerViewUI Constant.swift
[6/8] Compiling WWWheelPickerViewUI Model.swift
[7/8] Emitting module WWWheelPickerViewUI
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:19:6: error: 'Binding' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 20 |
 21 |     @State private var changingIndex: Int = 0           // 滑動過程中,目前最接近中央的 index
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
 20 |
 21 |     @State private var changingIndex: Int = 0           // 滑動過程中,目前最接近中央的 index
    |      `- error: 'State' is only available in macOS 10.15 or newer
 22 |     @State private var rawIndex: CGFloat = 0            // 目前捲動位置換算出的連續 index 值 (3.4 代表位於第 3 格與第 4 格之間)
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
 20 |
 21 |     @State private var changingIndex: Int = 0           // 滑動過程中,目前最接近中央的 index
 22 |     @State private var rawIndex: CGFloat = 0            // 目前捲動位置換算出的連續 index 值 (3.4 代表位於第 3 格與第 4 格之間)
    |      `- error: 'State' is only available in macOS 10.15 or newer
 23 |
 24 |     @State private var offset: CGFloat = 0              // 目前 ScrollView 的位移量
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 22 |     @State private var rawIndex: CGFloat = 0            // 目前捲動位置換算出的連續 index 值 (3.4 代表位於第 3 格與第 4 格之間)
 23 |
 24 |     @State private var offset: CGFloat = 0              // 目前 ScrollView 的位移量
    |      `- error: 'State' is only available in macOS 10.15 or newer
 25 |     @State private var lastPhase: ScrollPhase = .idle   // 記錄最近一次的捲動狀態
 26 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:25:35: error: 'ScrollPhase' is only available in macOS 15.0 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 23 |
 24 |     @State private var offset: CGFloat = 0              // 目前 ScrollView 的位移量
 25 |     @State private var lastPhase: ScrollPhase = .idle   // 記錄最近一次的捲動狀態
    |                                   `- error: 'ScrollPhase' is only available in macOS 15.0 or newer
 26 |
 27 |     private let items: [WWWheelPickerItem<Value>]
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:25:6: error: 'State' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 23 |
 24 |     @State private var offset: CGFloat = 0              // 目前 ScrollView 的位移量
 25 |     @State private var lastPhase: ScrollPhase = .idle   // 記錄最近一次的捲動狀態
    |      `- error: 'State' is only available in macOS 10.15 or newer
 26 |
 27 |     private let items: [WWWheelPickerItem<Value>]
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:30:35: error: 'Alignment' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 28 |     private let majorTickInterval: Int
 29 |     private let scrollAxis: ScrollAxis
 30 |     private let overlayAlignment: Alignment
    |                                   `- error: 'Alignment' is only available in macOS 10.15 or newer
 31 |
 32 |     private let itemSize: CGFloat = 10                  // 單一刻度項目的大小
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:40:27: error: 'View' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:97:67: error: 'Binding' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 95 |     ///   - majorTickInterval: 每隔幾格顯示一次文字與主刻度
 96 |     ///   - lengthMultiple: 刻度線的長度比例
 97 |     public init(items: [WWWheelPickerItem<Value>], selectedIndex: Binding<Int>, scrollAxis: ScrollAxis = .horizontal, majorTickInterval: Int = 5, lengthMultiple: CGFloat = 0.7) {
    |            |                                                      `- error: 'Binding' is only available in macOS 10.15 or newer
    |            `- note: add '@available' attribute to enclosing initializer
 98 |
 99 |         self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:157:52: error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          |                                         `- error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:157:77: error: 'View' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          |                                                                  `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:184:46: error: 'View' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
184 |     func indicatorLine(size: CGSize) -> some View {
    |          |                                   `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:183:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
181 |     /// - Parameter size: GeometryReader 提供的可用尺寸
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
184 |     func indicatorLine(size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:198:89: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
198 |     func horizontalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          |                                                                              `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
199 |
200 |         horizontalScaleLine(with: item, height: size.height * lengthMultiple)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:209:59: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
207 |
208 |     /// 中央固定顯示的指示線 (垂直)
209 |     func horizontalIndicatorLine(height: CGFloat) -> some View {
    |          |                                                `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
210 |
211 |         VStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:220:92: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
218 |
219 |     /// 建立單一刻度線 (垂直)
220 |     func horizontalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          |                                                                                 `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
221 |
222 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:230:87: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
228 |
229 |     /// 建立單一刻度項目的完整畫面 (水平)
230 |     func verticalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          |                                                                            `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
231 |
232 |         VStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:242:56: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          |                                             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:256:90: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
254 |
255 |     /// 建立單一刻度線 (水平)
256 |     func verticalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          |                                                                               `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
257 |
258 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:266:65: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
264 |
265 |     /// 建立刻度上的文字標示
266 |     func scaleText(with item: WWWheelPickerItem<Value>) -> some View {
    |          |                                                      `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
267 |
268 |         Text(item.index.isMultiple(of: majorTickInterval) ? item.label : "")
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:283:26: error: 'Axis' is only available in macOS 10.15 or newer
273 |
274 | // MARK: - 私有屬性
275 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
276 |
277 |     /// 單一刻度的節距寬度
    :
281 |
282 |     /// 取得滾動的方向
283 |     var scrollDirection: Axis.Set {
    |         |                `- error: 'Axis' is only available in macOS 10.15 or newer
    |         `- note: add '@available' attribute to enclosing property
284 |         (scrollAxis == .horizontal) ? .horizontal : .vertical
285 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:292:43: error: 'ScrollGeometry' is only available in macOS 15.0 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
292 |     func scrollGeometryOffset(_ geometry: ScrollGeometry) -> CGFloat {
    |          |                                `- error: 'ScrollGeometry' is only available in macOS 15.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
293 |
294 |         switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:311:54: error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
309 |
310 |     /// 滑動過程中持續更新目前 index
311 |     func scrollToIndex(_ index: Int, by scrollProxy: ScrollViewProxy) {
    |          |                                           `- error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
312 |
313 |         selectedIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:322:50: error: 'EdgeInsets' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
320 |
321 |     /// 滑動過程中持續更新目前 index
322 |     func scrollChanging(offset: CGFloat, insets: EdgeInsets) {
    |          |                                       `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
323 |
324 |         let newRawIndex = (offset + insets.top) / strideHeight
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:336:46: error: 'ScrollPhase' is only available in macOS 15.0 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          |                                   `- error: 'ScrollPhase' is only available in macOS 15.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:336:71: error: 'ScrollPhase' is only available in macOS 15.0 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          |                                                            `- error: 'ScrollPhase' is only available in macOS 15.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:336:100: error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          |                                                                                         `- error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:336:125: error: 'EdgeInsets' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          |                                                                                                                  `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
[8/8] Compiling WWWheelPickerViewUI WWWheelPickerViewUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:19:6: error: 'Binding' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 20 |
 21 |     @State private var changingIndex: Int = 0           // 滑動過程中,目前最接近中央的 index
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
 20 |
 21 |     @State private var changingIndex: Int = 0           // 滑動過程中,目前最接近中央的 index
    |      `- error: 'State' is only available in macOS 10.15 or newer
 22 |     @State private var rawIndex: CGFloat = 0            // 目前捲動位置換算出的連續 index 值 (3.4 代表位於第 3 格與第 4 格之間)
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
 20 |
 21 |     @State private var changingIndex: Int = 0           // 滑動過程中,目前最接近中央的 index
 22 |     @State private var rawIndex: CGFloat = 0            // 目前捲動位置換算出的連續 index 值 (3.4 代表位於第 3 格與第 4 格之間)
    |      `- error: 'State' is only available in macOS 10.15 or newer
 23 |
 24 |     @State private var offset: CGFloat = 0              // 目前 ScrollView 的位移量
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:24:6: error: 'State' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 22 |     @State private var rawIndex: CGFloat = 0            // 目前捲動位置換算出的連續 index 值 (3.4 代表位於第 3 格與第 4 格之間)
 23 |
 24 |     @State private var offset: CGFloat = 0              // 目前 ScrollView 的位移量
    |      `- error: 'State' is only available in macOS 10.15 or newer
 25 |     @State private var lastPhase: ScrollPhase = .idle   // 記錄最近一次的捲動狀態
 26 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:25:35: error: 'ScrollPhase' is only available in macOS 15.0 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 23 |
 24 |     @State private var offset: CGFloat = 0              // 目前 ScrollView 的位移量
 25 |     @State private var lastPhase: ScrollPhase = .idle   // 記錄最近一次的捲動狀態
    |                                   `- error: 'ScrollPhase' is only available in macOS 15.0 or newer
 26 |
 27 |     private let items: [WWWheelPickerItem<Value>]
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:25:6: error: 'State' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 23 |
 24 |     @State private var offset: CGFloat = 0              // 目前 ScrollView 的位移量
 25 |     @State private var lastPhase: ScrollPhase = .idle   // 記錄最近一次的捲動狀態
    |      `- error: 'State' is only available in macOS 10.15 or newer
 26 |
 27 |     private let items: [WWWheelPickerItem<Value>]
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:30:35: error: 'Alignment' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 28 |     private let majorTickInterval: Int
 29 |     private let scrollAxis: ScrollAxis
 30 |     private let overlayAlignment: Alignment
    |                                   `- error: 'Alignment' is only available in macOS 10.15 or newer
 31 |
 32 |     private let itemSize: CGFloat = 10                  // 單一刻度項目的大小
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:40:27: error: 'View' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:97:67: error: 'Binding' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 95 |     ///   - majorTickInterval: 每隔幾格顯示一次文字與主刻度
 96 |     ///   - lengthMultiple: 刻度線的長度比例
 97 |     public init(items: [WWWheelPickerItem<Value>], selectedIndex: Binding<Int>, scrollAxis: ScrollAxis = .horizontal, majorTickInterval: Int = 5, lengthMultiple: CGFloat = 0.7) {
    |            |                                                      `- error: 'Binding' is only available in macOS 10.15 or newer
    |            `- note: add '@available' attribute to enclosing initializer
 98 |
 99 |         self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:157:52: error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          |                                         `- error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:157:77: error: 'View' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          |                                                                  `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:184:46: error: 'View' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
184 |     func indicatorLine(size: CGSize) -> some View {
    |          |                                   `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:183:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
181 |     /// - Parameter size: GeometryReader 提供的可用尺寸
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
184 |     func indicatorLine(size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:198:89: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
198 |     func horizontalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          |                                                                              `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
199 |
200 |         horizontalScaleLine(with: item, height: size.height * lengthMultiple)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:209:59: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
207 |
208 |     /// 中央固定顯示的指示線 (垂直)
209 |     func horizontalIndicatorLine(height: CGFloat) -> some View {
    |          |                                                `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
210 |
211 |         VStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:220:92: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
218 |
219 |     /// 建立單一刻度線 (垂直)
220 |     func horizontalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          |                                                                                 `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
221 |
222 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:230:87: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
228 |
229 |     /// 建立單一刻度項目的完整畫面 (水平)
230 |     func verticalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          |                                                                            `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
231 |
232 |         VStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:242:56: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          |                                             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:256:90: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
254 |
255 |     /// 建立單一刻度線 (水平)
256 |     func verticalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          |                                                                               `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
257 |
258 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:266:65: error: 'View' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
264 |
265 |     /// 建立刻度上的文字標示
266 |     func scaleText(with item: WWWheelPickerItem<Value>) -> some View {
    |          |                                                      `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
267 |
268 |         Text(item.index.isMultiple(of: majorTickInterval) ? item.label : "")
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:283:26: error: 'Axis' is only available in macOS 10.15 or newer
273 |
274 | // MARK: - 私有屬性
275 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
276 |
277 |     /// 單一刻度的節距寬度
    :
281 |
282 |     /// 取得滾動的方向
283 |     var scrollDirection: Axis.Set {
    |         |                `- error: 'Axis' is only available in macOS 10.15 or newer
    |         `- note: add '@available' attribute to enclosing property
284 |         (scrollAxis == .horizontal) ? .horizontal : .vertical
285 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:292:43: error: 'ScrollGeometry' is only available in macOS 15.0 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
292 |     func scrollGeometryOffset(_ geometry: ScrollGeometry) -> CGFloat {
    |          |                                `- error: 'ScrollGeometry' is only available in macOS 15.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
293 |
294 |         switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:311:54: error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
309 |
310 |     /// 滑動過程中持續更新目前 index
311 |     func scrollToIndex(_ index: Int, by scrollProxy: ScrollViewProxy) {
    |          |                                           `- error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
312 |
313 |         selectedIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:322:50: error: 'EdgeInsets' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
320 |
321 |     /// 滑動過程中持續更新目前 index
322 |     func scrollChanging(offset: CGFloat, insets: EdgeInsets) {
    |          |                                       `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
323 |
324 |         let newRawIndex = (offset + insets.top) / strideHeight
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:336:46: error: 'ScrollPhase' is only available in macOS 15.0 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          |                                   `- error: 'ScrollPhase' is only available in macOS 15.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:336:71: error: 'ScrollPhase' is only available in macOS 15.0 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          |                                                            `- error: 'ScrollPhase' is only available in macOS 15.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:336:100: error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          |                                                                                         `- error: 'ScrollViewProxy' is only available in macOS 11.0 or newer
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:336:125: error: 'EdgeInsets' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          |                                                                                                                  `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:42:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    |         |- error: 'GeometryReader' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 43 |
 44 |             let size = proxy.size
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:42:24: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    |                        |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                        `- note: add 'if #available' version check
 43 |
 44 |             let size = proxy.size
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:48:13: error: 'ZStack' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 46 |             let sideInset = sideInsetValue(by: size)
 47 |
 48 |             ZStack {
    |             |- error: 'ZStack' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 49 |
 50 |                 ScrollViewReader { scrollProxy in
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:48:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 46 |             let sideInset = sideInsetValue(by: size)
 47 |
 48 |             ZStack {
    |                    |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                    `- note: add 'if #available' version check
 49 |
 50 |                 ScrollViewReader { scrollProxy in
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:50:17: error: 'ScrollViewReader' is only available in macOS 11.0 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 48 |             ZStack {
 49 |
 50 |                 ScrollViewReader { scrollProxy in
    |                 |- error: 'ScrollViewReader' is only available in macOS 11.0 or newer
    |                 `- note: add 'if #available' version check
 51 |
 52 |                     ScrollView(scrollDirection, showsIndicators: false) {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:50:34: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 48 |             ZStack {
 49 |
 50 |                 ScrollViewReader { scrollProxy in
    |                                  |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                                  `- note: add 'if #available' version check
 51 |
 52 |                     ScrollView(scrollDirection, showsIndicators: false) {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:52:21: error: 'ScrollView' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 50 |                 ScrollViewReader { scrollProxy in
 51 |
 52 |                     ScrollView(scrollDirection, showsIndicators: false) {
    |                     |- error: 'ScrollView' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 53 |
 54 |                         switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:52:21: error: 'init(_:showsIndicators:content:)' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 50 |                 ScrollViewReader { scrollProxy in
 51 |
 52 |                     ScrollView(scrollDirection, showsIndicators: false) {
    |                     |- error: 'init(_:showsIndicators:content:)' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 53 |
 54 |                         switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:56:29: error: 'LazyHStack' is only available in macOS 11.0 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 54 |                         switch scrollAxis {
 55 |                         case .horizontal:
 56 |                             LazyHStack(alignment: .top, spacing: spacing) {
    |                             |- error: 'LazyHStack' is only available in macOS 11.0 or newer
    |                             `- note: add 'if #available' version check
 57 |                                 scaleItemViews(size: size, scrollProxy: scrollProxy)
 58 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:56:52: error: 'top' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 54 |                         switch scrollAxis {
 55 |                         case .horizontal:
 56 |                             LazyHStack(alignment: .top, spacing: spacing) {
    |                                                    |- error: 'top' is only available in macOS 10.15 or newer
    |                                                    `- note: add 'if #available' version check
 57 |                                 scaleItemViews(size: size, scrollProxy: scrollProxy)
 58 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:59:30: error: 'padding' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 57 |                                 scaleItemViews(size: size, scrollProxy: scrollProxy)
 58 |                             }
 59 |                             .padding(.horizontal, sideInset)
    |                              |- error: 'padding' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 60 |                         case .vertical:
 61 |                             LazyVStack(alignment: .leading, spacing: spacing) {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:56:29: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 54 |                         switch scrollAxis {
 55 |                         case .horizontal:
 56 |                             LazyHStack(alignment: .top, spacing: spacing) {
    |                             |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
 57 |                                 scaleItemViews(size: size, scrollProxy: scrollProxy)
 58 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:61:29: error: 'LazyVStack' is only available in macOS 11.0 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 59 |                             .padding(.horizontal, sideInset)
 60 |                         case .vertical:
 61 |                             LazyVStack(alignment: .leading, spacing: spacing) {
    |                             |- error: 'LazyVStack' is only available in macOS 11.0 or newer
    |                             `- note: add 'if #available' version check
 62 |                                 scaleItemViews(size: size, scrollProxy: scrollProxy)
 63 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:61:52: error: 'leading' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 59 |                             .padding(.horizontal, sideInset)
 60 |                         case .vertical:
 61 |                             LazyVStack(alignment: .leading, spacing: spacing) {
    |                                                    |- error: 'leading' is only available in macOS 10.15 or newer
    |                                                    `- note: add 'if #available' version check
 62 |                                 scaleItemViews(size: size, scrollProxy: scrollProxy)
 63 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:64:30: error: 'padding' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 62 |                                 scaleItemViews(size: size, scrollProxy: scrollProxy)
 63 |                             }
 64 |                             .padding(.vertical, sideInset)
    |                              |- error: 'padding' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 65 |                         }
 66 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:61:29: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 59 |                             .padding(.horizontal, sideInset)
 60 |                         case .vertical:
 61 |                             LazyVStack(alignment: .leading, spacing: spacing) {
    |                             |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
 62 |                                 scaleItemViews(size: size, scrollProxy: scrollProxy)
 63 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:52:73: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 50 |                 ScrollViewReader { scrollProxy in
 51 |
 52 |                     ScrollView(scrollDirection, showsIndicators: false) {
    |                                                                         |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                                                                         `- note: add 'if #available' version check
 53 |
 54 |                         switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:67:22: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 65 |                         }
 66 |                     }
 67 |                     .overlay(alignment: overlayAlignment) {
    |                      |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
    |                      `- note: add 'if #available' version check
 68 |                         indicatorLine(size: size)
 69 |                             .allowsHitTesting(false)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:69:30: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 67 |                     .overlay(alignment: overlayAlignment) {
 68 |                         indicatorLine(size: size)
 69 |                             .allowsHitTesting(false)
    |                              |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 70 |                     }
 71 |                     .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:71:22: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 69 |                             .allowsHitTesting(false)
 70 |                     }
 71 |                     .onAppear {
    |                      |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 72 |                         Task { @MainActor in
 73 |                             scrollProxy.scrollTo(selectedIndex, anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:72:25: error: 'Task' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 70 |                     }
 71 |                     .onAppear {
 72 |                         Task { @MainActor in
    |                         |- error: 'Task' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 73 |                             scrollProxy.scrollTo(selectedIndex, anchor: .center)
 74 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:72:25: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 70 |                     }
 71 |                     .onAppear {
 72 |                         Task { @MainActor in
    |                         |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 73 |                             scrollProxy.scrollTo(selectedIndex, anchor: .center)
 74 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:76:22: error: 'onScrollGeometryChange(for:of:action:)' is only available in macOS 15.0 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 74 |                         }
 75 |                     }
 76 |                     .onScrollGeometryChange(for: CGFloat.self) {
    |                      |- error: 'onScrollGeometryChange(for:of:action:)' is only available in macOS 15.0 or newer
    |                      `- note: add 'if #available' version check
 77 |                         scrollGeometryOffset($0)
 78 |                     } action: { _, newValue in
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:79:25: error: setter for 'offset' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 77 |                         scrollGeometryOffset($0)
 78 |                     } action: { _, newValue in
 79 |                         offset = newValue
    |                         |- error: setter for 'offset' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 80 |                         scrollChanging(offset: offset, insets: safeAreaInsets)
 81 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:82:22: error: 'onScrollPhaseChange' is only available in macOS 15.0 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 38 |     private var didEndScrollAtIndex: ((Int) -> Void)?   // 滑動停止並吸附完成後的回呼
 39 |
 40 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 41 |
 42 |         GeometryReader { proxy in
    :
 80 |                         scrollChanging(offset: offset, insets: safeAreaInsets)
 81 |                     }
 82 |                     .onScrollPhaseChange { oldPhase, newPhase in
    |                      |- error: 'onScrollPhaseChange' is only available in macOS 15.0 or newer
    |                      `- note: add 'if #available' version check
 83 |                         scrollPhaseChangeAction(oldPhase, newPhase, by: scrollProxy, insets: safeAreaInsets)
 84 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:103:64: error: 'center' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 95 |     ///   - majorTickInterval: 每隔幾格顯示一次文字與主刻度
 96 |     ///   - lengthMultiple: 刻度線的長度比例
 97 |     public init(items: [WWWheelPickerItem<Value>], selectedIndex: Binding<Int>, scrollAxis: ScrollAxis = .horizontal, majorTickInterval: Int = 5, lengthMultiple: CGFloat = 0.7) {
    |            `- note: add '@available' attribute to enclosing initializer
 98 |
 99 |         self.items = items
    :
101 |         self.scrollAxis = scrollAxis
102 |         self.lengthMultiple = lengthMultiple
103 |         self.overlayAlignment = (scrollAxis == .horizontal) ? .center : .leading
    |                                                                |- error: 'center' is only available in macOS 10.15 or newer
    |                                                                `- note: add 'if #available' version check
104 |
105 |         _selectedIndex = selectedIndex
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:103:74: error: 'leading' is only available in macOS 10.15 or newer
 15 | /// - 滑動停止後,自動吸附到最近的刻度
 16 | /// - 中央固定顯示指示線,作為對齊基準
 17 | public struct WWWheelPickerViewUI<Value: Hashable>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
 18 |
 19 |     @Binding private var selectedIndex: Int
    :
 95 |     ///   - majorTickInterval: 每隔幾格顯示一次文字與主刻度
 96 |     ///   - lengthMultiple: 刻度線的長度比例
 97 |     public init(items: [WWWheelPickerItem<Value>], selectedIndex: Binding<Int>, scrollAxis: ScrollAxis = .horizontal, majorTickInterval: Int = 5, lengthMultiple: CGFloat = 0.7) {
    |            `- note: add '@available' attribute to enclosing initializer
 98 |
 99 |         self.items = items
    :
101 |         self.scrollAxis = scrollAxis
102 |         self.lengthMultiple = lengthMultiple
103 |         self.overlayAlignment = (scrollAxis == .horizontal) ? .center : .leading
    |                                                                          |- error: 'leading' is only available in macOS 10.15 or newer
    |                                                                          `- note: add 'if #available' version check
104 |
105 |         _selectedIndex = selectedIndex
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:159:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    |         |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |         `- note: add 'if #available' version check
160 |
161 |             switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:159:9: error: 'ForEach' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    |         |- error: 'ForEach' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
160 |
161 |             switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:159:9: error: 'init(_:content:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    |         |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
160 |
161 |             switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:164:30: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    :
162 |             case .horizontal:
163 |                 horizontalScaleView(with: item, size: size)
164 |                             .frame(width: itemSize)
    |                              |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
165 |                             .contentShape(Rectangle())
166 |                             .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:165:30: error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    :
163 |                 horizontalScaleView(with: item, size: size)
164 |                             .frame(width: itemSize)
165 |                             .contentShape(Rectangle())
    |                              |- error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
166 |                             .onTapGesture {
167 |                                 scrollToIndex(item.index, by: scrollProxy)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:165:43: error: 'Rectangle' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    :
163 |                 horizontalScaleView(with: item, size: size)
164 |                             .frame(width: itemSize)
165 |                             .contentShape(Rectangle())
    |                                           |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |                                           `- note: add 'if #available' version check
166 |                             .onTapGesture {
167 |                                 scrollToIndex(item.index, by: scrollProxy)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:166:30: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    :
164 |                             .frame(width: itemSize)
165 |                             .contentShape(Rectangle())
166 |                             .onTapGesture {
    |                              |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
167 |                                 scrollToIndex(item.index, by: scrollProxy)
168 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:163:17: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    :
161 |             switch scrollAxis {
162 |             case .horizontal:
163 |                 horizontalScaleView(with: item, size: size)
    |                 |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
164 |                             .frame(width: itemSize)
165 |                             .contentShape(Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:171:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    :
169 |             case .vertical:
170 |                 verticalScaleView(with: item, size: size)
171 |                     .frame(height: itemSize)
    |                      |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
172 |                     .contentShape(Rectangle())
173 |                     .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:172:22: error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    :
170 |                 verticalScaleView(with: item, size: size)
171 |                     .frame(height: itemSize)
172 |                     .contentShape(Rectangle())
    |                      |- error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
173 |                     .onTapGesture {
174 |                         scrollToIndex(item.index, by: scrollProxy)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:172:35: error: 'Rectangle' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    :
170 |                 verticalScaleView(with: item, size: size)
171 |                     .frame(height: itemSize)
172 |                     .contentShape(Rectangle())
    |                                   |- error: 'Rectangle' is only available in macOS 10.15 or newer
    |                                   `- note: add 'if #available' version check
173 |                     .onTapGesture {
174 |                         scrollToIndex(item.index, by: scrollProxy)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:173:22: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    :
171 |                     .frame(height: itemSize)
172 |                     .contentShape(Rectangle())
173 |                     .onTapGesture {
    |                      |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
174 |                         scrollToIndex(item.index, by: scrollProxy)
175 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:170:17: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    :
168 |                             }
169 |             case .vertical:
170 |                 verticalScaleView(with: item, size: size)
    |                 |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
171 |                     .frame(height: itemSize)
172 |                     .contentShape(Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:159:24: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
155 |     ///   - scrollProxy: 由 ScrollViewReader 提供的代理,用來執行程式化滾動(scrollTo)
156 |     /// - Returns: 一組刻度項目的 View(ForEach)
157 |     func scaleItemViews(size: CGSize, scrollProxy: ScrollViewProxy) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
158 |
159 |         ForEach(items) { item in
    |                        |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                        `- note: add 'if #available' version check
160 |
161 |             switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:187:27: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
184 |     func indicatorLine(size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
187 |         case .horizontal: horizontalIndicatorLine(height: size.height * lengthMultiple)
    |                           |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
188 |         case .vertical: verticalIndicatorLine(width: size.width * lengthMultiple)
189 |         default: fatalError("Axis must be .horizontal or .vertical")
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:187:27: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
184 |     func indicatorLine(size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
187 |         case .horizontal: horizontalIndicatorLine(height: size.height * lengthMultiple)
    |                           |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                           `- note: add 'if #available' version check
188 |         case .vertical: verticalIndicatorLine(width: size.width * lengthMultiple)
189 |         default: fatalError("Axis must be .horizontal or .vertical")
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:188:25: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
184 |     func indicatorLine(size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
187 |         case .horizontal: horizontalIndicatorLine(height: size.height * lengthMultiple)
188 |         case .vertical: verticalIndicatorLine(width: size.width * lengthMultiple)
    |                         |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
189 |         default: fatalError("Axis must be .horizontal or .vertical")
190 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:188:25: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
184 |     func indicatorLine(size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
187 |         case .horizontal: horizontalIndicatorLine(height: size.height * lengthMultiple)
188 |         case .vertical: verticalIndicatorLine(width: size.width * lengthMultiple)
    |                         |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
189 |         default: fatalError("Axis must be .horizontal or .vertical")
190 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:189:18: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
184 |     func indicatorLine(size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
187 |         case .horizontal: horizontalIndicatorLine(height: size.height * lengthMultiple)
188 |         case .vertical: verticalIndicatorLine(width: size.width * lengthMultiple)
189 |         default: fatalError("Axis must be .horizontal or .vertical")
    |                  |- warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                  `- note: add 'if #available' version check
190 |         }
191 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:189:18: warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
184 |     func indicatorLine(size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
187 |         case .horizontal: horizontalIndicatorLine(height: size.height * lengthMultiple)
188 |         case .vertical: verticalIndicatorLine(width: size.width * lengthMultiple)
189 |         default: fatalError("Axis must be .horizontal or .vertical")
    |                  |- warning: conformance of 'Never' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                  `- note: add 'if #available' version check
190 |         }
191 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:189:18: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
184 |     func indicatorLine(size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
187 |         case .horizontal: horizontalIndicatorLine(height: size.height * lengthMultiple)
188 |         case .vertical: verticalIndicatorLine(width: size.width * lengthMultiple)
189 |         default: fatalError("Axis must be .horizontal or .vertical")
    |                  |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
190 |         }
191 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:184:51: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
148 |
149 | // MARK: - 私有主視圖
150 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
151 |
152 |     /// 產生所有刻度項目的 View
    :
182 |     /// - Returns: 指示線 View(水平或垂直)
183 |     @ViewBuilder
184 |     func indicatorLine(size: CGSize) -> some View {
    |          |                                        |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |          |                                        `- note: add 'if #available' version check
    |          `- note: add '@available' attribute to enclosing instance method
185 |
186 |         switch scrollAxis {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:201:14: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
198 |     func horizontalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
199 |
200 |         horizontalScaleLine(with: item, height: size.height * lengthMultiple)
201 |             .overlay(alignment: .bottom) {
    |              |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
    |              `- note: add 'if #available' version check
202 |                 scaleText(with: item)
203 |                     .frame(width: 72)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:201:34: error: 'bottom' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
198 |     func horizontalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
199 |
200 |         horizontalScaleLine(with: item, height: size.height * lengthMultiple)
201 |             .overlay(alignment: .bottom) {
    |                                  |- error: 'bottom' is only available in macOS 10.15 or newer
    |                                  `- note: add 'if #available' version check
202 |                 scaleText(with: item)
203 |                     .frame(width: 72)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:203:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
198 |     func horizontalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
199 |
200 |         horizontalScaleLine(with: item, height: size.height * lengthMultiple)
201 |             .overlay(alignment: .bottom) {
202 |                 scaleText(with: item)
203 |                     .frame(width: 72)
    |                      |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
204 |                     .offset(y: 24)
205 |             }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:204:22: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
198 |     func horizontalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
199 |
200 |         horizontalScaleLine(with: item, height: size.height * lengthMultiple)
    :
202 |                 scaleText(with: item)
203 |                     .frame(width: 72)
204 |                     .offset(y: 24)
    |                      |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
205 |             }
206 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:211:9: error: 'VStack' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
207 |
208 |     /// 中央固定顯示的指示線 (垂直)
209 |     func horizontalIndicatorLine(height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
210 |
211 |         VStack {
    |         |- error: 'VStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
212 |             Capsule()
213 |                 .fill(.blue)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:211:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
207 |
208 |     /// 中央固定顯示的指示線 (垂直)
209 |     func horizontalIndicatorLine(height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
210 |
211 |         VStack {
    |                |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                `- note: add 'if #available' version check
212 |             Capsule()
213 |                 .fill(.blue)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:212:13: error: 'Capsule' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
207 |
208 |     /// 中央固定顯示的指示線 (垂直)
209 |     func horizontalIndicatorLine(height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
210 |
211 |         VStack {
212 |             Capsule()
    |             |- error: 'Capsule' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
213 |                 .fill(.blue)
214 |                 .frame(width: 3, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:213:18: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
207 |
208 |     /// 中央固定顯示的指示線 (垂直)
209 |     func horizontalIndicatorLine(height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
210 |
211 |         VStack {
212 |             Capsule()
213 |                 .fill(.blue)
    |                  |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
    |                  `- note: add 'if #available' version check
214 |                 .frame(width: 3, height: height)
215 |             Spacer(minLength: 0)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:213:24: error: 'blue' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
207 |
208 |     /// 中央固定顯示的指示線 (垂直)
209 |     func horizontalIndicatorLine(height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
210 |
211 |         VStack {
212 |             Capsule()
213 |                 .fill(.blue)
    |                        |- error: 'blue' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
214 |                 .frame(width: 3, height: height)
215 |             Spacer(minLength: 0)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:214:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
207 |
208 |     /// 中央固定顯示的指示線 (垂直)
209 |     func horizontalIndicatorLine(height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
210 |
211 |         VStack {
212 |             Capsule()
213 |                 .fill(.blue)
214 |                 .frame(width: 3, height: height)
    |                  |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
215 |             Spacer(minLength: 0)
216 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:215:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
207 |
208 |     /// 中央固定顯示的指示線 (垂直)
209 |     func horizontalIndicatorLine(height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
210 |
211 |         VStack {
    :
213 |                 .fill(.blue)
214 |                 .frame(width: 3, height: height)
215 |             Spacer(minLength: 0)
    |             |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
216 |         }
217 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:215:13: error: 'Spacer' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
207 |
208 |     /// 中央固定顯示的指示線 (垂直)
209 |     func horizontalIndicatorLine(height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
210 |
211 |         VStack {
    :
213 |                 .fill(.blue)
214 |                 .frame(width: 3, height: height)
215 |             Spacer(minLength: 0)
    |             |- error: 'Spacer' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
216 |         }
217 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:211:16: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
207 |
208 |     /// 中央固定顯示的指示線 (垂直)
209 |     func horizontalIndicatorLine(height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
210 |
211 |         VStack {
    |                |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                `- note: add 'if #available' version check
212 |             Capsule()
213 |                 .fill(.blue)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:224:16: error: 'Capsule' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
218 |
219 |     /// 建立單一刻度線 (垂直)
220 |     func horizontalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
221 |
222 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
223 |
224 |         return Capsule()
    |                |- error: 'Capsule' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
225 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
226 |             .frame(width: 2, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:225:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
218 |
219 |     /// 建立單一刻度線 (垂直)
220 |     func horizontalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
221 |
222 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
223 |
224 |         return Capsule()
225 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
    |              |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
    |              `- note: add 'if #available' version check
226 |             .frame(width: 2, height: height)
227 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:225:50: error: 'red' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
218 |
219 |     /// 建立單一刻度線 (垂直)
220 |     func horizontalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
221 |
222 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
223 |
224 |         return Capsule()
225 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
    |                                                  |- error: 'red' is only available in macOS 10.15 or newer
    |                                                  `- note: add 'if #available' version check
226 |             .frame(width: 2, height: height)
227 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:225:57: error: 'primary' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
218 |
219 |     /// 建立單一刻度線 (垂直)
220 |     func horizontalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
221 |
222 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
223 |
224 |         return Capsule()
225 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
    |                                                         |- error: 'primary' is only available in macOS 10.15 or newer
    |                                                         `- note: add 'if #available' version check
226 |             .frame(width: 2, height: height)
227 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:225:65: error: 'opacity' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
218 |
219 |     /// 建立單一刻度線 (垂直)
220 |     func horizontalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
221 |
222 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
223 |
224 |         return Capsule()
225 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
    |                                                                 |- error: 'opacity' is only available in macOS 10.15 or newer
    |                                                                 `- note: add 'if #available' version check
226 |             .frame(width: 2, height: height)
227 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:226:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
218 |
219 |     /// 建立單一刻度線 (垂直)
220 |     func horizontalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
221 |
222 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
    :
224 |         return Capsule()
225 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
226 |             .frame(width: 2, height: height)
    |              |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
227 |     }
228 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:232:9: error: 'VStack' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
228 |
229 |     /// 建立單一刻度項目的完整畫面 (水平)
230 |     func verticalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
231 |
232 |         VStack {
    |         |- error: 'VStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
233 |             verticalScaleLine(with: item, height: size.width * lengthMultiple)
234 |                 .overlay(alignment: .trailing) {
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:234:18: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
228 |
229 |     /// 建立單一刻度項目的完整畫面 (水平)
230 |     func verticalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
231 |
232 |         VStack {
233 |             verticalScaleLine(with: item, height: size.width * lengthMultiple)
234 |                 .overlay(alignment: .trailing) {
    |                  |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
    |                  `- note: add 'if #available' version check
235 |                     scaleText(with: item)
236 |                         .offset(x: 24)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:234:38: error: 'trailing' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
228 |
229 |     /// 建立單一刻度項目的完整畫面 (水平)
230 |     func verticalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
231 |
232 |         VStack {
233 |             verticalScaleLine(with: item, height: size.width * lengthMultiple)
234 |                 .overlay(alignment: .trailing) {
    |                                      |- error: 'trailing' is only available in macOS 10.15 or newer
    |                                      `- note: add 'if #available' version check
235 |                     scaleText(with: item)
236 |                         .offset(x: 24)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:236:26: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
228 |
229 |     /// 建立單一刻度項目的完整畫面 (水平)
230 |     func verticalScaleView(with item: WWWheelPickerItem<Value>, size: CGSize) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
231 |
232 |         VStack {
    :
234 |                 .overlay(alignment: .trailing) {
235 |                     scaleText(with: item)
236 |                         .offset(x: 24)
    |                          |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
237 |                 }
238 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:244:9: error: 'VStack' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
    |         |- error: 'VStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
245 |             Spacer(minLength: 0)
246 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:244:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
    |                |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                `- note: add 'if #available' version check
245 |             Spacer(minLength: 0)
246 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:245:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
245 |             Spacer(minLength: 0)
    |             |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
246 |
247 |             Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:245:13: error: 'Spacer' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
245 |             Spacer(minLength: 0)
    |             |- error: 'Spacer' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
246 |
247 |             Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:247:13: error: 'Capsule' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
245 |             Spacer(minLength: 0)
246 |
247 |             Capsule()
    |             |- error: 'Capsule' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
248 |                 .fill(.blue)
249 |                 .frame(width: width, height: 3)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:248:18: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
    :
246 |
247 |             Capsule()
248 |                 .fill(.blue)
    |                  |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
    |                  `- note: add 'if #available' version check
249 |                 .frame(width: width, height: 3)
250 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:248:24: error: 'blue' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
    :
246 |
247 |             Capsule()
248 |                 .fill(.blue)
    |                        |- error: 'blue' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
249 |                 .frame(width: width, height: 3)
250 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:249:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
    :
247 |             Capsule()
248 |                 .fill(.blue)
249 |                 .frame(width: width, height: 3)
    |                  |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
250 |
251 |             Spacer(minLength: 0)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:251:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
    :
249 |                 .frame(width: width, height: 3)
250 |
251 |             Spacer(minLength: 0)
    |             |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
252 |         }
253 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:251:13: error: 'Spacer' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
    :
249 |                 .frame(width: width, height: 3)
250 |
251 |             Spacer(minLength: 0)
    |             |- error: 'Spacer' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
252 |         }
253 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:244:16: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
    |                |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                `- note: add 'if #available' version check
245 |             Spacer(minLength: 0)
246 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:244:16: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
240 |
241 |     /// 中央固定顯示的指示線 (水平)
242 |     func verticalIndicatorLine(width: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
243 |
244 |         VStack {
    |                |- warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                `- note: add 'if #available' version check
245 |             Spacer(minLength: 0)
246 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:260:16: error: 'Capsule' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
254 |
255 |     /// 建立單一刻度線 (水平)
256 |     func verticalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
257 |
258 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
259 |
260 |         return Capsule()
    |                |- error: 'Capsule' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
261 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
262 |             .frame(width: height, height: 2)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:261:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
254 |
255 |     /// 建立單一刻度線 (水平)
256 |     func verticalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
257 |
258 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
259 |
260 |         return Capsule()
261 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
    |              |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
    |              `- note: add 'if #available' version check
262 |             .frame(width: height, height: 2)
263 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:261:50: error: 'red' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
254 |
255 |     /// 建立單一刻度線 (水平)
256 |     func verticalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
257 |
258 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
259 |
260 |         return Capsule()
261 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
    |                                                  |- error: 'red' is only available in macOS 10.15 or newer
    |                                                  `- note: add 'if #available' version check
262 |             .frame(width: height, height: 2)
263 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:261:57: error: 'primary' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
254 |
255 |     /// 建立單一刻度線 (水平)
256 |     func verticalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
257 |
258 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
259 |
260 |         return Capsule()
261 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
    |                                                         |- error: 'primary' is only available in macOS 10.15 or newer
    |                                                         `- note: add 'if #available' version check
262 |             .frame(width: height, height: 2)
263 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:261:65: error: 'opacity' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
254 |
255 |     /// 建立單一刻度線 (水平)
256 |     func verticalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
257 |
258 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
259 |
260 |         return Capsule()
261 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
    |                                                                 |- error: 'opacity' is only available in macOS 10.15 or newer
    |                                                                 `- note: add 'if #available' version check
262 |             .frame(width: height, height: 2)
263 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:262:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
254 |
255 |     /// 建立單一刻度線 (水平)
256 |     func verticalScaleLine(with item: WWWheelPickerItem<Value>, height: CGFloat) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
257 |
258 |         let height = item.index.isMultiple(of: majorTickInterval) ? height : height * 0.5
    :
260 |         return Capsule()
261 |             .fill(selectedIndex == item.index ? .red : .primary.opacity(0.45))
262 |             .frame(width: height, height: 2)
    |              |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
263 |     }
264 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:270:14: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
264 |
265 |     /// 建立刻度上的文字標示
266 |     func scaleText(with item: WWWheelPickerItem<Value>) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
267 |
268 |         Text(item.index.isMultiple(of: majorTickInterval) ? item.label : "")
269 |             .font(.caption2)
270 |             .foregroundStyle(selectedIndex == item.index ? .primary : .secondary)
    |              |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |              `- note: add 'if #available' version check
271 |     }
272 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:268:9: error: 'Text' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
264 |
265 |     /// 建立刻度上的文字標示
266 |     func scaleText(with item: WWWheelPickerItem<Value>) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
267 |
268 |         Text(item.index.isMultiple(of: majorTickInterval) ? item.label : "")
    |         |- error: 'Text' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
269 |             .font(.caption2)
270 |             .foregroundStyle(selectedIndex == item.index ? .primary : .secondary)
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:269:14: error: 'font' is only available in macOS 10.15 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
264 |
265 |     /// 建立刻度上的文字標示
266 |     func scaleText(with item: WWWheelPickerItem<Value>) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
267 |
268 |         Text(item.index.isMultiple(of: majorTickInterval) ? item.label : "")
269 |             .font(.caption2)
    |              |- error: 'font' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
270 |             .foregroundStyle(selectedIndex == item.index ? .primary : .secondary)
271 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:269:20: error: 'caption2' is only available in macOS 11.0 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
264 |
265 |     /// 建立刻度上的文字標示
266 |     func scaleText(with item: WWWheelPickerItem<Value>) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
267 |
268 |         Text(item.index.isMultiple(of: majorTickInterval) ? item.label : "")
269 |             .font(.caption2)
    |                    |- error: 'caption2' is only available in macOS 11.0 or newer
    |                    `- note: add 'if #available' version check
270 |             .foregroundStyle(selectedIndex == item.index ? .primary : .secondary)
271 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:270:14: error: 'foregroundStyle' is only available in macOS 14.0 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
264 |
265 |     /// 建立刻度上的文字標示
266 |     func scaleText(with item: WWWheelPickerItem<Value>) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
267 |
268 |         Text(item.index.isMultiple(of: majorTickInterval) ? item.label : "")
269 |             .font(.caption2)
270 |             .foregroundStyle(selectedIndex == item.index ? .primary : .secondary)
    |              |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |              `- note: add 'if #available' version check
271 |     }
272 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:270:61: error: 'primary' is only available in macOS 12.0 or newer
193 |
194 | // MARK: - 私有主視圖
195 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
196 |
197 |     /// 建立單一刻度項目的完整畫面 (垂直)
    :
264 |
265 |     /// 建立刻度上的文字標示
266 |     func scaleText(with item: WWWheelPickerItem<Value>) -> some View {
    |          `- note: add '@available' attribute to enclosing instance method
267 |
268 |         Text(item.index.isMultiple(of: majorTickInterval) ? item.label : "")
269 |             .font(.caption2)
270 |             .foregroundStyle(selectedIndex == item.index ? .primary : .secondary)
    |                                                             |- error: 'primary' is only available in macOS 12.0 or newer
    |                                                             `- note: add 'if #available' version check
271 |     }
272 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:313:9: error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
309 |
310 |     /// 滑動過程中持續更新目前 index
311 |     func scrollToIndex(_ index: Int, by scrollProxy: ScrollViewProxy) {
    |          `- note: add '@available' attribute to enclosing instance method
312 |
313 |         selectedIndex = index
    |         |- error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
314 |         didTapIndex?(index)
315 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:316:9: error: 'withAnimation' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
309 |
310 |     /// 滑動過程中持續更新目前 index
311 |     func scrollToIndex(_ index: Int, by scrollProxy: ScrollViewProxy) {
    |          `- note: add '@available' attribute to enclosing instance method
312 |
313 |         selectedIndex = index
314 |         didTapIndex?(index)
315 |
316 |         withAnimation(.snappy) {
    |         |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
317 |             scrollProxy.scrollTo(index, anchor: .center)
318 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:316:24: error: 'snappy' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
309 |
310 |     /// 滑動過程中持續更新目前 index
311 |     func scrollToIndex(_ index: Int, by scrollProxy: ScrollViewProxy) {
    |          `- note: add '@available' attribute to enclosing instance method
312 |
313 |         selectedIndex = index
314 |         didTapIndex?(index)
315 |
316 |         withAnimation(.snappy) {
    |                        |- error: 'snappy' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
317 |             scrollProxy.scrollTo(index, anchor: .center)
318 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:327:9: error: setter for 'rawIndex' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
320 |
321 |     /// 滑動過程中持續更新目前 index
322 |     func scrollChanging(offset: CGFloat, insets: EdgeInsets) {
    |          `- note: add '@available' attribute to enclosing instance method
323 |
324 |         let newRawIndex = (offset + insets.top) / strideHeight
325 |         let snappedIndex = min(max(Int(newRawIndex.rounded()), 0), items.count - 1)
326 |
327 |         rawIndex = newRawIndex
    |         |- error: setter for 'rawIndex' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
328 |
329 |         guard snappedIndex != selectedIndex else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:331:9: error: setter for 'changingIndex' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
320 |
321 |     /// 滑動過程中持續更新目前 index
322 |     func scrollChanging(offset: CGFloat, insets: EdgeInsets) {
    |          `- note: add '@available' attribute to enclosing instance method
323 |
324 |         let newRawIndex = (offset + insets.top) / strideHeight
    :
329 |         guard snappedIndex != selectedIndex else { return }
330 |
331 |         changingIndex = snappedIndex
    |         |- error: setter for 'changingIndex' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
332 |         didChangeIndex?(snappedIndex)
333 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:338:9: error: setter for 'lastPhase' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
    |         |- error: setter for 'lastPhase' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
339 |
340 |         guard oldPhase != .idle, newPhase == .idle else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:345:9: error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
    :
343 |         let snappedIndex = min(max(Int(rawIndex.rounded()), 0), items.count - 1)
344 |
345 |         selectedIndex = snappedIndex
    |         |- error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
346 |         didEndScrollAtIndex?(snappedIndex)
347 |
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:348:9: error: 'withAnimation' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
    :
346 |         didEndScrollAtIndex?(snappedIndex)
347 |
348 |         withAnimation(.snappy) {
    |         |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
349 |             scrollProxy.scrollTo(snappedIndex, anchor: .center)
350 |         }
/Users/admin/builder/spi-builder-workspace/Sources/WWWheelPickerViewUI/WWWheelPickerViewUI.swift:348:24: error: 'snappy' is only available in macOS 10.15 or newer
287 |
288 | // MARK: - Private API
289 | private extension WWWheelPickerViewUI {
    |         `- note: add '@available' attribute to enclosing extension
290 |
291 |     /// 取得目前 ScrollView 在指定軸向上的位移量
    :
334 |
335 |     /// 滑動停止後,自動吸附到最近刻度
336 |     func scrollPhaseChangeAction(_ oldPhase: ScrollPhase, _ newPhase: ScrollPhase, by scrollProxy: ScrollViewProxy, insets: EdgeInsets) {
    |          `- note: add '@available' attribute to enclosing instance method
337 |
338 |         lastPhase = newPhase
    :
346 |         didEndScrollAtIndex?(snappedIndex)
347 |
348 |         withAnimation(.snappy) {
    |                        |- error: 'snappy' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
349 |             scrollProxy.scrollTo(snappedIndex, anchor: .center)
350 |         }
BUILD FAILURE 6.2 macosSpm