Build Information
Failed to build ILikeToMoveIt, reference main (8b9e41), with Swift 6.2 for macOS (SPM) on 8 Sep 2026 03:33:19 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ryanlintott/ILikeToMoveIt.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ryanlintott/ILikeToMoveIt
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8b9e411 Merge pull request #1 from ryanlintott/ci/swift-6-0-xcode-probe
Cloned https://github.com/ryanlintott/ILikeToMoveIt.git
Revision (git rev-parse @):
8b9e411bb321898a6aa6570331ffd003a3a8cc1f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ryanlintott/ILikeToMoveIt.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/ryanlintott/ILikeToMoveIt.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version--3CB7CFEC50E0D141.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Emitting module ILikeToMoveIt
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:63:6: error: 'Published' is only available in macOS 10.15 or newer
59 | /// An observable object that holds information about the current accessibility move and focus.
60 | @MainActor
61 | public class AccessibilityMoveController<Item: Hashable>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
62 | /// The current accessibility item to focus on.
63 | @Published public var focus: Item? = nil
| `- error: 'Published' is only available in macOS 10.15 or newer
64 | /// The current accessibility move to perform.
65 | @Published public var move: AccessibilityMove<Item>? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:65:6: error: 'Published' is only available in macOS 10.15 or newer
59 | /// An observable object that holds information about the current accessibility move and focus.
60 | @MainActor
61 | public class AccessibilityMoveController<Item: Hashable>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
62 | /// The current accessibility item to focus on.
63 | @Published public var focus: Item? = nil
64 | /// The current accessibility move to perform.
65 | @Published public var move: AccessibilityMove<Item>? = nil
| `- error: 'Published' is only available in macOS 10.15 or newer
66 | }
67 |
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:61:59: error: 'ObservableObject' is only available in macOS 10.15 or newer
59 | /// An observable object that holds information about the current accessibility move and focus.
60 | @MainActor
61 | public class AccessibilityMoveController<Item: Hashable>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic class
62 | /// The current accessibility item to focus on.
63 | @Published public var focus: Item? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:72:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
74 | @AccessibilityFocusState var isFocused: Bool
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:74:6: error: 'AccessibilityFocusState' is only available in macOS 12.0 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
74 | @AccessibilityFocusState var isFocused: Bool
| `- error: 'AccessibilityFocusState' is only available in macOS 12.0 or newer
75 |
76 | let item: Item
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:79:41: error: 'View' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | 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
80 | content
81 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:118:140: error: 'View' is only available in macOS 10.15 or newer
107 | }
108 |
109 | public extension View {
| `- note: add '@available' attribute to enclosing extension
110 | /// Adds accessibility move actions that allow a user to move the item up and down in a list.
111 | ///
:
116 | /// - actions: An array of move actions made available to the user.
117 | /// - Returns: A view of an item that can be moved up and down in a list via accessibility actions.
118 | func accessibilityMoveable<Item: Hashable>(_ item: Item, actions: [AccessibilityMoveAction] = [.up, .down, .toTop, .toBottom]) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
119 | modifier(AccessibilityMoveableViewModifier(item: item, actions: actions))
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:132:124: error: 'View' is only available in macOS 10.15 or newer
107 | }
108 |
109 | public extension View {
| `- note: add '@available' attribute to enclosing extension
110 | /// Adds accessibility move actions that allow a user to move the item up and down in a list.
111 | ///
:
130 | /// - actions: An array of move actions made available to the user.
131 | /// - Returns: A view of an item that can be moved up and down in a list via accessibility actions.
132 | func iLikeToMove<It: Hashable>(_ it: It, actions: [AccessibilityMoveAction] = [.up, .down, .toTop, .toBottom]) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
133 | accessibilityMoveable(it, actions: actions)
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:109:18: error: 'View' is only available in macOS 10.15 or newer
107 | }
108 |
109 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
110 | /// Adds accessibility move actions that allow a user to move the item up and down in a list.
111 | ///
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:140:6: error: 'StateObject' is only available in macOS 11.0 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
141 |
142 | @Binding var items: [Item]
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:142:6: error: 'Binding' is only available in macOS 10.15 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
141 |
142 | @Binding var items: [Item]
| `- error: 'Binding' is only available in macOS 10.15 or newer
143 |
144 | /// Keypath for the label of each item, used when describing items above and below the moved item.
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:147:41: error: 'View' is only available in macOS 10.15 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
:
145 | let label: KeyPath<Item, String>?
146 |
147 | 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
148 | content
149 | .environmentObject(accessibilityMoveManager)
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:246:61: error: 'Binding' is only available in macOS 10.15 or newer
238 | }
239 |
240 | public extension View {
| `- note: add '@available' attribute to enclosing extension
241 | /// Applies accessibility move actions from child views that use ``accessibilityMoveable(_:actions:)``
242 | /// - Parameters:
:
244 | /// - label: Optional keypath to the name of an item. If used, the names of items that are directly below a move up or above a move down will be annouced after a move.
245 | /// - Returns: A view that applies accessibility move actions from child views.
246 | func accessibilityMoveableList<Item: Hashable>(_ items: Binding<Array<Item>>, label: KeyPath<Item, String>? = nil) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
247 | modifier(AccessibilityMoveableListViewModifier(items: items, label: label))
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:246:128: error: 'View' is only available in macOS 10.15 or newer
238 | }
239 |
240 | public extension View {
| `- note: add '@available' attribute to enclosing extension
241 | /// Applies accessibility move actions from child views that use ``accessibilityMoveable(_:actions:)``
242 | /// - Parameters:
:
244 | /// - label: Optional keypath to the name of an item. If used, the names of items that are directly below a move up or above a move down will be annouced after a move.
245 | /// - Returns: A view that applies accessibility move actions from child views.
246 | func accessibilityMoveableList<Item: Hashable>(_ items: Binding<Array<Item>>, label: KeyPath<Item, String>? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
247 | modifier(AccessibilityMoveableListViewModifier(items: items, label: label))
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:240:18: error: 'View' is only available in macOS 10.15 or newer
238 | }
239 |
240 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
241 | /// Applies accessibility move actions from child views that use ``accessibilityMoveable(_:actions:)``
242 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:14:32: error: 'UTType' is only available in macOS 11.0 or newer
10 |
11 | /// An object with that has an `NSItemProvider` property that can be used in `.onDrag`, `.onDrop`, and `.onInsert` view modifiers in SwiftUI. It can be read and/or written to a set number of unique types.
12 | public protocol Providable: Codable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
13 | /// An array of types that this object can be written to.
14 | static var writableTypes: [UTType] { get }
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing static property
15 | /// An array of types that this object can be read from.
16 | static var readableTypes: [UTType] { get }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:16:32: error: 'UTType' is only available in macOS 11.0 or newer
10 |
11 | /// An object with that has an `NSItemProvider` property that can be used in `.onDrag`, `.onDrop`, and `.onInsert` view modifiers in SwiftUI. It can be read and/or written to a set number of unique types.
12 | public protocol Providable: Codable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
13 | /// An array of types that this object can be written to.
14 | static var writableTypes: [UTType] { get }
15 | /// An array of types that this object can be read from.
16 | static var readableTypes: [UTType] { get }
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing static property
17 |
18 | /// Returns a data representation of this object based on the specified type.
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:21:21: error: 'UTType' is only available in macOS 11.0 or newer
10 |
11 | /// An object with that has an `NSItemProvider` property that can be used in `.onDrag`, `.onDrop`, and `.onInsert` view modifiers in SwiftUI. It can be read and/or written to a set number of unique types.
12 | public protocol Providable: Codable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
13 | /// An array of types that this object can be written to.
14 | static var writableTypes: [UTType] { get }
:
19 | /// - Parameter type: Type to use when converting to Data.
20 | /// - Returns: A data representation of this object based on the specified type.
21 | func data(type: UTType) throws -> Data?
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing instance method
22 |
23 | /// Creates an object based on data converted using the specified type.
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:27:17: error: 'UTType' is only available in macOS 11.0 or newer
10 |
11 | /// An object with that has an `NSItemProvider` property that can be used in `.onDrag`, `.onDrop`, and `.onInsert` view modifiers in SwiftUI. It can be read and/or written to a set number of unique types.
12 | public protocol Providable: Codable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
13 | /// An array of types that this object can be written to.
14 | static var writableTypes: [UTType] { get }
:
25 | /// - type: Type to use when converting from Data.
26 | /// - data: Data representation used when creating the object.
27 | init?(type: UTType, data: Data) throws
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing initializer
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:46:53: error: 'UTType' is only available in macOS 11.0 or newer
28 | }
29 |
30 | extension Providable {
| `- note: add '@available' attribute to enclosing extension
31 | /// An `NSItemProvider` object based on this object.
32 | public var provider: NSItemProvider {
:
44 | }
45 |
46 | static func writableType(identifier: String) -> UTType? {
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing static method
47 | writableTypes.first { $0.identifier == identifier }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:50:53: error: 'UTType' is only available in macOS 11.0 or newer
28 | }
29 |
30 | extension Providable {
| `- note: add '@available' attribute to enclosing extension
31 | /// An `NSItemProvider` object based on this object.
32 | public var provider: NSItemProvider {
:
48 | }
49 |
50 | static func readableType(identifier: String) -> UTType? {
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing static method
51 | readableTypes.first { $0.identifier == identifier }
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/UserActivityProvidable.swift:51:125: error: 'View' is only available in macOS 10.15 or newer
44 | }
45 |
46 | public extension View {
| `- note: add '@available' attribute to enclosing extension
47 | /// Registers a handler to invoke when a new scene is created by dropping the specified ``UserActivityProvidable`` type.
48 | /// - Parameters:
49 | /// - item: The type of object that will envoke this handler.
50 | /// - action: The handler that will run when the new scene is created with an optional item that was dropped. The item will be nil if there was an error in the encoding or decoding process.
51 | func onContinueUserActivity<T: UserActivityProvidable>(_ item: T.Type, perform action: @escaping (T?) -> Void ) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
52 | onContinueUserActivity(T.activityType) { activity in
53 | let item = T(activity: activity)
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/UserActivityProvidable.swift:46:18: error: 'View' is only available in macOS 10.15 or newer
44 | }
45 |
46 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
47 | /// Registers a handler to invoke when a new scene is created by dropping the specified ``UserActivityProvidable`` type.
48 | /// - Parameters:
[5/8] Compiling ILikeToMoveIt resource_bundle_accessor.swift
[6/8] Compiling ILikeToMoveIt Providable.swift
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:14:32: error: 'UTType' is only available in macOS 11.0 or newer
10 |
11 | /// An object with that has an `NSItemProvider` property that can be used in `.onDrag`, `.onDrop`, and `.onInsert` view modifiers in SwiftUI. It can be read and/or written to a set number of unique types.
12 | public protocol Providable: Codable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
13 | /// An array of types that this object can be written to.
14 | static var writableTypes: [UTType] { get }
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing static property
15 | /// An array of types that this object can be read from.
16 | static var readableTypes: [UTType] { get }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:16:32: error: 'UTType' is only available in macOS 11.0 or newer
10 |
11 | /// An object with that has an `NSItemProvider` property that can be used in `.onDrag`, `.onDrop`, and `.onInsert` view modifiers in SwiftUI. It can be read and/or written to a set number of unique types.
12 | public protocol Providable: Codable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
13 | /// An array of types that this object can be written to.
14 | static var writableTypes: [UTType] { get }
15 | /// An array of types that this object can be read from.
16 | static var readableTypes: [UTType] { get }
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing static property
17 |
18 | /// Returns a data representation of this object based on the specified type.
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:21:21: error: 'UTType' is only available in macOS 11.0 or newer
10 |
11 | /// An object with that has an `NSItemProvider` property that can be used in `.onDrag`, `.onDrop`, and `.onInsert` view modifiers in SwiftUI. It can be read and/or written to a set number of unique types.
12 | public protocol Providable: Codable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
13 | /// An array of types that this object can be written to.
14 | static var writableTypes: [UTType] { get }
:
19 | /// - Parameter type: Type to use when converting to Data.
20 | /// - Returns: A data representation of this object based on the specified type.
21 | func data(type: UTType) throws -> Data?
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing instance method
22 |
23 | /// Creates an object based on data converted using the specified type.
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:27:17: error: 'UTType' is only available in macOS 11.0 or newer
10 |
11 | /// An object with that has an `NSItemProvider` property that can be used in `.onDrag`, `.onDrop`, and `.onInsert` view modifiers in SwiftUI. It can be read and/or written to a set number of unique types.
12 | public protocol Providable: Codable, Sendable {
| `- note: add '@available' attribute to enclosing protocol
13 | /// An array of types that this object can be written to.
14 | static var writableTypes: [UTType] { get }
:
25 | /// - type: Type to use when converting from Data.
26 | /// - data: Data representation used when creating the object.
27 | init?(type: UTType, data: Data) throws
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing initializer
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:46:53: error: 'UTType' is only available in macOS 11.0 or newer
28 | }
29 |
30 | extension Providable {
| `- note: add '@available' attribute to enclosing extension
31 | /// An `NSItemProvider` object based on this object.
32 | public var provider: NSItemProvider {
:
44 | }
45 |
46 | static func writableType(identifier: String) -> UTType? {
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing static method
47 | writableTypes.first { $0.identifier == identifier }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:50:53: error: 'UTType' is only available in macOS 11.0 or newer
28 | }
29 |
30 | extension Providable {
| `- note: add '@available' attribute to enclosing extension
31 | /// An `NSItemProvider` object based on this object.
32 | public var provider: NSItemProvider {
:
48 | }
49 |
50 | static func readableType(identifier: String) -> UTType? {
| | `- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing static method
51 | readableTypes.first { $0.identifier == identifier }
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:36:37: error: argument type 'NSUserActivity' does not conform to expected type 'NSItemProviderWriting'
34 |
35 | if let userActivity = (self as? UserActivityProvidable)?.userActivity {
36 | provider.registerObject(userActivity, visibility: .all)
| `- error: argument type 'NSUserActivity' does not conform to expected type 'NSItemProviderWriting'
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:47:34: error: 'identifier' is only available in macOS 11.0 or newer
28 | }
29 |
30 | extension Providable {
| `- note: add '@available' attribute to enclosing extension
31 | /// An `NSItemProvider` object based on this object.
32 | public var provider: NSItemProvider {
:
44 | }
45 |
46 | static func writableType(identifier: String) -> UTType? {
| `- note: add '@available' attribute to enclosing static method
47 | writableTypes.first { $0.identifier == identifier }
| |- error: 'identifier' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:51:34: error: 'identifier' is only available in macOS 11.0 or newer
28 | }
29 |
30 | extension Providable {
| `- note: add '@available' attribute to enclosing extension
31 | /// An `NSItemProvider` object based on this object.
32 | public var provider: NSItemProvider {
:
48 | }
49 |
50 | static func readableType(identifier: String) -> UTType? {
| `- note: add '@available' attribute to enclosing static method
51 | readableTypes.first { $0.identifier == identifier }
| |- error: 'identifier' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:100:34: error: 'identifier' is only available in macOS 11.0 or newer
89 | }
90 |
91 | class ItemProvider<Item: Providable>: NSObject, NSItemProviderWriting, NSItemProviderReading {
| `- note: add '@available' attribute to enclosing generic class
92 | var item: Item
93 |
:
97 | }
98 |
99 | static var writableTypeIdentifiersForItemProvider: [String] {
| `- note: add '@available' attribute to enclosing static property
100 | Item.writableTypes.map(\.identifier)
| |- error: 'identifier' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/Providable.swift:104:34: error: 'identifier' is only available in macOS 11.0 or newer
89 | }
90 |
91 | class ItemProvider<Item: Providable>: NSObject, NSItemProviderWriting, NSItemProviderReading {
| `- note: add '@available' attribute to enclosing generic class
92 | var item: Item
93 |
:
101 | }
102 |
103 | static var readableTypeIdentifiersForItemProvider: [String] {
| `- note: add '@available' attribute to enclosing static property
104 | Item.readableTypes.map(\.identifier)
| |- error: 'identifier' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
105 | }
106 |
[7/8] Compiling ILikeToMoveIt AccessibilityMoveable.swift
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:63:6: error: 'Published' is only available in macOS 10.15 or newer
59 | /// An observable object that holds information about the current accessibility move and focus.
60 | @MainActor
61 | public class AccessibilityMoveController<Item: Hashable>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
62 | /// The current accessibility item to focus on.
63 | @Published public var focus: Item? = nil
| `- error: 'Published' is only available in macOS 10.15 or newer
64 | /// The current accessibility move to perform.
65 | @Published public var move: AccessibilityMove<Item>? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:65:6: error: 'Published' is only available in macOS 10.15 or newer
59 | /// An observable object that holds information about the current accessibility move and focus.
60 | @MainActor
61 | public class AccessibilityMoveController<Item: Hashable>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
62 | /// The current accessibility item to focus on.
63 | @Published public var focus: Item? = nil
64 | /// The current accessibility move to perform.
65 | @Published public var move: AccessibilityMove<Item>? = nil
| `- error: 'Published' is only available in macOS 10.15 or newer
66 | }
67 |
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:61:59: error: 'ObservableObject' is only available in macOS 10.15 or newer
59 | /// An observable object that holds information about the current accessibility move and focus.
60 | @MainActor
61 | public class AccessibilityMoveController<Item: Hashable>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic class
62 | /// The current accessibility item to focus on.
63 | @Published public var focus: Item? = nil
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:72:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
74 | @AccessibilityFocusState var isFocused: Bool
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:74:6: error: 'AccessibilityFocusState' is only available in macOS 12.0 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
74 | @AccessibilityFocusState var isFocused: Bool
| `- error: 'AccessibilityFocusState' is only available in macOS 12.0 or newer
75 |
76 | let item: Item
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:79:41: error: 'View' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | 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
80 | content
81 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:118:140: error: 'View' is only available in macOS 10.15 or newer
107 | }
108 |
109 | public extension View {
| `- note: add '@available' attribute to enclosing extension
110 | /// Adds accessibility move actions that allow a user to move the item up and down in a list.
111 | ///
:
116 | /// - actions: An array of move actions made available to the user.
117 | /// - Returns: A view of an item that can be moved up and down in a list via accessibility actions.
118 | func accessibilityMoveable<Item: Hashable>(_ item: Item, actions: [AccessibilityMoveAction] = [.up, .down, .toTop, .toBottom]) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
119 | modifier(AccessibilityMoveableViewModifier(item: item, actions: actions))
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:132:124: error: 'View' is only available in macOS 10.15 or newer
107 | }
108 |
109 | public extension View {
| `- note: add '@available' attribute to enclosing extension
110 | /// Adds accessibility move actions that allow a user to move the item up and down in a list.
111 | ///
:
130 | /// - actions: An array of move actions made available to the user.
131 | /// - Returns: A view of an item that can be moved up and down in a list via accessibility actions.
132 | func iLikeToMove<It: Hashable>(_ it: It, actions: [AccessibilityMoveAction] = [.up, .down, .toTop, .toBottom]) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
133 | accessibilityMoveable(it, actions: actions)
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:109:18: error: 'View' is only available in macOS 10.15 or newer
107 | }
108 |
109 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
110 | /// Adds accessibility move actions that allow a user to move the item up and down in a list.
111 | ///
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:140:6: error: 'StateObject' is only available in macOS 11.0 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
141 |
142 | @Binding var items: [Item]
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:142:6: error: 'Binding' is only available in macOS 10.15 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
141 |
142 | @Binding var items: [Item]
| `- error: 'Binding' is only available in macOS 10.15 or newer
143 |
144 | /// Keypath for the label of each item, used when describing items above and below the moved item.
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:147:41: error: 'View' is only available in macOS 10.15 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
:
145 | let label: KeyPath<Item, String>?
146 |
147 | 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
148 | content
149 | .environmentObject(accessibilityMoveManager)
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:246:61: error: 'Binding' is only available in macOS 10.15 or newer
238 | }
239 |
240 | public extension View {
| `- note: add '@available' attribute to enclosing extension
241 | /// Applies accessibility move actions from child views that use ``accessibilityMoveable(_:actions:)``
242 | /// - Parameters:
:
244 | /// - label: Optional keypath to the name of an item. If used, the names of items that are directly below a move up or above a move down will be annouced after a move.
245 | /// - Returns: A view that applies accessibility move actions from child views.
246 | func accessibilityMoveableList<Item: Hashable>(_ items: Binding<Array<Item>>, label: KeyPath<Item, String>? = nil) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
247 | modifier(AccessibilityMoveableListViewModifier(items: items, label: label))
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:246:128: error: 'View' is only available in macOS 10.15 or newer
238 | }
239 |
240 | public extension View {
| `- note: add '@available' attribute to enclosing extension
241 | /// Applies accessibility move actions from child views that use ``accessibilityMoveable(_:actions:)``
242 | /// - Parameters:
:
244 | /// - label: Optional keypath to the name of an item. If used, the names of items that are directly below a move up or above a move down will be annouced after a move.
245 | /// - Returns: A view that applies accessibility move actions from child views.
246 | func accessibilityMoveableList<Item: Hashable>(_ items: Binding<Array<Item>>, label: KeyPath<Item, String>? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
247 | modifier(AccessibilityMoveableListViewModifier(items: items, label: label))
248 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:240:18: error: 'View' is only available in macOS 10.15 or newer
238 | }
239 |
240 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
241 | /// Applies accessibility move actions from child views that use ``accessibilityMoveable(_:actions:)``
242 | /// - Parameters:
<unknown>:0: error: cannot convert value of type 'KeyPath<AccessibilityMoveController<Item>, Item?>' to expected argument type 'ReferenceWritableKeyPath<AccessibilityMoveController<Item>, Item?>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AccessibilityMoveController<Item>, AccessibilityMove<Item>?>' to expected argument type 'ReferenceWritableKeyPath<AccessibilityMoveController<Item>, AccessibilityMove<Item>?>'
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:81:14: error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
| |- error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
82 | ZStack {
83 | ForEach(actions) { action in
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:81:25: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | ZStack {
83 | ForEach(actions) { action in
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:81:25: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | ZStack {
83 | ForEach(actions) { action in
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:82:17: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
82 | ZStack {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | ForEach(actions) { action in
84 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:82:17: error: 'ZStack' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
82 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | ForEach(actions) { action in
84 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:82:17: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
82 | ZStack {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | ForEach(actions) { action in
84 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:83:21: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
82 | ZStack {
83 | ForEach(actions) { action in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | Color.clear
85 | .accessibilityAction(named: action.name) {
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:83:21: error: 'ForEach' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
82 | ZStack {
83 | ForEach(actions) { action in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | Color.clear
85 | .accessibilityAction(named: action.name) {
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:83:21: error: 'init(_:content:)' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
82 | ZStack {
83 | ForEach(actions) { action in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | Color.clear
85 | .accessibilityAction(named: action.name) {
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:84:25: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
82 | ZStack {
83 | ForEach(actions) { action in
84 | Color.clear
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .accessibilityAction(named: action.name) {
86 | accessibilityMoveController.move = .init(item: item, action: action)
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:84:25: error: 'Color' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
82 | ZStack {
83 | ForEach(actions) { action in
84 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .accessibilityAction(named: action.name) {
86 | accessibilityMoveController.move = .init(item: item, action: action)
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:84:31: error: 'clear' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
82 | ZStack {
83 | ForEach(actions) { action in
84 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .accessibilityAction(named: action.name) {
86 | accessibilityMoveController.move = .init(item: item, action: action)
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:85:30: error: 'accessibilityAction(named:_:)' is only available in macOS 11.0 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
:
83 | ForEach(actions) { action in
84 | Color.clear
85 | .accessibilityAction(named: action.name) {
| |- error: 'accessibilityAction(named:_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
86 | accessibilityMoveController.move = .init(item: item, action: action)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:86:33: error: setter for 'move' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
:
84 | Color.clear
85 | .accessibilityAction(named: action.name) {
86 | accessibilityMoveController.move = .init(item: item, action: action)
| |- error: setter for 'move' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:83:38: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
82 | ZStack {
83 | ForEach(actions) { action in
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | Color.clear
85 | .accessibilityAction(named: action.name) {
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:82:24: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
82 | ZStack {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | ForEach(actions) { action in
84 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:81:25: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | ZStack {
83 | ForEach(actions) { action in
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:91:14: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
:
89 | }
90 | }
91 | .accessibilityElement(children: .combine)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | .accessibilityFocused($isFocused)
93 | .task {
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:91:46: error: 'combine' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
:
89 | }
90 | }
91 | .accessibilityElement(children: .combine)
| |- error: 'combine' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | .accessibilityFocused($isFocused)
93 | .task {
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:92:14: error: 'accessibilityFocused' is only available in macOS 12.0 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
:
90 | }
91 | .accessibilityElement(children: .combine)
92 | .accessibilityFocused($isFocused)
| |- error: 'accessibilityFocused' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
93 | .task {
94 | /// This ensures the accessibility focus is set when the view appears as well as when the focus changes.
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:93:14: error: 'task(priority:_:)' is only available in macOS 12.0 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
:
91 | .accessibilityElement(children: .combine)
92 | .accessibilityFocused($isFocused)
93 | .task {
| |- error: 'task(priority:_:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
94 | /// This ensures the accessibility focus is set when the view appears as well as when the focus changes.
95 | if accessibilityMoveController.focus == item {
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:97:21: error: setter for 'isFocused' is only available in macOS 12.0 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
:
95 | if accessibilityMoveController.focus == item {
96 | // print("View appeared and focus set for \(String(describing: item))")
97 | isFocused = true
| |- error: setter for 'isFocused' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:100:14: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
:
98 | }
99 | }
100 | .onReceive(accessibilityMoveController.$focus) { newValue in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | if newValue == item {
102 | // print("Value changed and focus set for \(String(describing: newValue))")
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:103:21: error: setter for 'isFocused' is only available in macOS 12.0 or newer
69 | ///
70 | /// - Required: ``AccessibilityMoveableListViewModifier`` must be applied on a parent view.
71 | struct AccessibilityMoveableViewModifier<Item: Hashable & Equatable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
72 | @EnvironmentObject var accessibilityMoveController: AccessibilityMoveController<Item>
73 | /// Focus state can only be managed inside a single SwiftUI View so it lives on each item and gets updated via the environment object.
:
77 | let actions: [AccessibilityMoveAction]
78 |
79 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
80 | content
81 | .background {
:
101 | if newValue == item {
102 | // print("Value changed and focus set for \(String(describing: newValue))")
103 | isFocused = true
| |- error: setter for 'isFocused' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
104 | }
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:119:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
107 | }
108 |
109 | public extension View {
| `- note: add '@available' attribute to enclosing extension
110 | /// Adds accessibility move actions that allow a user to move the item up and down in a list.
111 | ///
:
116 | /// - actions: An array of move actions made available to the user.
117 | /// - Returns: A view of an item that can be moved up and down in a list via accessibility actions.
118 | func accessibilityMoveable<Item: Hashable>(_ item: Item, actions: [AccessibilityMoveAction] = [.up, .down, .toTop, .toBottom]) -> some View {
| `- note: add '@available' attribute to enclosing instance method
119 | modifier(AccessibilityMoveableViewModifier(item: item, actions: actions))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:119:9: error: 'modifier' is only available in macOS 10.15 or newer
107 | }
108 |
109 | public extension View {
| `- note: add '@available' attribute to enclosing extension
110 | /// Adds accessibility move actions that allow a user to move the item up and down in a list.
111 | ///
:
116 | /// - actions: An array of move actions made available to the user.
117 | /// - Returns: A view of an item that can be moved up and down in a list via accessibility actions.
118 | func accessibilityMoveable<Item: Hashable>(_ item: Item, actions: [AccessibilityMoveAction] = [.up, .down, .toTop, .toBottom]) -> some View {
| `- note: add '@available' attribute to enclosing instance method
119 | modifier(AccessibilityMoveableViewModifier(item: item, actions: actions))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:149:14: error: 'environmentObject' is only available in macOS 10.15 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
:
145 | let label: KeyPath<Item, String>?
146 |
147 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
148 | content
149 | .environmentObject(accessibilityMoveManager)
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
150 | /// `onChange` rather than `onReceive(accessibilityMoveManager.$move)`. `@Published`
151 | /// publishes from `willSet`, so an `onReceive` handler runs *inside* the assignment that
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:156:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
:
145 | let label: KeyPath<Item, String>?
146 |
147 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
148 | content
149 | .environmentObject(accessibilityMoveManager)
:
154 | /// silently re-applying it. `onChange` runs from the view update instead, so this is an
155 | /// ordinary synchronous write.
156 | .onChange(of: accessibilityMoveManager.move) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
157 | guard let newValue else { return }
158 | move(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:159:17: error: setter for 'move' is only available in macOS 10.15 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
:
145 | let label: KeyPath<Item, String>?
146 |
147 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
148 | content
149 | .environmentObject(accessibilityMoveManager)
:
157 | guard let newValue else { return }
158 | move(newValue)
159 | accessibilityMoveManager.move = nil
| |- error: setter for 'move' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | }
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:229:13: error: cannot pass as inout because setter for 'items' is only available in macOS 10.15 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
:
161 | }
162 |
163 | func move(_ accessibilityMove: AccessibilityMove<Item>) {
| `- note: add '@available' attribute to enclosing instance method
164 | let item = accessibilityMove.item
165 | let action = accessibilityMove.action
:
227 | /// that a clamped or unusual distance can never disagree with the direction actually travelled.
228 | let offset = destinationIndex < itemIndex ? destinationIndex : destinationIndex + 1
229 | items.move(fromOffsets: [itemIndex], toOffset: offset)
| |- error: cannot pass as inout because setter for 'items' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 | /// Even though accessibility focus appears to stay on the moved item, resetting it ensures the index and associated accessibility actions are also updated.
231 | accessibilityMoveManager.focus = thisItem
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:229:19: error: 'move(fromOffsets:toOffset:)' is only available in macOS 10.15 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
:
161 | }
162 |
163 | func move(_ accessibilityMove: AccessibilityMove<Item>) {
| `- note: add '@available' attribute to enclosing instance method
164 | let item = accessibilityMove.item
165 | let action = accessibilityMove.action
:
227 | /// that a clamped or unusual distance can never disagree with the direction actually travelled.
228 | let offset = destinationIndex < itemIndex ? destinationIndex : destinationIndex + 1
229 | items.move(fromOffsets: [itemIndex], toOffset: offset)
| |- error: 'move(fromOffsets:toOffset:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 | /// Even though accessibility focus appears to stay on the moved item, resetting it ensures the index and associated accessibility actions are also updated.
231 | accessibilityMoveManager.focus = thisItem
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:231:13: error: setter for 'focus' is only available in macOS 10.15 or newer
136 |
137 | /// A View Modifier that applies accessibility move actions from child views that use ``AccessibilityMoveableViewModifier``
138 | struct AccessibilityMoveableListViewModifier<Item: Hashable>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
139 | /// Stores the next accessibility move and the focused item
140 | @StateObject var accessibilityMoveManager: AccessibilityMoveController<Item> = .init()
:
161 | }
162 |
163 | func move(_ accessibilityMove: AccessibilityMove<Item>) {
| `- note: add '@available' attribute to enclosing instance method
164 | let item = accessibilityMove.item
165 | let action = accessibilityMove.action
:
229 | items.move(fromOffsets: [itemIndex], toOffset: offset)
230 | /// Even though accessibility focus appears to stay on the moved item, resetting it ensures the index and associated accessibility actions are also updated.
231 | accessibilityMoveManager.focus = thisItem
| |- error: setter for 'focus' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
232 | }
233 |
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:236:9: error: cannot find 'UIAccessibility' in scope
234 | /// This may be a bug in Swift 5.10
235 | /// https://forums.swift.org/t/preconcurrency-notification-names-in-submodules/70514
236 | UIAccessibility.post(notification: .announcement, argument: announcement.joined(separator: " "))
| `- error: cannot find 'UIAccessibility' in scope
237 | }
238 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:236:45: error: cannot infer contextual base in reference to member 'announcement'
234 | /// This may be a bug in Swift 5.10
235 | /// https://forums.swift.org/t/preconcurrency-notification-names-in-submodules/70514
236 | UIAccessibility.post(notification: .announcement, argument: announcement.joined(separator: " "))
| `- error: cannot infer contextual base in reference to member 'announcement'
237 | }
238 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:247:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
238 | }
239 |
240 | public extension View {
| `- note: add '@available' attribute to enclosing extension
241 | /// Applies accessibility move actions from child views that use ``accessibilityMoveable(_:actions:)``
242 | /// - Parameters:
:
244 | /// - label: Optional keypath to the name of an item. If used, the names of items that are directly below a move up or above a move down will be annouced after a move.
245 | /// - Returns: A view that applies accessibility move actions from child views.
246 | func accessibilityMoveableList<Item: Hashable>(_ items: Binding<Array<Item>>, label: KeyPath<Item, String>? = nil) -> some View {
| `- note: add '@available' attribute to enclosing instance method
247 | modifier(AccessibilityMoveableListViewModifier(items: items, label: label))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
248 | }
249 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/AccessibilityMoveable.swift:247:9: error: 'modifier' is only available in macOS 10.15 or newer
238 | }
239 |
240 | public extension View {
| `- note: add '@available' attribute to enclosing extension
241 | /// Applies accessibility move actions from child views that use ``accessibilityMoveable(_:actions:)``
242 | /// - Parameters:
:
244 | /// - label: Optional keypath to the name of an item. If used, the names of items that are directly below a move up or above a move down will be annouced after a move.
245 | /// - Returns: A view that applies accessibility move actions from child views.
246 | func accessibilityMoveableList<Item: Hashable>(_ items: Binding<Array<Item>>, label: KeyPath<Item, String>? = nil) -> some View {
| `- note: add '@available' attribute to enclosing instance method
247 | modifier(AccessibilityMoveableListViewModifier(items: items, label: label))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
248 | }
249 | }
[8/8] Compiling ILikeToMoveIt UserActivityProvidable.swift
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/UserActivityProvidable.swift:51:125: error: 'View' is only available in macOS 10.15 or newer
44 | }
45 |
46 | public extension View {
| `- note: add '@available' attribute to enclosing extension
47 | /// Registers a handler to invoke when a new scene is created by dropping the specified ``UserActivityProvidable`` type.
48 | /// - Parameters:
49 | /// - item: The type of object that will envoke this handler.
50 | /// - action: The handler that will run when the new scene is created with an optional item that was dropped. The item will be nil if there was an error in the encoding or decoding process.
51 | func onContinueUserActivity<T: UserActivityProvidable>(_ item: T.Type, perform action: @escaping (T?) -> Void ) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
52 | onContinueUserActivity(T.activityType) { activity in
53 | let item = T(activity: activity)
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/UserActivityProvidable.swift:46:18: error: 'View' is only available in macOS 10.15 or newer
44 | }
45 |
46 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
47 | /// Registers a handler to invoke when a new scene is created by dropping the specified ``UserActivityProvidable`` type.
48 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/UserActivityProvidable.swift:24:33: error: 'persistentIdentifier' is only available in macOS 10.15 or newer
18 | }
19 |
20 | public extension UserActivityProvidable {
| `- note: add '@available' attribute to enclosing extension
21 | init?(activity: NSUserActivity) {
| `- note: add '@available' attribute to enclosing initializer
22 | guard activity.activityType == Self.activityType else { return nil }
23 | guard
24 | let data = activity.persistentIdentifier?.data(using: .utf8),
| |- error: 'persistentIdentifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | let item = try? JSONDecoder().decode(Self.self, from: data)
26 | else {
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/UserActivityProvidable.swift:40:18: error: 'persistentIdentifier' is only available in macOS 10.15 or newer
18 | }
19 |
20 | public extension UserActivityProvidable {
| `- note: add '@available' attribute to enclosing extension
21 | init?(activity: NSUserActivity) {
22 | guard activity.activityType == Self.activityType else { return nil }
:
30 | }
31 |
32 | var userActivity: NSUserActivity? {
| `- note: add '@available' attribute to enclosing property
33 | if Self.activityType.isEmpty { return nil }
34 | guard
:
38 | let activity = NSUserActivity(activityType: Self.activityType)
39 | /// Stores the entire object in the persistent identifier
40 | activity.persistentIdentifier = contentIdentifier
| |- error: 'persistentIdentifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | activity.targetContentIdentifier = contentIdentifier
42 | return activity
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/UserActivityProvidable.swift:41:18: error: 'targetContentIdentifier' is only available in macOS 10.15 or newer
18 | }
19 |
20 | public extension UserActivityProvidable {
| `- note: add '@available' attribute to enclosing extension
21 | init?(activity: NSUserActivity) {
22 | guard activity.activityType == Self.activityType else { return nil }
:
30 | }
31 |
32 | var userActivity: NSUserActivity? {
| `- note: add '@available' attribute to enclosing property
33 | if Self.activityType.isEmpty { return nil }
34 | guard
:
39 | /// Stores the entire object in the persistent identifier
40 | activity.persistentIdentifier = contentIdentifier
41 | activity.targetContentIdentifier = contentIdentifier
| |- error: 'targetContentIdentifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | return activity
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/ILikeToMoveIt/UserActivityProvidable.swift:52:9: error: 'onContinueUserActivity(_:perform:)' is only available in macOS 11.0 or newer
44 | }
45 |
46 | public extension View {
| `- note: add '@available' attribute to enclosing extension
47 | /// Registers a handler to invoke when a new scene is created by dropping the specified ``UserActivityProvidable`` type.
48 | /// - Parameters:
49 | /// - item: The type of object that will envoke this handler.
50 | /// - action: The handler that will run when the new scene is created with an optional item that was dropped. The item will be nil if there was an error in the encoding or decoding process.
51 | func onContinueUserActivity<T: UserActivityProvidable>(_ item: T.Type, perform action: @escaping (T?) -> Void ) -> some View {
| `- note: add '@available' attribute to enclosing instance method
52 | onContinueUserActivity(T.activityType) { activity in
| |- error: 'onContinueUserActivity(_:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
53 | let item = T(activity: activity)
54 | action(item)
BUILD FAILURE 6.2 macosSpm