Build Information
Failed to build WWHUDUI, reference 1.1.1 (524694), with Swift 6.3 for macOS (SPM) on 15 Jul 2026 05:28:47 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWHUDUI.git
Reference: 1.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWHUDUI
* tag 1.1.1 -> FETCH_HEAD
HEAD is now at 5246949 - 修正Loading背景全透明時,背景仍然會被按到的問題
Cloned https://github.com/William-Weng/WWHUDUI.git
Revision (git rev-parse @):
5246949d172976f99c005f986d6c5a68e5cf035a
SUCCESS checkout https://github.com/William-Weng/WWHUDUI.git at 1.1.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "wwhudui",
"name": "WWHUDUI",
"url": "https://github.com/William-Weng/WWHUDUI.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WWHUDUI",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/William-Weng/WWHUDUI.git
[1/112] Fetching wwhudui
Fetched https://github.com/William-Weng/WWHUDUI.git from cache (0.77s)
Creating working copy for https://github.com/William-Weng/WWHUDUI.git
Working copy of https://github.com/William-Weng/WWHUDUI.git resolved at 1.1.1 (5246949)
warning: '.resolve-product-dependencies': dependency 'wwhudui' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/William-Weng/WWHUDUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Copying Privacy
[2/3] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Emitting module WWHUDUI
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:10:13: error: 'Observable()' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | public final class WWHUDUI {
12 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:16:21: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 HUD,當 `controller.isPresented` 為 `true` 時顯示 loading 視圖
13 | struct LoadingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
16 | var background: Color // HUD 卡片的背景顏色
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | var cornerRadius: CGFloat = 18 // 卡片圓角半徑
18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:22:41: error: 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 HUD,當 `controller.isPresented` 為 `true` 時顯示 loading 視圖
13 | struct LoadingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `loadingView`
22 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:42:27: error: 'View' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:67:30: error: 'View' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.black.opacity(0.001)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:75:16: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
:
73 |
74 | /// HUD 卡片使用的圓角形狀
75 | var shape: RoundedRectangle {
| | `- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
76 | .init(cornerRadius: cornerRadius, style: .continuous)
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:16:21: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
16 | var background: Color // HUD 卡片的背景顏色
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | var cornerRadius: CGFloat = 18 // 卡片圓角半徑
18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:22:41: error: 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:49:25: error: 'View' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:67:30: error: 'View' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:74:16: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
:
72 |
73 | /// HUD 卡片使用的圓角形狀
74 | var shape: RoundedRectangle {
| | `- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
75 | .init(cornerRadius: cornerRadius, style: .continuous)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:22:60: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
20 | ///
21 | /// - Returns: 套用 loading HUD 後的新 view
22 | func loadingOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 | modifier(LoadingModifier(controller: controller, background: background))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:22:98: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
20 | ///
21 | /// - Returns: 套用 loading HUD 後的新 view
22 | func loadingOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 | modifier(LoadingModifier(controller: controller, background: background))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:22:69: error: 'black' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
20 | ///
21 | /// - Returns: 套用 loading HUD 後的新 view
22 | func loadingOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'black' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 | modifier(LoadingModifier(controller: controller, background: background))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:22:75: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
20 | ///
21 | /// - Returns: 套用 loading HUD 後的新 view
22 | func loadingOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 | modifier(LoadingModifier(controller: controller, background: background))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:26:58: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
24 | }
25 |
26 | func toastOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
27 | modifier(ToastModifier(controller: controller, background: background))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:26:96: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
24 | }
25 |
26 | func toastOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
27 | modifier(ToastModifier(controller: controller, background: background))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:26:67: error: 'black' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
24 | }
25 |
26 | func toastOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'black' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
27 | modifier(ToastModifier(controller: controller, background: background))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:26:73: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
24 | }
25 |
26 | func toastOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
27 | modifier(ToastModifier(controller: controller, background: background))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:11:18: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:13:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'isPresented' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
15 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:14:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'title' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:16:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'displayDate' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
18 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:17:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'dismissTask' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
18 |
19 | public init() {}
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:20:1: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on class 'WWHUDUI' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
18 |
19 | public init() {}
20 | }
+--- macro expansion @Observable ------------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s7WWHUDUIAA10ObservablefMm_6MemberfMu_>(
+--------------------------------------------------------------------
21 |
22 | // MARK: - 公開API
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:13:48: note: expanded code originates here
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
+--- macro expansion @ObservationTracked ----------------------------
|1 | @ObservationIgnored
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | private var _isPresented = false // HUD 是否顯示中 // HUD 是否顯示中 // HUD 是否顯示中
+--------------------------------------------------------------------
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
15 |
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:14:49: note: expanded code originates here
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
+--- macro expansion @ObservationTracked ----------------------------
|1 | @ObservationIgnored
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | private var _title = "Loading..." // HUD 顯示的文字 // HUD 顯示的文字 // HUD 顯示的文字
+--------------------------------------------------------------------
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:16:35: note: expanded code originates here
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
+--- macro expansion @ObservationTracked ----------------------------
|1 | @ObservationIgnored
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | private var _displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間 // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間 // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
+--------------------------------------------------------------------
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
18 |
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:17:48: note: expanded code originates here
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
+--- macro expansion @ObservationTracked ----------------------------
|1 | @ObservationIgnored
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | private var _dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏) // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏) // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
+--------------------------------------------------------------------
18 |
19 | public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:17:30: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
| | `- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
18 |
19 | public init() {}
macro expansion @ObservationTracked:2:28: error: 'Task' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:17:48: note: expanded code originates here
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
+--- macro expansion @ObservationTracked ----------------------------
|1 | @ObservationIgnored
|2 | private var _dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏) // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏) // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
| | `- error: 'Task' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------
18 |
19 | public init() {}
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:20:1: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on class 'WWHUDUI' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
18 |
19 | public init() {}
20 | }
+--- macro expansion @Observable ------------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s7WWHUDUIAA10ObservablefMm_6MemberfMu_>(
+--------------------------------------------------------------------
21 |
22 | // MARK: - 公開API
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:10:13: error: 'Observable()' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
[5/9] Compiling WWHUDUI resource_bundle_accessor.swift
[6/9] Compiling WWHUDUI Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:10:13: error: 'Observable()' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | public final class WWHUDUI {
12 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:22:60: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
20 | ///
21 | /// - Returns: 套用 loading HUD 後的新 view
22 | func loadingOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 | modifier(LoadingModifier(controller: controller, background: background))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:22:98: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
20 | ///
21 | /// - Returns: 套用 loading HUD 後的新 view
22 | func loadingOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 | modifier(LoadingModifier(controller: controller, background: background))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:22:69: error: 'black' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
20 | ///
21 | /// - Returns: 套用 loading HUD 後的新 view
22 | func loadingOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'black' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 | modifier(LoadingModifier(controller: controller, background: background))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:22:75: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
20 | ///
21 | /// - Returns: 套用 loading HUD 後的新 view
22 | func loadingOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 | modifier(LoadingModifier(controller: controller, background: background))
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:26:58: error: 'Color' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
24 | }
25 |
26 | func toastOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
27 | modifier(ToastModifier(controller: controller, background: background))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:26:96: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
24 | }
25 |
26 | func toastOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
27 | modifier(ToastModifier(controller: controller, background: background))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:26:67: error: 'black' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
24 | }
25 |
26 | func toastOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'black' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
27 | modifier(ToastModifier(controller: controller, background: background))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:26:73: error: 'opacity' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
24 | }
25 |
26 | func toastOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| | `- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
27 | modifier(ToastModifier(controller: controller, background: background))
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:11:18: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:23:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
20 | ///
21 | /// - Returns: 套用 loading HUD 後的新 view
22 | func loadingOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 | modifier(LoadingModifier(controller: controller, background: background))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' 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
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:23:9: error: 'modifier' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
20 | ///
21 | /// - Returns: 套用 loading HUD 後的新 view
22 | func loadingOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 | modifier(LoadingModifier(controller: controller, background: background))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:27:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
24 | }
25 |
26 | func toastOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| `- note: add '@available' attribute to enclosing instance method
27 | modifier(ToastModifier(controller: controller, background: background))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' 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
28 | }
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Utility/Extension.swift:27:9: error: 'modifier' is only available in macOS 10.15 or newer
9 |
10 | // MARK: - View
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 |
13 | /// 在目前 view 上方顯示一個 loading HUD
:
24 | }
25 |
26 | func toastOverlay(_ controller: WWHUDUI, background: Color = .black.opacity(0.25)) -> some View {
| `- note: add '@available' attribute to enclosing instance method
27 | modifier(ToastModifier(controller: controller, background: background))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | }
29 | }
[7/9] Compiling WWHUDUI WWHUDUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:10:13: error: 'Observable()' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | public final class WWHUDUI {
12 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:13:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'isPresented' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
15 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:14:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'title' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:16:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'displayDate' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
18 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:17:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'dismissTask' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
18 |
19 | public init() {}
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:20:1: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on class 'WWHUDUI' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
18 |
19 | public init() {}
20 | }
+--- macro expansion @Observable ------------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s7WWHUDUIAA10ObservablefMm_6MemberfMu_>(
+--------------------------------------------------------------------
21 |
22 | // MARK: - 公開API
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:13:48: note: expanded code originates here
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
+--- macro expansion @ObservationTracked ----------------------------
|1 | @ObservationIgnored
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | private var _isPresented = false // HUD 是否顯示中 // HUD 是否顯示中 // HUD 是否顯示中
+--------------------------------------------------------------------
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
15 |
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:14:49: note: expanded code originates here
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
+--- macro expansion @ObservationTracked ----------------------------
|1 | @ObservationIgnored
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | private var _title = "Loading..." // HUD 顯示的文字 // HUD 顯示的文字 // HUD 顯示的文字
+--------------------------------------------------------------------
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:16:35: note: expanded code originates here
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
+--- macro expansion @ObservationTracked ----------------------------
|1 | @ObservationIgnored
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | private var _displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間 // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間 // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
+--------------------------------------------------------------------
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
18 |
macro expansion @ObservationTracked:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:17:48: note: expanded code originates here
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
+--- macro expansion @ObservationTracked ----------------------------
|1 | @ObservationIgnored
| | `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
|2 | private var _dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏) // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏) // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
+--------------------------------------------------------------------
18 |
19 | public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:17:30: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
| | `- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
18 |
19 | public init() {}
macro expansion @ObservationTracked:2:28: error: 'Task' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:17:48: note: expanded code originates here
9 |
10 | @MainActor @Observable
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
17 | private var dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
+--- macro expansion @ObservationTracked ----------------------------
|1 | @ObservationIgnored
|2 | private var _dismissTask: Task<Void, Never>? // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏) // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏) // 延遲隱藏 HUD 的任務 (防止短時間內重複顯示/隱藏)
| | `- error: 'Task' is only available in macOS 10.15 or newer
+--------------------------------------------------------------------
18 |
19 | public init() {}
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:20:1: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on class 'WWHUDUI' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
:
18 |
19 | public init() {}
20 | }
+--- macro expansion @Observable ------------------------------------
| 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
| | `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
| 2 |
| 3 | internal nonisolated func access<$s7WWHUDUIAA10ObservablefMm_6MemberfMu_>(
+--------------------------------------------------------------------
21 |
22 | // MARK: - 公開API
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:10:13: error: 'Observable()' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:34:22: error: 'cancel()' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
30 | /// - title: HUD 顯示的文字內容,預設為 `"Loading..."`
31 | /// - duration: 顯示動畫時間,預設為 `0.25` 秒
32 | func display(_ title: String, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
33 |
34 | dismissTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | dismissTask = nil
36 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:40:9: error: 'withAnimation' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
30 | /// - title: HUD 顯示的文字內容,預設為 `"Loading..."`
31 | /// - duration: 顯示動畫時間,預設為 `0.25` 秒
32 | func display(_ title: String, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
33 |
34 | dismissTask?.cancel()
:
38 | self.displayDate = Date()
39 |
40 | withAnimation(.easeInOut(duration: duration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | isPresented = true
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:40:24: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
30 | /// - title: HUD 顯示的文字內容,預設為 `"Loading..."`
31 | /// - duration: 顯示動畫時間,預設為 `0.25` 秒
32 | func display(_ title: String, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
33 |
34 | dismissTask?.cancel()
:
38 | self.displayDate = Date()
39 |
40 | withAnimation(.easeInOut(duration: duration)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | isPresented = true
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:54:22: error: 'cancel()' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
50 | /// - minimumVisibleDuration: HUD 最少顯示秒數,預設為 `0.25` 秒
51 | /// - duration: 隱藏動畫時間,預設為 `0.25` 秒
52 | func dismiss(minimumVisibleDuration: TimeInterval = 0.25, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
53 |
54 | dismissTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 |
56 | let elapsed = Date().timeIntervalSince(displayDate ?? Date())
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:70:17: warning: reference to property 'isPresented' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
68 |
69 | withAnimation(.easeInOut(duration: duration)) {
70 | isPresented = false
| `- warning: reference to property 'isPresented' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:59:23: error: 'Task' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
50 | /// - minimumVisibleDuration: HUD 最少顯示秒數,預設為 `0.25` 秒
51 | /// - duration: 隱藏動畫時間,預設為 `0.25` 秒
52 | func dismiss(minimumVisibleDuration: TimeInterval = 0.25, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
53 |
54 | dismissTask?.cancel()
:
57 | let delay = max(0, minimumVisibleDuration - elapsed)
58 |
59 | dismissTask = Task { [weak self] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 |
61 | guard let self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:59:23: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
50 | /// - minimumVisibleDuration: HUD 最少顯示秒數,預設為 `0.25` 秒
51 | /// - duration: 隱藏動畫時間,預設為 `0.25` 秒
52 | func dismiss(minimumVisibleDuration: TimeInterval = 0.25, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
53 |
54 | dismissTask?.cancel()
:
57 | let delay = max(0, minimumVisibleDuration - elapsed)
58 |
59 | dismissTask = Task { [weak self] in
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 |
61 | guard let self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:64:28: error: 'Task' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
50 | /// - minimumVisibleDuration: HUD 最少顯示秒數,預設為 `0.25` 秒
51 | /// - duration: 隱藏動畫時間,預設為 `0.25` 秒
52 | func dismiss(minimumVisibleDuration: TimeInterval = 0.25, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
53 |
54 | dismissTask?.cancel()
:
62 |
63 | if delay > 0 {
64 | try? await Task.sleep(for: .seconds(delay))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | }
66 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:64:33: error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
50 | /// - minimumVisibleDuration: HUD 最少顯示秒數,預設為 `0.25` 秒
51 | /// - duration: 隱藏動畫時間,預設為 `0.25` 秒
52 | func dismiss(minimumVisibleDuration: TimeInterval = 0.25, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
53 |
54 | dismissTask?.cancel()
:
62 |
63 | if delay > 0 {
64 | try? await Task.sleep(for: .seconds(delay))
| |- error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
65 | }
66 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:64:45: error: 'seconds' is only available in macOS 13.0 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
50 | /// - minimumVisibleDuration: HUD 最少顯示秒數,預設為 `0.25` 秒
51 | /// - duration: 隱藏動畫時間,預設為 `0.25` 秒
52 | func dismiss(minimumVisibleDuration: TimeInterval = 0.25, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
53 |
54 | dismissTask?.cancel()
:
62 |
63 | if delay > 0 {
64 | try? await Task.sleep(for: .seconds(delay))
| |- error: 'seconds' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
65 | }
66 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:67:20: error: 'Task' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
50 | /// - minimumVisibleDuration: HUD 最少顯示秒數,預設為 `0.25` 秒
51 | /// - duration: 隱藏動畫時間,預設為 `0.25` 秒
52 | func dismiss(minimumVisibleDuration: TimeInterval = 0.25, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
53 |
54 | dismissTask?.cancel()
:
65 | }
66 |
67 | guard !Task.isCancelled else { return }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 |
69 | withAnimation(.easeInOut(duration: duration)) {
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:67:25: error: 'isCancelled' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
50 | /// - minimumVisibleDuration: HUD 最少顯示秒數,預設為 `0.25` 秒
51 | /// - duration: 隱藏動畫時間,預設為 `0.25` 秒
52 | func dismiss(minimumVisibleDuration: TimeInterval = 0.25, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
53 |
54 | dismissTask?.cancel()
:
65 | }
66 |
67 | guard !Task.isCancelled else { return }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 |
69 | withAnimation(.easeInOut(duration: duration)) {
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:69:13: error: 'withAnimation' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
50 | /// - minimumVisibleDuration: HUD 最少顯示秒數,預設為 `0.25` 秒
51 | /// - duration: 隱藏動畫時間,預設為 `0.25` 秒
52 | func dismiss(minimumVisibleDuration: TimeInterval = 0.25, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
53 |
54 | dismissTask?.cancel()
:
67 | guard !Task.isCancelled else { return }
68 |
69 | withAnimation(.easeInOut(duration: duration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | isPresented = false
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:69:28: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWHUDUI {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 顯示 HUD,並更新顯示文字
:
50 | /// - minimumVisibleDuration: HUD 最少顯示秒數,預設為 `0.25` 秒
51 | /// - duration: 隱藏動畫時間,預設為 `0.25` 秒
52 | func dismiss(minimumVisibleDuration: TimeInterval = 0.25, duration: TimeInterval = 0.25) {
| `- note: add '@available' attribute to enclosing instance method
53 |
54 | dismissTask?.cancel()
:
67 | guard !Task.isCancelled else { return }
68 |
69 | withAnimation(.easeInOut(duration: duration)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | isPresented = false
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:61:23: warning: value 'self' was defined but never used; consider replacing with boolean test [#no-usage]
59 | dismissTask = Task { [weak self] in
60 |
61 | guard let self else { return }
| `- warning: value 'self' was defined but never used; consider replacing with boolean test [#no-usage]
62 |
63 | if delay > 0 {
[8/9] Compiling WWHUDUI LoadingModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:10:13: error: 'Observable()' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | public final class WWHUDUI {
12 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:16:21: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 HUD,當 `controller.isPresented` 為 `true` 時顯示 loading 視圖
13 | struct LoadingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
16 | var background: Color // HUD 卡片的背景顏色
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | var cornerRadius: CGFloat = 18 // 卡片圓角半徑
18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:22:41: error: 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 HUD,當 `controller.isPresented` 為 `true` 時顯示 loading 視圖
13 | struct LoadingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `loadingView`
22 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:42:27: error: 'View' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:67:30: error: 'View' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.black.opacity(0.001)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:75:16: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
:
73 |
74 | /// HUD 卡片使用的圓角形狀
75 | var shape: RoundedRectangle {
| | `- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
76 | .init(cornerRadius: cornerRadius, style: .continuous)
77 | }
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:13:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'isPresented' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
15 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:25:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 HUD,當 `controller.isPresented` 為 `true` 時顯示 loading 視圖
13 | struct LoadingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `loadingView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
25 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | .overlay {
27 | if controller.isPresented {
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:26:14: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 HUD,當 `controller.isPresented` 為 `true` 時顯示 loading 視圖
13 | struct LoadingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `loadingView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
25 | .frame(maxWidth: .infinity, maxHeight: .infinity)
26 | .overlay {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
27 | if controller.isPresented {
28 | backgroundView
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:27:43: error: 'buildIf' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 HUD,當 `controller.isPresented` 為 `true` 時顯示 loading 視圖
13 | struct LoadingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `loadingView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
25 | .frame(maxWidth: .infinity, maxHeight: .infinity)
26 | .overlay {
27 | if controller.isPresented {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | backgroundView
29 | loadingView
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:30:17: error: 'buildIf' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 HUD,當 `controller.isPresented` 為 `true` 時顯示 loading 視圖
13 | struct LoadingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `loadingView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
:
28 | backgroundView
29 | loadingView
30 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | .frame(maxWidth: .infinity, maxHeight: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:26:22: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 HUD,當 `controller.isPresented` 為 `true` 時顯示 loading 視圖
13 | struct LoadingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `loadingView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
25 | .frame(maxWidth: .infinity, maxHeight: .infinity)
26 | .overlay {
| |- warning: conformance of 'Optional<Wrapped>' 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
27 | if controller.isPresented {
28 | backgroundView
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:32:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 HUD,當 `controller.isPresented` 為 `true` 時顯示 loading 視圖
13 | struct LoadingModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `loadingView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
:
30 | }
31 | }
32 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:14:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'title' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:44:9: error: 'ZStack' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 |
46 | VStack(spacing: 12) {
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:46:13: error: 'VStack' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
45 |
46 | VStack(spacing: 12) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | ProgressView()
48 | .tint(.white)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:47:17: error: 'ProgressView' is only available in macOS 11.0 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
45 |
46 | VStack(spacing: 12) {
47 | ProgressView()
| |- error: 'ProgressView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | .tint(.white)
49 | .controlSize(.regular)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:47:17: error: 'init()' is only available in macOS 11.0 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
45 |
46 | VStack(spacing: 12) {
47 | ProgressView()
| |- error: 'init()' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | .tint(.white)
49 | .controlSize(.regular)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:48:22: error: 'tint' is only available in macOS 12.0 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
46 | VStack(spacing: 12) {
47 | ProgressView()
48 | .tint(.white)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
49 | .controlSize(.regular)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:48:28: error: 'white' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
46 | VStack(spacing: 12) {
47 | ProgressView()
48 | .tint(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .controlSize(.regular)
50 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:49:22: error: 'controlSize' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
47 | ProgressView()
48 | .tint(.white)
49 | .controlSize(.regular)
| |- error: 'controlSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 |
51 | Text(controller.title)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:51:17: error: 'Text' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
49 | .controlSize(.regular)
50 |
51 | Text(controller.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .font(.subheadline)
53 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:52:22: error: 'font' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
50 |
51 | Text(controller.title)
52 | .font(.subheadline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .fontWeight(.medium)
54 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:52:28: error: 'subheadline' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
50 |
51 | Text(controller.title)
52 | .font(.subheadline)
| |- error: 'subheadline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .fontWeight(.medium)
54 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:53:22: error: 'fontWeight' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
51 | Text(controller.title)
52 | .font(.subheadline)
53 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .foregroundStyle(.white)
55 | .multilineTextAlignment(.leading)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:54:22: error: 'foregroundStyle' is only available in macOS 14.0 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
52 | .font(.subheadline)
53 | .fontWeight(.medium)
54 | .foregroundStyle(.white)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
55 | .multilineTextAlignment(.leading)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:54:39: error: 'white' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
52 | .font(.subheadline)
53 | .fontWeight(.medium)
54 | .foregroundStyle(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .multilineTextAlignment(.leading)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:55:22: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
53 | .fontWeight(.medium)
54 | .foregroundStyle(.white)
55 | .multilineTextAlignment(.leading)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 | .padding(.horizontal, 24)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:57:14: error: 'padding' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
55 | .multilineTextAlignment(.leading)
56 | }
57 | .padding(.horizontal, 24)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | .padding(.vertical, 18)
59 | .frame(minWidth: 92, minHeight: 92)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:58:14: error: 'padding' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
56 | }
57 | .padding(.horizontal, 24)
58 | .padding(.vertical, 18)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .frame(minWidth: 92, minHeight: 92)
60 | .background(background, in: shape)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:59:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
57 | .padding(.horizontal, 24)
58 | .padding(.vertical, 18)
59 | .frame(minWidth: 92, minHeight: 92)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .background(background, in: shape)
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:60:14: error: 'background(_:in:fillStyle:)' is only available in macOS 12.0 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
58 | .padding(.vertical, 18)
59 | .frame(minWidth: 92, minHeight: 92)
60 | .background(background, in: shape)
| |- error: 'background(_:in:fillStyle:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
61 | }
62 | .transition(.opacity)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:62:10: error: 'transition' is only available in macOS 14.0 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
60 | .background(background, in: shape)
61 | }
62 | .transition(.opacity)
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
63 | .allowsHitTesting(true)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:62:22: error: 'opacity' is only available in macOS 14.0 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
60 | .background(background, in: shape)
61 | }
62 | .transition(.opacity)
| |- error: 'opacity' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
63 | .allowsHitTesting(true)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:63:10: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
40 | ///
41 | /// 顯示一個 loading spinner 與文字,並套用固定尺寸、內距與圓角背景
42 | var loadingView: some View {
| `- note: add '@available' attribute to enclosing property
43 |
44 | ZStack {
:
61 | }
62 | .transition(.opacity)
63 | .allowsHitTesting(true)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:69:9: error: 'Color' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.black.opacity(0.001)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .ignoresSafeArea()
71 | .allowsHitTesting(true)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:69:15: error: 'black' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.black.opacity(0.001)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .ignoresSafeArea()
71 | .allowsHitTesting(true)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:69:21: error: 'opacity' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.black.opacity(0.001)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .ignoresSafeArea()
71 | .allowsHitTesting(true)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:70:14: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.black.opacity(0.001)
70 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
71 | .allowsHitTesting(true)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/LoadingModifier.swift:71:14: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
35 |
36 | // MARK: - 私有屬性
37 | private extension LoadingModifier {
| `- note: add '@available' attribute to enclosing extension
38 |
39 | /// HUD 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.black.opacity(0.001)
70 | .ignoresSafeArea()
71 | .allowsHitTesting(true)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | }
73 |
[9/9] Compiling WWHUDUI ToastModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:10:13: error: 'Observable()' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- error: 'Observable()' is only available in macOS 14.0 or newer
11 | public final class WWHUDUI {
12 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:16:21: error: 'Color' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
16 | var background: Color // HUD 卡片的背景顏色
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | var cornerRadius: CGFloat = 18 // 卡片圓角半徑
18 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:22:41: error: 'View' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:49:25: error: 'View' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:67:30: error: 'View' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:74:16: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
:
72 |
73 | /// HUD 卡片使用的圓角形狀
74 | var shape: RoundedRectangle {
| | `- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
75 | .init(cornerRadius: cornerRadius, style: .continuous)
76 | }
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:13:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'isPresented' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
15 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:25:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
25 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | .overlay {
27 | if controller.isPresented {
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:26:14: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
25 | .frame(maxWidth: .infinity, maxHeight: .infinity)
26 | .overlay {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
27 | if controller.isPresented {
28 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:28:21: error: 'ZStack' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
:
26 | .overlay {
27 | if controller.isPresented {
28 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | backgroundView
30 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:31:25: error: 'VStack' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
:
29 | backgroundView
30 |
31 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | Spacer()
33 | toastView
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:32:29: 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
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
:
30 |
31 | VStack {
32 | Spacer()
| |- 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
33 | toastView
34 | .padding(.bottom, 24)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:32:29: error: 'Spacer' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
:
30 |
31 | VStack {
32 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | toastView
34 | .padding(.bottom, 24)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:34:34: error: 'padding' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
:
32 | Spacer()
33 | toastView
34 | .padding(.bottom, 24)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:31:32: 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
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
:
29 | backgroundView
30 |
31 | 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
32 | Spacer()
33 | toastView
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:37:22: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
:
35 | }
36 | }
37 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:27:43: error: 'buildIf' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
25 | .frame(maxWidth: .infinity, maxHeight: .infinity)
26 | .overlay {
27 | if controller.isPresented {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | ZStack {
29 | backgroundView
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:38:17: error: 'buildIf' is only available in macOS 10.15 or newer
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
:
36 | }
37 | .frame(maxWidth: .infinity, maxHeight: .infinity)
38 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:26:22: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
11 | ///
12 | /// 這個 modifier 會在原本的 view 上方疊一層 toast,當 `controller.isPresented` 為 `true` 時顯示提示視圖
13 | struct ToastModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | var controller: WWHUDUI // 控制 HUD 顯示狀態與文字內容的物件
:
20 | ///
21 | /// 透過 `overlay` 疊上 HUD,當 `controller.isPresented` 為 `true` 時才顯示 `toastView`
22 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
23 |
24 | content
25 | .frame(maxWidth: .infinity, maxHeight: .infinity)
26 | .overlay {
| |- warning: conformance of 'Optional<Wrapped>' 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
27 | if controller.isPresented {
28 | ZStack {
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/WWHUDUI.swift:14:5: note: expanded code originates here
8 | import SwiftUI
9 |
10 | @MainActor @Observable
| `- note: in expansion of macro 'Observable' on property 'title' here
11 | public final class WWHUDUI {
| `- note: add '@available' attribute to enclosing class
12 |
13 | public private(set) var isPresented = false // HUD 是否顯示中
14 | public private(set) var title = "Loading..." // HUD 顯示的文字
+--- macro expansion @Observable ------------------------------------
|1 | @ObservationTracked
| | `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
+--------------------------------------------------------------------
15 |
16 | private var displayDate: Date? // 記錄 HUD 開始顯示的時間,用來計算最短顯示時間
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:51:9: error: 'Text' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .font(.subheadline)
53 | .fontWeight(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:52:14: error: 'font' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
52 | .font(.subheadline)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .fontWeight(.medium)
54 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:52:20: error: 'subheadline' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
52 | .font(.subheadline)
| |- error: 'subheadline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | .fontWeight(.medium)
54 | .foregroundStyle(.white)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:53:14: error: 'fontWeight' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
52 | .font(.subheadline)
53 | .fontWeight(.medium)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .foregroundStyle(.white)
55 | .multilineTextAlignment(.leading)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:54:14: error: 'foregroundStyle' is only available in macOS 14.0 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
52 | .font(.subheadline)
53 | .fontWeight(.medium)
54 | .foregroundStyle(.white)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
55 | .multilineTextAlignment(.leading)
56 | .lineLimit(nil)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:54:31: error: 'white' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
52 | .font(.subheadline)
53 | .fontWeight(.medium)
54 | .foregroundStyle(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .multilineTextAlignment(.leading)
56 | .lineLimit(nil)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:55:14: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
:
53 | .fontWeight(.medium)
54 | .foregroundStyle(.white)
55 | .multilineTextAlignment(.leading)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .lineLimit(nil)
57 | .fixedSize(horizontal: false, vertical: true)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:56:14: error: 'lineLimit' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
:
54 | .foregroundStyle(.white)
55 | .multilineTextAlignment(.leading)
56 | .lineLimit(nil)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .fixedSize(horizontal: false, vertical: true)
58 | .frame(maxWidth: 280)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:57:14: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
:
55 | .multilineTextAlignment(.leading)
56 | .lineLimit(nil)
57 | .fixedSize(horizontal: false, vertical: true)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | .frame(maxWidth: 280)
59 | .padding(.horizontal, 24)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:58:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
:
56 | .lineLimit(nil)
57 | .fixedSize(horizontal: false, vertical: true)
58 | .frame(maxWidth: 280)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | .padding(.horizontal, 24)
60 | .padding(.vertical, 18)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:59:14: error: 'padding' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
:
57 | .fixedSize(horizontal: false, vertical: true)
58 | .frame(maxWidth: 280)
59 | .padding(.horizontal, 24)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .padding(.vertical, 18)
61 | .background(background, in: shape)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:60:14: error: 'padding' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
:
58 | .frame(maxWidth: 280)
59 | .padding(.horizontal, 24)
60 | .padding(.vertical, 18)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .background(background, in: shape)
62 | .transition(.opacity)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:61:14: error: 'background(_:in:fillStyle:)' is only available in macOS 12.0 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
:
59 | .padding(.horizontal, 24)
60 | .padding(.vertical, 18)
61 | .background(background, in: shape)
| |- error: 'background(_:in:fillStyle:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
62 | .transition(.opacity)
63 | .allowsHitTesting(false)
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:62:14: error: 'transition' is only available in macOS 14.0 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
:
60 | .padding(.vertical, 18)
61 | .background(background, in: shape)
62 | .transition(.opacity)
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
63 | .allowsHitTesting(false)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:62:26: error: 'opacity' is only available in macOS 14.0 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
:
60 | .padding(.vertical, 18)
61 | .background(background, in: shape)
62 | .transition(.opacity)
| |- error: 'opacity' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
63 | .allowsHitTesting(false)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:63:14: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
47 | ///
48 | /// 顯示一段文字,並套用固定尺寸、內距與圓角背景
49 | var toastView: some View {
| `- note: add '@available' attribute to enclosing property
50 |
51 | Text(controller.title)
:
61 | .background(background, in: shape)
62 | .transition(.opacity)
63 | .allowsHitTesting(false)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:69:9: error: 'Color' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .ignoresSafeArea()
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:69:15: error: 'clear' is only available in macOS 10.15 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .ignoresSafeArea()
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWHUDUI/Modifier/ToastModifier.swift:70:14: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
42 |
43 | // MARK: - 私有屬性
44 | private extension ToastModifier {
| `- note: add '@available' attribute to enclosing extension
45 |
46 | /// Toast 本體畫面
:
65 |
66 | /// HUD 背景整體
67 | var backgroundView: some View {
| `- note: add '@available' attribute to enclosing property
68 |
69 | Color.clear
70 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
71 | }
72 |
BUILD FAILURE 6.3 macosSpm