Build Information
Successful build of XUI, reference main (12011a
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 10:29:46 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/QuickBirdEng/XUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/QuickBirdEng/XUI
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 12011ac Initial commit
Cloned https://github.com/QuickBirdEng/XUI.git
Revision (git rev-parse @):
12011ac136681778fa7953f88fe5caa7425bda3e
SUCCESS checkout https://github.com/QuickBirdEng/XUI.git at main
========================================
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",
"dependencies": [
{
"identity": "xui",
"name": "XUI",
"url": "https://github.com/QuickBirdEng/XUI.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/XUI",
"dependencies": [
]
}
]
}
Fetching https://github.com/QuickBirdEng/XUI.git
[1/102] Fetching xui
Fetched https://github.com/QuickBirdEng/XUI.git from cache (0.75s)
Creating working copy for https://github.com/QuickBirdEng/XUI.git
Working copy of https://github.com/QuickBirdEng/XUI.git resolved at main (12011ac)
warning: '.resolve-product-dependencies': dependency 'xui' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/QuickBirdEng/XUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/23] Emitting module XUI
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Combine/CancellableBuilder.swift:14:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
12 | /// Possible use case: Storing multiple cancellables in a collection
13 | /// without writing `.store(in:)` for each subscription separately.
14 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
15 | public struct CancellableBuilder {
16 |
/Users/admin/builder/spi-builder-workspace/Sources/XUI/DeepLink/DeepLinkableBuilder.swift:11:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
9 | public typealias DeepLinkableBuilder = CollectionBuilder<DeepLinkable>
10 |
11 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
12 | public struct CollectionBuilder<Component> {
13 |
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:54:26: warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
8 |
9 | @propertyWrapper
10 | public struct Store<Model>: DynamicProperty {
| `- note: add '@preconcurrency' to the 'DynamicProperty' conformance to defer isolation checking to run time
11 |
12 | // MARK: Nested types
:
52 | // MARK: Methods
53 |
54 | public mutating func update() {
| |- warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'update()' to make this instance method not isolated to the actor
55 | _observableObject.update()
56 | }
SwiftUICore.DynamicProperty:6:19: note: 'update()' declared here
4 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
5 | static var _propertyBehaviors: UInt32 { get }
6 | mutating func update()
| `- note: 'update()' declared here
7 | }
[4/25] Compiling XUI NavigationLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Views/NavigationLink.swift:17:20: warning: capture of 'model' with non-sendable type 'Binding<Model?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | extension NavigationLink {
10 |
11 | public init<Model, _Destination: View>(
| `- note: consider making generic parameter 'Model' conform to the 'Sendable' protocol
12 | model: Binding<Model?>,
13 | @ViewBuilder destination: (Model) -> _Destination,
:
15 | ) where Destination == _Destination? {
16 | let isActive = Binding(
17 | get: { model.wrappedValue != nil },
| `- warning: capture of 'model' with non-sendable type 'Binding<Model?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | set: { value in
19 | if !value {
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Views/NavigationLink.swift:20:21: warning: capture of 'model' with non-sendable type 'Binding<Model?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | extension NavigationLink {
10 |
11 | public init<Model, _Destination: View>(
| `- note: consider making generic parameter 'Model' conform to the 'Sendable' protocol
12 | model: Binding<Model?>,
13 | @ViewBuilder destination: (Model) -> _Destination,
:
18 | set: { value in
19 | if !value {
20 | model.wrappedValue = nil
| `- warning: capture of 'model' with non-sendable type 'Binding<Model?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 | }
[5/25] Compiling XUI View+Navigation.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Views/NavigationLink.swift:17:20: warning: capture of 'model' with non-sendable type 'Binding<Model?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | extension NavigationLink {
10 |
11 | public init<Model, _Destination: View>(
| `- note: consider making generic parameter 'Model' conform to the 'Sendable' protocol
12 | model: Binding<Model?>,
13 | @ViewBuilder destination: (Model) -> _Destination,
:
15 | ) where Destination == _Destination? {
16 | let isActive = Binding(
17 | get: { model.wrappedValue != nil },
| `- warning: capture of 'model' with non-sendable type 'Binding<Model?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | set: { value in
19 | if !value {
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Views/NavigationLink.swift:20:21: warning: capture of 'model' with non-sendable type 'Binding<Model?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | extension NavigationLink {
10 |
11 | public init<Model, _Destination: View>(
| `- note: consider making generic parameter 'Model' conform to the 'Sendable' protocol
12 | model: Binding<Model?>,
13 | @ViewBuilder destination: (Model) -> _Destination,
:
18 | set: { value in
19 | if !value {
20 | model.wrappedValue = nil
| `- warning: capture of 'model' with non-sendable type 'Binding<Model?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | }
22 | }
[6/25] Compiling XUI CancellableBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Combine/CancellableBuilder.swift:14:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
12 | /// Possible use case: Storing multiple cancellables in a collection
13 | /// without writing `.store(in:)` for each subscription separately.
14 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
15 | public struct CancellableBuilder {
16 |
[7/25] Compiling XUI Result+Combine.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Combine/CancellableBuilder.swift:14:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
12 | /// Possible use case: Storing multiple cancellables in a collection
13 | /// without writing `.store(in:)` for each subscription separately.
14 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
15 | public struct CancellableBuilder {
16 |
[8/25] Compiling XUI DeepLinkable+Receiver.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Combine/CancellableBuilder.swift:14:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
12 | /// Possible use case: Storing multiple cancellables in a collection
13 | /// without writing `.store(in:)` for each subscription separately.
14 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
15 | public struct CancellableBuilder {
16 |
[9/25] Compiling XUI View+Popover.swift
[10/25] Compiling XUI View+Sheet.swift
[11/25] Compiling XUI AnyObservableObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:54:26: warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
8 |
9 | @propertyWrapper
10 | public struct Store<Model>: DynamicProperty {
| `- note: add '@preconcurrency' to the 'DynamicProperty' conformance to defer isolation checking to run time
11 |
12 | // MARK: Nested types
:
52 | // MARK: Methods
53 |
54 | public mutating func update() {
| |- warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'update()' to make this instance method not isolated to the actor
55 | _observableObject.update()
56 | }
SwiftUICore.DynamicProperty:6:19: note: 'update()' declared here
4 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
5 | static var _propertyBehaviors: UInt32 { get }
6 | mutating func update()
| `- note: 'update()' declared here
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:20:28: warning: capture of 'self' with non-sendable type 'Store<Model>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 |
14 | @dynamicMemberLookup
15 | public struct Wrapper {
| `- note: consider making struct 'Wrapper' conform to the 'Sendable' protocol
16 |
17 | fileprivate var store: Store
18 |
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
| `- warning: capture of 'self' with non-sendable type 'Store<Model>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:20:61: warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Model, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
| `- warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Model, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
22 | }
Swift.ReferenceWritableKeyPath:1:14: note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class ReferenceWritableKeyPath<Root, Value> : WritableKeyPath<Root, Value> {
| `- note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:20:39: warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
| `- warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
22 | }
:
26 | // MARK: Stored properties
27 |
28 | public let wrappedValue: Model
| `- note: property declared here
29 |
30 | @ObservedObject
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:21:28: warning: capture of 'self' with non-sendable type 'Store<Model>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 |
14 | @dynamicMemberLookup
15 | public struct Wrapper {
| `- note: consider making struct 'Wrapper' conform to the 'Sendable' protocol
16 |
17 | fileprivate var store: Store
:
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
| `- warning: capture of 'self' with non-sendable type 'Store<Model>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:21:61: warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Model, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
| `- warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Model, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | }
23 |
Swift.ReferenceWritableKeyPath:1:14: note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class ReferenceWritableKeyPath<Root, Value> : WritableKeyPath<Root, Value> {
| `- note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:21:39: warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
| `- warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
:
26 | // MARK: Stored properties
27 |
28 | public let wrappedValue: Model
| `- note: property declared here
29 |
30 | @ObservedObject
[12/25] Compiling XUI Store.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:54:26: warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
8 |
9 | @propertyWrapper
10 | public struct Store<Model>: DynamicProperty {
| `- note: add '@preconcurrency' to the 'DynamicProperty' conformance to defer isolation checking to run time
11 |
12 | // MARK: Nested types
:
52 | // MARK: Methods
53 |
54 | public mutating func update() {
| |- warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'update()' to make this instance method not isolated to the actor
55 | _observableObject.update()
56 | }
SwiftUICore.DynamicProperty:6:19: note: 'update()' declared here
4 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
5 | static var _propertyBehaviors: UInt32 { get }
6 | mutating func update()
| `- note: 'update()' declared here
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:20:28: warning: capture of 'self' with non-sendable type 'Store<Model>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 |
14 | @dynamicMemberLookup
15 | public struct Wrapper {
| `- note: consider making struct 'Wrapper' conform to the 'Sendable' protocol
16 |
17 | fileprivate var store: Store
18 |
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
| `- warning: capture of 'self' with non-sendable type 'Store<Model>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:20:61: warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Model, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
| `- warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Model, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
22 | }
Swift.ReferenceWritableKeyPath:1:14: note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class ReferenceWritableKeyPath<Root, Value> : WritableKeyPath<Root, Value> {
| `- note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:20:39: warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
| `- warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
22 | }
:
26 | // MARK: Stored properties
27 |
28 | public let wrappedValue: Model
| `- note: property declared here
29 |
30 | @ObservedObject
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:21:28: warning: capture of 'self' with non-sendable type 'Store<Model>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 |
14 | @dynamicMemberLookup
15 | public struct Wrapper {
| `- note: consider making struct 'Wrapper' conform to the 'Sendable' protocol
16 |
17 | fileprivate var store: Store
:
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
| `- warning: capture of 'self' with non-sendable type 'Store<Model>.Wrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:21:61: warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Model, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
| `- warning: capture of 'keyPath' with non-sendable type 'ReferenceWritableKeyPath<Model, Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | }
23 |
Swift.ReferenceWritableKeyPath:1:14: note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class ReferenceWritableKeyPath<Root, Value> : WritableKeyPath<Root, Value> {
| `- note: generic class 'ReferenceWritableKeyPath' does not conform to the 'Sendable' protocol
2 | @objc deinit
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Store/Store.swift:21:39: warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 | public subscript<Value>(dynamicMember keyPath: ReferenceWritableKeyPath<Model, Value>) -> Binding<Value> {
20 | Binding(get: { self.store.wrappedValue[keyPath: keyPath] },
21 | set: { self.store.wrappedValue[keyPath: keyPath] = $0 })
| `- warning: main actor-isolated property 'wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
:
26 | // MARK: Stored properties
27 |
28 | public let wrappedValue: Model
| `- note: property declared here
29 |
30 | @ObservedObject
[13/25] Compiling XUI ViewModel.swift
[14/25] Compiling XUI NavigationModifier.swift
[15/25] Compiling XUI Binding+Change.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:13:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | public func willSet(_ willSet: @escaping (Value) -> Void) -> Binding {
12 | .init(
13 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | set: { newValue in
15 | willSet(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:15:17: warning: capture of 'willSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | get: { self.wrappedValue },
14 | set: { newValue in
15 | willSet(newValue)
| |- warning: capture of 'willSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
16 | self.wrappedValue = newValue
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:16:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | set: { newValue in
15 | willSet(newValue)
16 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:23:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | public func didSet(_ didSet: @escaping (Value) -> Void) -> Binding {
22 | .init(
23 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | set: { newValue in
25 | self.wrappedValue = newValue
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:25:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | get: { self.wrappedValue },
24 | set: { newValue in
25 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | didSet(newValue)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:26:17: warning: capture of 'didSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | set: { newValue in
25 | self.wrappedValue = newValue
26 | didSet(newValue)
| |- warning: capture of 'didSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
27 | }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:33:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | public func ensure(_ ensure: @escaping (Value) -> Bool) -> Binding {
32 | .init(
33 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | set: { newValue in
35 | guard ensure(newValue) else {
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:35:23: warning: capture of 'ensure' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | get: { self.wrappedValue },
34 | set: { newValue in
35 | guard ensure(newValue) else {
| |- warning: capture of 'ensure' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 | return
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:38:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | return
37 | }
38 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:46:29: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | .init(
45 | get: {
46 | let value = self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | Swift.assert(assertion(value))
48 | return value
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:47:30: warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | get: {
46 | let value = self.wrappedValue
47 | Swift.assert(assertion(value))
| |- warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
48 | return value
49 | },
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:47:30: warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
45 | get: {
46 | let value = self.wrappedValue
47 | Swift.assert(assertion(value))
| |- warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
48 | return value
49 | },
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:51:30: warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | },
50 | set: { newValue in
51 | Swift.assert(assertion(newValue))
| |- warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | self.wrappedValue = newValue
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:52:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | set: { newValue in
51 | Swift.assert(assertion(newValue))
52 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:51:30: warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
49 | },
50 | set: { newValue in
51 | Swift.assert(assertion(newValue))
| |- warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | self.wrappedValue = newValue
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:59:20: warning: capture of 'get' with non-sendable type '(Value) -> V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | public func map<V>(get: @escaping (Value) -> V, set: @escaping (V) -> Value) -> Binding<V> {
58 | .init(
59 | get: { get(self.wrappedValue) },
| |- warning: capture of 'get' with non-sendable type '(Value) -> V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
60 | set: { self.wrappedValue = set($0) }
61 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:59:24: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | public func map<V>(get: @escaping (Value) -> V, set: @escaping (V) -> Value) -> Binding<V> {
58 | .init(
59 | get: { get(self.wrappedValue) },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | set: { self.wrappedValue = set($0) }
61 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:60:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | .init(
59 | get: { get(self.wrappedValue) },
60 | set: { self.wrappedValue = set($0) }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | )
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:60:40: warning: capture of 'set' with non-sendable type '(V) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | .init(
59 | get: { get(self.wrappedValue) },
60 | set: { self.wrappedValue = set($0) }
| |- warning: capture of 'set' with non-sendable type '(V) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | )
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:66:20: warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | public func alterGet(_ map: @escaping (Value) -> Value) -> Binding {
65 | .init(
66 | get: { map(self.wrappedValue) },
| |- warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | set: { self.wrappedValue = $0 }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:66:24: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | public func alterGet(_ map: @escaping (Value) -> Value) -> Binding {
65 | .init(
66 | get: { map(self.wrappedValue) },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | set: { self.wrappedValue = $0 }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:67:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | .init(
66 | get: { map(self.wrappedValue) },
67 | set: { self.wrappedValue = $0 }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | )
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:73:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | public func alterSet(_ map: @escaping (Value) -> Value) -> Binding {
72 | .init(
73 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | set: { self.wrappedValue = map($0) }
75 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:74:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | .init(
73 | get: { self.wrappedValue },
74 | set: { self.wrappedValue = map($0) }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | )
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:74:40: warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | .init(
73 | get: { self.wrappedValue },
74 | set: { self.wrappedValue = map($0) }
| |- warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | )
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:16:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | Binding<Value.Element?>(
16 | get: { self.wrappedValue.first(where: condition) },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:16:51: warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | Binding<Value.Element?>(
16 | get: { self.wrappedValue.first(where: condition) },
| |- warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:18:35: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | get: { self.wrappedValue.first(where: condition) },
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | if let value = newValue {
20 | self.wrappedValue.append(value)
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:18:71: warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | get: { self.wrappedValue.first(where: condition) },
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
| |- warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
19 | if let value = newValue {
20 | self.wrappedValue.append(value)
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:12:22: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | extension Binding {
10 |
11 | public func forceUnwrap<Wrapped>() -> Binding<Wrapped> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | .init(get: { self.wrappedValue! },
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | set: { self.wrappedValue = $0 })
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:13:22: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | extension Binding {
10 |
11 | public func forceUnwrap<Wrapped>() -> Binding<Wrapped> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | .init(get: { self.wrappedValue! },
13 | set: { self.wrappedValue = $0 })
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:18:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | public func force<T>(as type: T.Type) -> Binding<T> {
17 | .init(
18 | get: { self.wrappedValue as! T },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | set: { self.wrappedValue = $0 as! Value }
20 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:19:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | .init(
18 | get: { self.wrappedValue as! T },
19 | set: { self.wrappedValue = $0 as! Value }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | )
21 | }
[16/25] Compiling XUI Binding+Element.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:13:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | public func willSet(_ willSet: @escaping (Value) -> Void) -> Binding {
12 | .init(
13 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | set: { newValue in
15 | willSet(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:15:17: warning: capture of 'willSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | get: { self.wrappedValue },
14 | set: { newValue in
15 | willSet(newValue)
| |- warning: capture of 'willSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
16 | self.wrappedValue = newValue
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:16:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | set: { newValue in
15 | willSet(newValue)
16 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:23:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | public func didSet(_ didSet: @escaping (Value) -> Void) -> Binding {
22 | .init(
23 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | set: { newValue in
25 | self.wrappedValue = newValue
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:25:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | get: { self.wrappedValue },
24 | set: { newValue in
25 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | didSet(newValue)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:26:17: warning: capture of 'didSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | set: { newValue in
25 | self.wrappedValue = newValue
26 | didSet(newValue)
| |- warning: capture of 'didSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
27 | }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:33:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | public func ensure(_ ensure: @escaping (Value) -> Bool) -> Binding {
32 | .init(
33 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | set: { newValue in
35 | guard ensure(newValue) else {
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:35:23: warning: capture of 'ensure' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | get: { self.wrappedValue },
34 | set: { newValue in
35 | guard ensure(newValue) else {
| |- warning: capture of 'ensure' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 | return
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:38:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | return
37 | }
38 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:46:29: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | .init(
45 | get: {
46 | let value = self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | Swift.assert(assertion(value))
48 | return value
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:47:30: warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | get: {
46 | let value = self.wrappedValue
47 | Swift.assert(assertion(value))
| |- warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
48 | return value
49 | },
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:47:30: warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
45 | get: {
46 | let value = self.wrappedValue
47 | Swift.assert(assertion(value))
| |- warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
48 | return value
49 | },
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:51:30: warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | },
50 | set: { newValue in
51 | Swift.assert(assertion(newValue))
| |- warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | self.wrappedValue = newValue
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:52:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | set: { newValue in
51 | Swift.assert(assertion(newValue))
52 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:51:30: warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
49 | },
50 | set: { newValue in
51 | Swift.assert(assertion(newValue))
| |- warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | self.wrappedValue = newValue
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:59:20: warning: capture of 'get' with non-sendable type '(Value) -> V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | public func map<V>(get: @escaping (Value) -> V, set: @escaping (V) -> Value) -> Binding<V> {
58 | .init(
59 | get: { get(self.wrappedValue) },
| |- warning: capture of 'get' with non-sendable type '(Value) -> V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
60 | set: { self.wrappedValue = set($0) }
61 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:59:24: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | public func map<V>(get: @escaping (Value) -> V, set: @escaping (V) -> Value) -> Binding<V> {
58 | .init(
59 | get: { get(self.wrappedValue) },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | set: { self.wrappedValue = set($0) }
61 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:60:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | .init(
59 | get: { get(self.wrappedValue) },
60 | set: { self.wrappedValue = set($0) }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | )
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:60:40: warning: capture of 'set' with non-sendable type '(V) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | .init(
59 | get: { get(self.wrappedValue) },
60 | set: { self.wrappedValue = set($0) }
| |- warning: capture of 'set' with non-sendable type '(V) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | )
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:66:20: warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | public func alterGet(_ map: @escaping (Value) -> Value) -> Binding {
65 | .init(
66 | get: { map(self.wrappedValue) },
| |- warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | set: { self.wrappedValue = $0 }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:66:24: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | public func alterGet(_ map: @escaping (Value) -> Value) -> Binding {
65 | .init(
66 | get: { map(self.wrappedValue) },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | set: { self.wrappedValue = $0 }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:67:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | .init(
66 | get: { map(self.wrappedValue) },
67 | set: { self.wrappedValue = $0 }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | )
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:73:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | public func alterSet(_ map: @escaping (Value) -> Value) -> Binding {
72 | .init(
73 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | set: { self.wrappedValue = map($0) }
75 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:74:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | .init(
73 | get: { self.wrappedValue },
74 | set: { self.wrappedValue = map($0) }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | )
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:74:40: warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | .init(
73 | get: { self.wrappedValue },
74 | set: { self.wrappedValue = map($0) }
| |- warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | )
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:16:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | Binding<Value.Element?>(
16 | get: { self.wrappedValue.first(where: condition) },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:16:51: warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | Binding<Value.Element?>(
16 | get: { self.wrappedValue.first(where: condition) },
| |- warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:18:35: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | get: { self.wrappedValue.first(where: condition) },
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | if let value = newValue {
20 | self.wrappedValue.append(value)
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:18:71: warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | get: { self.wrappedValue.first(where: condition) },
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
| |- warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
19 | if let value = newValue {
20 | self.wrappedValue.append(value)
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:12:22: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | extension Binding {
10 |
11 | public func forceUnwrap<Wrapped>() -> Binding<Wrapped> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | .init(get: { self.wrappedValue! },
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | set: { self.wrappedValue = $0 })
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:13:22: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | extension Binding {
10 |
11 | public func forceUnwrap<Wrapped>() -> Binding<Wrapped> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | .init(get: { self.wrappedValue! },
13 | set: { self.wrappedValue = $0 })
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:18:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | public func force<T>(as type: T.Type) -> Binding<T> {
17 | .init(
18 | get: { self.wrappedValue as! T },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | set: { self.wrappedValue = $0 as! Value }
20 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:19:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | .init(
18 | get: { self.wrappedValue as! T },
19 | set: { self.wrappedValue = $0 as! Value }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | )
21 | }
[17/25] Compiling XUI Binding+Force.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:13:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | public func willSet(_ willSet: @escaping (Value) -> Void) -> Binding {
12 | .init(
13 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | set: { newValue in
15 | willSet(newValue)
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:15:17: warning: capture of 'willSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | get: { self.wrappedValue },
14 | set: { newValue in
15 | willSet(newValue)
| |- warning: capture of 'willSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
16 | self.wrappedValue = newValue
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:16:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | set: { newValue in
15 | willSet(newValue)
16 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | }
18 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:23:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | public func didSet(_ didSet: @escaping (Value) -> Void) -> Binding {
22 | .init(
23 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | set: { newValue in
25 | self.wrappedValue = newValue
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:25:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | get: { self.wrappedValue },
24 | set: { newValue in
25 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | didSet(newValue)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:26:17: warning: capture of 'didSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | set: { newValue in
25 | self.wrappedValue = newValue
26 | didSet(newValue)
| |- warning: capture of 'didSet' with non-sendable type '(Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
27 | }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:33:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | public func ensure(_ ensure: @escaping (Value) -> Bool) -> Binding {
32 | .init(
33 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | set: { newValue in
35 | guard ensure(newValue) else {
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:35:23: warning: capture of 'ensure' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | get: { self.wrappedValue },
34 | set: { newValue in
35 | guard ensure(newValue) else {
| |- warning: capture of 'ensure' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
36 | return
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:38:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | return
37 | }
38 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:46:29: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | .init(
45 | get: {
46 | let value = self.wrappedValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | Swift.assert(assertion(value))
48 | return value
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:47:30: warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | get: {
46 | let value = self.wrappedValue
47 | Swift.assert(assertion(value))
| |- warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
48 | return value
49 | },
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:47:30: warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
45 | get: {
46 | let value = self.wrappedValue
47 | Swift.assert(assertion(value))
| |- warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
48 | return value
49 | },
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:51:30: warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | },
50 | set: { newValue in
51 | Swift.assert(assertion(newValue))
| |- warning: capture of 'assertion' with non-sendable type '(Value) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | self.wrappedValue = newValue
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:52:17: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | set: { newValue in
51 | Swift.assert(assertion(newValue))
52 | self.wrappedValue = newValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | }
54 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:51:30: warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
49 | },
50 | set: { newValue in
51 | Swift.assert(assertion(newValue))
| |- warning: implicit capture of 'assertion' requires that '(Value) -> Bool' conforms to `Sendable`; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | self.wrappedValue = newValue
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:59:20: warning: capture of 'get' with non-sendable type '(Value) -> V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | public func map<V>(get: @escaping (Value) -> V, set: @escaping (V) -> Value) -> Binding<V> {
58 | .init(
59 | get: { get(self.wrappedValue) },
| |- warning: capture of 'get' with non-sendable type '(Value) -> V' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
60 | set: { self.wrappedValue = set($0) }
61 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:59:24: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | public func map<V>(get: @escaping (Value) -> V, set: @escaping (V) -> Value) -> Binding<V> {
58 | .init(
59 | get: { get(self.wrappedValue) },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | set: { self.wrappedValue = set($0) }
61 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:60:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | .init(
59 | get: { get(self.wrappedValue) },
60 | set: { self.wrappedValue = set($0) }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | )
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:60:40: warning: capture of 'set' with non-sendable type '(V) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | .init(
59 | get: { get(self.wrappedValue) },
60 | set: { self.wrappedValue = set($0) }
| |- warning: capture of 'set' with non-sendable type '(V) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | )
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:66:20: warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | public func alterGet(_ map: @escaping (Value) -> Value) -> Binding {
65 | .init(
66 | get: { map(self.wrappedValue) },
| |- warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | set: { self.wrappedValue = $0 }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:66:24: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | public func alterGet(_ map: @escaping (Value) -> Value) -> Binding {
65 | .init(
66 | get: { map(self.wrappedValue) },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | set: { self.wrappedValue = $0 }
68 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:67:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | .init(
66 | get: { map(self.wrappedValue) },
67 | set: { self.wrappedValue = $0 }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | )
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:73:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | public func alterSet(_ map: @escaping (Value) -> Value) -> Binding {
72 | .init(
73 | get: { self.wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | set: { self.wrappedValue = map($0) }
75 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:74:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | .init(
73 | get: { self.wrappedValue },
74 | set: { self.wrappedValue = map($0) }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | )
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Change.swift:74:40: warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | .init(
73 | get: { self.wrappedValue },
74 | set: { self.wrappedValue = map($0) }
| |- warning: capture of 'map' with non-sendable type '(Value) -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | )
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:16:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | Binding<Value.Element?>(
16 | get: { self.wrappedValue.first(where: condition) },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:16:51: warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 |
15 | Binding<Value.Element?>(
16 | get: { self.wrappedValue.first(where: condition) },
| |- warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:18:35: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | get: { self.wrappedValue.first(where: condition) },
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | if let value = newValue {
20 | self.wrappedValue.append(value)
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Element.swift:18:71: warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | get: { self.wrappedValue.first(where: condition) },
17 | set: { newValue in
18 | guard let index = self.wrappedValue.firstIndex(where: condition) else {
| |- warning: capture of 'condition' with non-sendable type '(Value.Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
19 | if let value = newValue {
20 | self.wrappedValue.append(value)
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:12:22: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | extension Binding {
10 |
11 | public func forceUnwrap<Wrapped>() -> Binding<Wrapped> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | .init(get: { self.wrappedValue! },
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 | set: { self.wrappedValue = $0 })
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:13:22: warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | extension Binding {
10 |
11 | public func forceUnwrap<Wrapped>() -> Binding<Wrapped> where Value == Wrapped? {
| `- note: consider making generic parameter 'Wrapped' conform to the 'Sendable' protocol
12 | .init(get: { self.wrappedValue! },
13 | set: { self.wrappedValue = $0 })
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<Wrapped>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:18:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | public func force<T>(as type: T.Type) -> Binding<T> {
17 | .init(
18 | get: { self.wrappedValue as! T },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | set: { self.wrappedValue = $0 as! Value }
20 | )
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Binding/Binding+Force.swift:19:20: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | .init(
18 | get: { self.wrappedValue as! T },
19 | set: { self.wrappedValue = $0 as! Value }
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | )
21 | }
[18/25] Compiling XUI DeepLinkable.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/DeepLink/DeepLinkableBuilder.swift:11:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
9 | public typealias DeepLinkableBuilder = CollectionBuilder<DeepLinkable>
10 |
11 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
12 | public struct CollectionBuilder<Component> {
13 |
[19/25] Compiling XUI DeepLinkableBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/DeepLink/DeepLinkableBuilder.swift:11:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
9 | public typealias DeepLinkableBuilder = CollectionBuilder<DeepLinkable>
10 |
11 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
12 | public struct CollectionBuilder<Component> {
13 |
[20/25] Compiling XUI PopoverModifier.swift
[21/25] Compiling XUI SheetModifier.swift
[22/25] Compiling XUI ErasedObservableObject.swift
[23/25] Compiling XUI ObjectIdentifiable.swift
[24/25] Compiling XUI Exports.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Internal/Binding+ObjectIdentifiable.swift:16:17: warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | extension Binding {
12 |
13 | func objectIdentifiable<T>() -> Binding<ObjectIdentifiable?> where Value == T? {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
14 | .init(
15 | get: {
16 | wrappedValue.map { value in
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | ObjectIdentifiable(value)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Internal/Binding+ObjectIdentifiable.swift:22:21: warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | extension Binding {
12 |
13 | func objectIdentifiable<T>() -> Binding<ObjectIdentifiable?> where Value == T? {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
14 | .init(
15 | get: {
:
20 | set: { newValue in
21 | if newValue == nil {
22 | wrappedValue = nil
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 | }
[25/25] Compiling XUI Binding+ObjectIdentifiable.swift
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Internal/Binding+ObjectIdentifiable.swift:16:17: warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | extension Binding {
12 |
13 | func objectIdentifiable<T>() -> Binding<ObjectIdentifiable?> where Value == T? {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
14 | .init(
15 | get: {
16 | wrappedValue.map { value in
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | ObjectIdentifiable(value)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/XUI/Internal/Binding+ObjectIdentifiable.swift:22:21: warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | extension Binding {
12 |
13 | func objectIdentifiable<T>() -> Binding<ObjectIdentifiable?> where Value == T? {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
14 | .init(
15 | get: {
:
20 | set: { newValue in
21 | if newValue == nil {
22 | wrappedValue = nil
| `- warning: capture of 'self' with non-sendable type 'Binding<Optional<T>>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 | }
Build complete! (17.48s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "XUI",
"name" : "XUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "XUI",
"targets" : [
"XUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "XUITests",
"module_type" : "SwiftTarget",
"name" : "XUITests",
"path" : "Tests/XUITests",
"sources" : [
"XCTestManifests.swift",
"XUITests.swift"
],
"target_dependencies" : [
"XUI"
],
"type" : "test"
},
{
"c99name" : "XUI",
"module_type" : "SwiftTarget",
"name" : "XUI",
"path" : "Sources/XUI",
"product_memberships" : [
"XUI"
],
"sources" : [
"Binding/Binding+Change.swift",
"Binding/Binding+Element.swift",
"Binding/Binding+Force.swift",
"Combine/CancellableBuilder.swift",
"Combine/Result+Combine.swift",
"DeepLink/DeepLinkable+Receiver.swift",
"DeepLink/DeepLinkable.swift",
"DeepLink/DeepLinkableBuilder.swift",
"Exports.swift",
"Internal/Binding+ObjectIdentifiable.swift",
"Internal/ErasedObservableObject.swift",
"Internal/ObjectIdentifiable.swift",
"Store/AnyObservableObject.swift",
"Store/Store.swift",
"Store/ViewModel.swift",
"ViewModifiers/NavigationModifier.swift",
"ViewModifiers/PopoverModifier.swift",
"ViewModifiers/SheetModifier.swift",
"Views/NavigationLink.swift",
"Views/View+Navigation.swift",
"Views/View+Popover.swift",
"Views/View+Sheet.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.