Build Information
Successful build of UsefulThingsSwiftUI, reference main (6ccf43), with Swift 6.1 for macOS (SPM) on 1 Mar 2026 01:49:49 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/atacan/UsefulThingsSwiftUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/atacan/UsefulThingsSwiftUI
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6ccf431 Add Swift package badges to README
Cloned https://github.com/atacan/UsefulThingsSwiftUI.git
Revision (git rev-parse @):
6ccf431e16fcfbba2fee5263b9322a21f80ebbac
SUCCESS checkout https://github.com/atacan/UsefulThingsSwiftUI.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/atacan/UsefulThingsSwiftUI.git
https://github.com/atacan/UsefulThingsSwiftUI.git
{
"dependencies" : [
],
"manifest_display_name" : "UsefulThingsSwiftUI",
"name" : "UsefulThingsSwiftUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "UsefulThingsSwiftUI",
"targets" : [
"UsefulThingsSwiftUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "UsefulThingsSwiftUITests",
"module_type" : "SwiftTarget",
"name" : "UsefulThingsSwiftUITests",
"path" : "Tests/UsefulThingsSwiftUITests",
"sources" : [
"UsefulThingsSwiftUITests.swift"
],
"target_dependencies" : [
"UsefulThingsSwiftUI"
],
"type" : "test"
},
{
"c99name" : "UsefulThingsSwiftUI",
"module_type" : "SwiftTarget",
"name" : "UsefulThingsSwiftUI",
"path" : "Sources/UsefulThingsSwiftUI",
"product_memberships" : [
"UsefulThingsSwiftUI"
],
"sources" : [
"Axis.swift",
"Binding+.swift",
"CircularProgressView.swift",
"Color+.swift",
"CornerRadiusWithBorder.swift",
"CursorChangeOnHover.swift",
"DoubleClick.swift",
"FileExport.swift",
"FloatingPanel.swift",
"Glow.swift",
"Grids.swift",
"Image+.swift",
"MenuPicker.swift",
"ModalPresenter/AlertPresenter.swift",
"ModalPresenter/AnyAlertPresenter.swift",
"ModalPresenter/AnyDialogPresenter.swift",
"ModalPresenter/AnyFullScreenCoverPresenter.swift",
"ModalPresenter/AnyMacWindowPresenter.swift",
"ModalPresenter/AnyPopoverPresenter.swift",
"ModalPresenter/AnySheetPresenter.swift",
"ModalPresenter/AsyncModal.swift",
"ModalPresenter/DialogPresenter.swift",
"ModalPresenter/FullScreenCoverPresenter.swift",
"ModalPresenter/MacWindowPresenter.swift",
"ModalPresenter/PopoverPresenter.swift",
"ModalPresenter/SheetPresenter.swift",
"Nameable.swift",
"OpenInWindow.swift",
"PatientTextField.swift",
"PopoverView.swift",
"PopupButton.swift",
"Rotation.swift",
"ScrollViews.swift",
"SizePreference.swift",
"SplashView.swift",
"Stacks.swift",
"Transition.swift",
"VisualEffectView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/38] Emitting module UsefulThingsSwiftUI
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/FileExport.swift:6:23: warning: static property 'readableContentTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public struct TextFile: FileDocument {
5 | // tell the system we support only plain text
6 | public static var readableContentTypes = [UTType.json, .text, .log, .html, .plainText]
| |- warning: static property 'readableContentTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'readableContentTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'readableContentTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // by default our document is empty
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/SizePreference.swift:4:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public struct SizePreferenceKey: PreferenceKey {
4 | public static var defaultValue: CGSize = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static func reduce(value: inout CGSize, nextValue: () -> CGSize) { value = nextValue() }
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:126:13: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
124 |
125 | public class Coordinator {
126 | let visualEffectView = NSVisualEffectView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
127 |
128 | init() {}
[4/41] Compiling UsefulThingsSwiftUI FloatingPanel.swift
[5/41] Compiling UsefulThingsSwiftUI Glow.swift
[6/41] Compiling UsefulThingsSwiftUI Grids.swift
[7/41] Compiling UsefulThingsSwiftUI Image+.swift
[8/41] Compiling UsefulThingsSwiftUI MenuPicker.swift
[9/41] Compiling UsefulThingsSwiftUI AlertPresenter.swift
[10/41] Compiling UsefulThingsSwiftUI AnyAlertPresenter.swift
[11/41] Compiling UsefulThingsSwiftUI AnyDialogPresenter.swift
[12/41] Compiling UsefulThingsSwiftUI AsyncModal.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/ModalPresenter/AsyncModal.swift:69:38: warning: sending 'output' risks causing data races; this is an error in the Swift 6 language mode
67 | switch result {
68 | case .success(let output):
69 | continuation.resume(returning: output)
| |- warning: sending 'output' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'output' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
70 | case .failure(let error):
71 | continuation.resume(throwing: error)
[13/41] Compiling UsefulThingsSwiftUI DialogPresenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/ModalPresenter/AsyncModal.swift:69:38: warning: sending 'output' risks causing data races; this is an error in the Swift 6 language mode
67 | switch result {
68 | case .success(let output):
69 | continuation.resume(returning: output)
| |- warning: sending 'output' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'output' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
70 | case .failure(let error):
71 | continuation.resume(throwing: error)
[14/41] Compiling UsefulThingsSwiftUI FullScreenCoverPresenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/ModalPresenter/AsyncModal.swift:69:38: warning: sending 'output' risks causing data races; this is an error in the Swift 6 language mode
67 | switch result {
68 | case .success(let output):
69 | continuation.resume(returning: output)
| |- warning: sending 'output' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'output' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
70 | case .failure(let error):
71 | continuation.resume(throwing: error)
[15/41] Compiling UsefulThingsSwiftUI MacWindowPresenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/ModalPresenter/AsyncModal.swift:69:38: warning: sending 'output' risks causing data races; this is an error in the Swift 6 language mode
67 | switch result {
68 | case .success(let output):
69 | continuation.resume(returning: output)
| |- warning: sending 'output' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'output' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
70 | case .failure(let error):
71 | continuation.resume(throwing: error)
[16/41] Compiling UsefulThingsSwiftUI Axis.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:36: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:36: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:6:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
6 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
7 | )
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:37: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:37: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:13:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
13 | set: { lhs?.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
14 | )
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:36: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:36: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:20:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
20 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
21 | )
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:37: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:37: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:27:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
27 | set: { lhs?.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
28 | )
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:38:31: warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
31 | public extension Binding {
32 |
33 | static func convert<TInt, TFloat>(_ intBinding: Binding<TInt>) -> Binding<TFloat>
| `- note: consider making generic parameter 'TInt' conform to the 'Sendable' protocol
34 | where TInt: BinaryInteger,
35 | TFloat: BinaryFloatingPoint{
36 |
37 | Binding<TFloat> (
38 | get: { TFloat(intBinding.wrappedValue) },
| `- warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
39 | set: { intBinding.wrappedValue = TInt($0) }
40 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:39:24: warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
31 | public extension Binding {
32 |
33 | static func convert<TInt, TFloat>(_ intBinding: Binding<TInt>) -> Binding<TFloat>
| `- note: consider making generic parameter 'TInt' conform to the 'Sendable' protocol
34 | where TInt: BinaryInteger,
35 | TFloat: BinaryFloatingPoint{
:
37 | Binding<TFloat> (
38 | get: { TFloat(intBinding.wrappedValue) },
39 | set: { intBinding.wrappedValue = TInt($0) }
| `- warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
40 | )
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:48:29: warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
41 | }
42 |
43 | static func convert<TFloat, TInt>(_ floatBinding: Binding<TFloat>) -> Binding<TInt>
| `- note: consider making generic parameter 'TFloat' conform to the 'Sendable' protocol
44 | where TFloat: BinaryFloatingPoint,
45 | TInt: BinaryInteger {
46 |
47 | Binding<TInt> (
48 | get: { TInt(floatBinding.wrappedValue) },
| `- warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
49 | set: { floatBinding.wrappedValue = TFloat($0) }
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:49:24: warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
41 | }
42 |
43 | static func convert<TFloat, TInt>(_ floatBinding: Binding<TFloat>) -> Binding<TInt>
| `- note: consider making generic parameter 'TFloat' conform to the 'Sendable' protocol
44 | where TFloat: BinaryFloatingPoint,
45 | TInt: BinaryInteger {
:
47 | Binding<TInt> (
48 | get: { TInt(floatBinding.wrappedValue) },
49 | set: { floatBinding.wrappedValue = TFloat($0) }
| `- warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
50 | )
51 | }
[17/41] Compiling UsefulThingsSwiftUI Binding+.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:36: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:36: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:6:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
6 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
7 | )
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:37: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:37: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:13:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
13 | set: { lhs?.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
14 | )
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:36: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:36: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:20:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
20 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
21 | )
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:37: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:37: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:27:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
27 | set: { lhs?.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
28 | )
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:38:31: warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
31 | public extension Binding {
32 |
33 | static func convert<TInt, TFloat>(_ intBinding: Binding<TInt>) -> Binding<TFloat>
| `- note: consider making generic parameter 'TInt' conform to the 'Sendable' protocol
34 | where TInt: BinaryInteger,
35 | TFloat: BinaryFloatingPoint{
36 |
37 | Binding<TFloat> (
38 | get: { TFloat(intBinding.wrappedValue) },
| `- warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
39 | set: { intBinding.wrappedValue = TInt($0) }
40 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:39:24: warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
31 | public extension Binding {
32 |
33 | static func convert<TInt, TFloat>(_ intBinding: Binding<TInt>) -> Binding<TFloat>
| `- note: consider making generic parameter 'TInt' conform to the 'Sendable' protocol
34 | where TInt: BinaryInteger,
35 | TFloat: BinaryFloatingPoint{
:
37 | Binding<TFloat> (
38 | get: { TFloat(intBinding.wrappedValue) },
39 | set: { intBinding.wrappedValue = TInt($0) }
| `- warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
40 | )
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:48:29: warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
41 | }
42 |
43 | static func convert<TFloat, TInt>(_ floatBinding: Binding<TFloat>) -> Binding<TInt>
| `- note: consider making generic parameter 'TFloat' conform to the 'Sendable' protocol
44 | where TFloat: BinaryFloatingPoint,
45 | TInt: BinaryInteger {
46 |
47 | Binding<TInt> (
48 | get: { TInt(floatBinding.wrappedValue) },
| `- warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
49 | set: { floatBinding.wrappedValue = TFloat($0) }
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:49:24: warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
41 | }
42 |
43 | static func convert<TFloat, TInt>(_ floatBinding: Binding<TFloat>) -> Binding<TInt>
| `- note: consider making generic parameter 'TFloat' conform to the 'Sendable' protocol
44 | where TFloat: BinaryFloatingPoint,
45 | TInt: BinaryInteger {
:
47 | Binding<TInt> (
48 | get: { TInt(floatBinding.wrappedValue) },
49 | set: { floatBinding.wrappedValue = TFloat($0) }
| `- warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
50 | )
51 | }
[18/41] Compiling UsefulThingsSwiftUI CircularProgressView.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:36: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:36: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:6:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
6 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
7 | )
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:37: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:37: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:13:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
13 | set: { lhs?.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
14 | )
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:36: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:36: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:20:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
20 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
21 | )
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:37: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:37: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:27:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
27 | set: { lhs?.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
28 | )
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:38:31: warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
31 | public extension Binding {
32 |
33 | static func convert<TInt, TFloat>(_ intBinding: Binding<TInt>) -> Binding<TFloat>
| `- note: consider making generic parameter 'TInt' conform to the 'Sendable' protocol
34 | where TInt: BinaryInteger,
35 | TFloat: BinaryFloatingPoint{
36 |
37 | Binding<TFloat> (
38 | get: { TFloat(intBinding.wrappedValue) },
| `- warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
39 | set: { intBinding.wrappedValue = TInt($0) }
40 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:39:24: warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
31 | public extension Binding {
32 |
33 | static func convert<TInt, TFloat>(_ intBinding: Binding<TInt>) -> Binding<TFloat>
| `- note: consider making generic parameter 'TInt' conform to the 'Sendable' protocol
34 | where TInt: BinaryInteger,
35 | TFloat: BinaryFloatingPoint{
:
37 | Binding<TFloat> (
38 | get: { TFloat(intBinding.wrappedValue) },
39 | set: { intBinding.wrappedValue = TInt($0) }
| `- warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
40 | )
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:48:29: warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
41 | }
42 |
43 | static func convert<TFloat, TInt>(_ floatBinding: Binding<TFloat>) -> Binding<TInt>
| `- note: consider making generic parameter 'TFloat' conform to the 'Sendable' protocol
44 | where TFloat: BinaryFloatingPoint,
45 | TInt: BinaryInteger {
46 |
47 | Binding<TInt> (
48 | get: { TInt(floatBinding.wrappedValue) },
| `- warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
49 | set: { floatBinding.wrappedValue = TFloat($0) }
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:49:24: warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
41 | }
42 |
43 | static func convert<TFloat, TInt>(_ floatBinding: Binding<TFloat>) -> Binding<TInt>
| `- note: consider making generic parameter 'TFloat' conform to the 'Sendable' protocol
44 | where TFloat: BinaryFloatingPoint,
45 | TInt: BinaryInteger {
:
47 | Binding<TInt> (
48 | get: { TInt(floatBinding.wrappedValue) },
49 | set: { floatBinding.wrappedValue = TFloat($0) }
| `- warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
50 | )
51 | }
[19/41] Compiling UsefulThingsSwiftUI Color+.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:36: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:5:36: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
6 | set: { lhs.wrappedValue = $0 }
7 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:6:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
1 | import SwiftUI
2 |
3 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
4 | Binding(
5 | get: { lhs.wrappedValue ?? rhs },
6 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
7 | )
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:37: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:12:37: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
13 | set: { lhs?.wrappedValue = $0 }
14 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:13:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
8 | }
9 |
10 | public func ?? <T>(lhs: Binding<T>?, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
11 | Binding(
12 | get: { lhs?.wrappedValue ?? rhs },
13 | set: { lhs?.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
14 | )
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:36: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:19:36: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
20 | set: { lhs.wrappedValue = $0 }
21 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:20:16: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
15 | }
16 |
17 | public func bindOptional<T>(_ lhs: Binding<T?>, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
18 | Binding(
19 | get: { lhs.wrappedValue ?? rhs },
20 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a '@Sendable' closure
21 | )
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:37: warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a '@Sendable' closure
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:26:37: warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to 'Sendable'; this is an error in the Swift 6 language mode
27 | set: { lhs?.wrappedValue = $0 }
28 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:27:16: warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
22 | }
23 |
24 | public func bindOptional<T>(_ lhs: Binding<T>?, _ rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 | Binding(
26 | get: { lhs?.wrappedValue ?? rhs },
27 | set: { lhs?.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T>?' in a '@Sendable' closure
28 | )
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:38:31: warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
31 | public extension Binding {
32 |
33 | static func convert<TInt, TFloat>(_ intBinding: Binding<TInt>) -> Binding<TFloat>
| `- note: consider making generic parameter 'TInt' conform to the 'Sendable' protocol
34 | where TInt: BinaryInteger,
35 | TFloat: BinaryFloatingPoint{
36 |
37 | Binding<TFloat> (
38 | get: { TFloat(intBinding.wrappedValue) },
| `- warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
39 | set: { intBinding.wrappedValue = TInt($0) }
40 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:39:24: warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
31 | public extension Binding {
32 |
33 | static func convert<TInt, TFloat>(_ intBinding: Binding<TInt>) -> Binding<TFloat>
| `- note: consider making generic parameter 'TInt' conform to the 'Sendable' protocol
34 | where TInt: BinaryInteger,
35 | TFloat: BinaryFloatingPoint{
:
37 | Binding<TFloat> (
38 | get: { TFloat(intBinding.wrappedValue) },
39 | set: { intBinding.wrappedValue = TInt($0) }
| `- warning: capture of 'intBinding' with non-sendable type 'Binding<TInt>' in a '@Sendable' closure
40 | )
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:48:29: warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
41 | }
42 |
43 | static func convert<TFloat, TInt>(_ floatBinding: Binding<TFloat>) -> Binding<TInt>
| `- note: consider making generic parameter 'TFloat' conform to the 'Sendable' protocol
44 | where TFloat: BinaryFloatingPoint,
45 | TInt: BinaryInteger {
46 |
47 | Binding<TInt> (
48 | get: { TInt(floatBinding.wrappedValue) },
| `- warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
49 | set: { floatBinding.wrappedValue = TFloat($0) }
50 | )
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/Binding+.swift:49:24: warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
41 | }
42 |
43 | static func convert<TFloat, TInt>(_ floatBinding: Binding<TFloat>) -> Binding<TInt>
| `- note: consider making generic parameter 'TFloat' conform to the 'Sendable' protocol
44 | where TFloat: BinaryFloatingPoint,
45 | TInt: BinaryInteger {
:
47 | Binding<TInt> (
48 | get: { TInt(floatBinding.wrappedValue) },
49 | set: { floatBinding.wrappedValue = TFloat($0) }
| `- warning: capture of 'floatBinding' with non-sendable type 'Binding<TFloat>' in a '@Sendable' closure
50 | )
51 | }
[20/41] Compiling UsefulThingsSwiftUI Stacks.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:126:13: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
124 |
125 | public class Coordinator {
126 | let visualEffectView = NSVisualEffectView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
127 |
128 | init() {}
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:65:40: warning: 'appearanceBased' was deprecated in macOS 10.14: Use a specific semantic material instead.
63 | var nsMaterial: NSVisualEffectView.Material {
64 | switch self {
65 | case .appearanceBased: return .appearanceBased
| `- warning: 'appearanceBased' was deprecated in macOS 10.14: Use a specific semantic material instead.
66 | case .light: return .light
67 | case .dark: return .dark
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:66:30: warning: 'light' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
64 | switch self {
65 | case .appearanceBased: return .appearanceBased
66 | case .light: return .light
| `- warning: 'light' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
67 | case .dark: return .dark
68 | case .titlebar: return .titlebar
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:67:29: warning: 'dark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
65 | case .appearanceBased: return .appearanceBased
66 | case .light: return .light
67 | case .dark: return .dark
| `- warning: 'dark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
68 | case .titlebar: return .titlebar
69 | case .selection: return .selection
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:73:36: warning: 'mediumLight' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
71 | case .popover: return .popover
72 | case .sidebar: return .sidebar
73 | case .mediumLight: return .mediumLight
| `- warning: 'mediumLight' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
74 | case .ultraDark: return .ultraDark
75 | case .headerView: return .headerView
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:74:34: warning: 'ultraDark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
72 | case .sidebar: return .sidebar
73 | case .mediumLight: return .mediumLight
74 | case .ultraDark: return .ultraDark
| `- warning: 'ultraDark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
75 | case .headerView: return .headerView
76 | case .sheet: return .sheet
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:136:30: warning: main actor-isolated property 'material' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
134 | emphasized: Bool
135 | ) {
136 | visualEffectView.material = material.nsMaterial
| `- warning: main actor-isolated property 'material' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
138 | visualEffectView.state = state.nsState
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:95:34: note: mutation of this property is only permitted within the actor
93 |
94 | /// A value indicating which material is shown by the NSVisualEffectView. See the comments on NSVisualEffectMaterial. Defaults to NSVisualEffectMaterialAppearanceBased. You should instead specify an appropriate semantic material value. See the comments on NSVisualEffectMaterial.
95 | @property NSVisualEffectMaterial material;
| `- note: mutation of this property is only permitted within the actor
96 |
97 | /// An NSBackgroundStyle value that most closely matches the look of the material shown by the NSVisualEffectView.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:137:30: warning: main actor-isolated property 'blendingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
135 | ) {
136 | visualEffectView.material = material.nsMaterial
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
| `- warning: main actor-isolated property 'blendingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 | visualEffectView.state = state.nsState
139 | visualEffectView.isEmphasized = emphasized
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:101:38: note: mutation of this property is only permitted within the actor
99 |
100 | /// A value controlling how the NSVisualEffectView generates its material. See the comments on NSVisualEffectBlendingMode. Not all materials support both blending modes, so NSVisualEffectView may fall back to a more appropriate blending mode as needed. Defaults to NSVisualEffectBlendingModeBehindWindow.
101 | @property NSVisualEffectBlendingMode blendingMode;
| `- note: mutation of this property is only permitted within the actor
102 |
103 | /// A value controlling when the NSVisualEffectView takes on the active look. See the comments on NSVisualEffectState. Defaults to NSVisualEffectStateFollowsWindowActiveState.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:138:30: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
136 | visualEffectView.material = material.nsMaterial
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
138 | visualEffectView.state = state.nsState
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
139 | visualEffectView.isEmphasized = emphasized
140 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:104:31: note: mutation of this property is only permitted within the actor
102 |
103 | /// A value controlling when the NSVisualEffectView takes on the active look. See the comments on NSVisualEffectState. Defaults to NSVisualEffectStateFollowsWindowActiveState.
104 | @property NSVisualEffectState state;
| `- note: mutation of this property is only permitted within the actor
105 |
106 | /// An image whose alpha channel is used to mask the material generated by the NSVisualEffectView. (It does not also mask subviews.) Defaults to nil. It is best to set this to the smallest mask image possible and properly set the image's capInsets property to stretch it. Setting the maskImage on an NSVisualEffectView that is the contentView of a window will correctly influence the window's shadow.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:139:30: warning: main actor-isolated property 'isEmphasized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
138 | visualEffectView.state = state.nsState
139 | visualEffectView.isEmphasized = emphasized
| `- warning: main actor-isolated property 'isEmphasized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
140 | }
141 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:110:38: note: mutation of this property is only permitted within the actor
108 |
109 | /// When YES, the material takes on the emphasized look. Defaults to NO. Some, but not all, materials change their look when emphasized. This is used to indicate that an associated view has firstResponder status.
110 | @property (getter=isEmphasized) BOOL emphasized API_AVAILABLE(macos(10.12));
| `- note: mutation of this property is only permitted within the actor
111 |
112 | // Some things this class overrides. It is required to call super if you subclass NSVisualEffectView and override these.
[21/41] Compiling UsefulThingsSwiftUI Transition.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:126:13: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
124 |
125 | public class Coordinator {
126 | let visualEffectView = NSVisualEffectView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
127 |
128 | init() {}
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:65:40: warning: 'appearanceBased' was deprecated in macOS 10.14: Use a specific semantic material instead.
63 | var nsMaterial: NSVisualEffectView.Material {
64 | switch self {
65 | case .appearanceBased: return .appearanceBased
| `- warning: 'appearanceBased' was deprecated in macOS 10.14: Use a specific semantic material instead.
66 | case .light: return .light
67 | case .dark: return .dark
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:66:30: warning: 'light' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
64 | switch self {
65 | case .appearanceBased: return .appearanceBased
66 | case .light: return .light
| `- warning: 'light' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
67 | case .dark: return .dark
68 | case .titlebar: return .titlebar
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:67:29: warning: 'dark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
65 | case .appearanceBased: return .appearanceBased
66 | case .light: return .light
67 | case .dark: return .dark
| `- warning: 'dark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
68 | case .titlebar: return .titlebar
69 | case .selection: return .selection
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:73:36: warning: 'mediumLight' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
71 | case .popover: return .popover
72 | case .sidebar: return .sidebar
73 | case .mediumLight: return .mediumLight
| `- warning: 'mediumLight' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
74 | case .ultraDark: return .ultraDark
75 | case .headerView: return .headerView
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:74:34: warning: 'ultraDark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
72 | case .sidebar: return .sidebar
73 | case .mediumLight: return .mediumLight
74 | case .ultraDark: return .ultraDark
| `- warning: 'ultraDark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
75 | case .headerView: return .headerView
76 | case .sheet: return .sheet
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:136:30: warning: main actor-isolated property 'material' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
134 | emphasized: Bool
135 | ) {
136 | visualEffectView.material = material.nsMaterial
| `- warning: main actor-isolated property 'material' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
138 | visualEffectView.state = state.nsState
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:95:34: note: mutation of this property is only permitted within the actor
93 |
94 | /// A value indicating which material is shown by the NSVisualEffectView. See the comments on NSVisualEffectMaterial. Defaults to NSVisualEffectMaterialAppearanceBased. You should instead specify an appropriate semantic material value. See the comments on NSVisualEffectMaterial.
95 | @property NSVisualEffectMaterial material;
| `- note: mutation of this property is only permitted within the actor
96 |
97 | /// An NSBackgroundStyle value that most closely matches the look of the material shown by the NSVisualEffectView.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:137:30: warning: main actor-isolated property 'blendingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
135 | ) {
136 | visualEffectView.material = material.nsMaterial
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
| `- warning: main actor-isolated property 'blendingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 | visualEffectView.state = state.nsState
139 | visualEffectView.isEmphasized = emphasized
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:101:38: note: mutation of this property is only permitted within the actor
99 |
100 | /// A value controlling how the NSVisualEffectView generates its material. See the comments on NSVisualEffectBlendingMode. Not all materials support both blending modes, so NSVisualEffectView may fall back to a more appropriate blending mode as needed. Defaults to NSVisualEffectBlendingModeBehindWindow.
101 | @property NSVisualEffectBlendingMode blendingMode;
| `- note: mutation of this property is only permitted within the actor
102 |
103 | /// A value controlling when the NSVisualEffectView takes on the active look. See the comments on NSVisualEffectState. Defaults to NSVisualEffectStateFollowsWindowActiveState.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:138:30: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
136 | visualEffectView.material = material.nsMaterial
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
138 | visualEffectView.state = state.nsState
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
139 | visualEffectView.isEmphasized = emphasized
140 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:104:31: note: mutation of this property is only permitted within the actor
102 |
103 | /// A value controlling when the NSVisualEffectView takes on the active look. See the comments on NSVisualEffectState. Defaults to NSVisualEffectStateFollowsWindowActiveState.
104 | @property NSVisualEffectState state;
| `- note: mutation of this property is only permitted within the actor
105 |
106 | /// An image whose alpha channel is used to mask the material generated by the NSVisualEffectView. (It does not also mask subviews.) Defaults to nil. It is best to set this to the smallest mask image possible and properly set the image's capInsets property to stretch it. Setting the maskImage on an NSVisualEffectView that is the contentView of a window will correctly influence the window's shadow.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:139:30: warning: main actor-isolated property 'isEmphasized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
138 | visualEffectView.state = state.nsState
139 | visualEffectView.isEmphasized = emphasized
| `- warning: main actor-isolated property 'isEmphasized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
140 | }
141 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:110:38: note: mutation of this property is only permitted within the actor
108 |
109 | /// When YES, the material takes on the emphasized look. Defaults to NO. Some, but not all, materials change their look when emphasized. This is used to indicate that an associated view has firstResponder status.
110 | @property (getter=isEmphasized) BOOL emphasized API_AVAILABLE(macos(10.12));
| `- note: mutation of this property is only permitted within the actor
111 |
112 | // Some things this class overrides. It is required to call super if you subclass NSVisualEffectView and override these.
[22/41] Compiling UsefulThingsSwiftUI VisualEffectView.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:126:13: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
124 |
125 | public class Coordinator {
126 | let visualEffectView = NSVisualEffectView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
127 |
128 | init() {}
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:65:40: warning: 'appearanceBased' was deprecated in macOS 10.14: Use a specific semantic material instead.
63 | var nsMaterial: NSVisualEffectView.Material {
64 | switch self {
65 | case .appearanceBased: return .appearanceBased
| `- warning: 'appearanceBased' was deprecated in macOS 10.14: Use a specific semantic material instead.
66 | case .light: return .light
67 | case .dark: return .dark
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:66:30: warning: 'light' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
64 | switch self {
65 | case .appearanceBased: return .appearanceBased
66 | case .light: return .light
| `- warning: 'light' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
67 | case .dark: return .dark
68 | case .titlebar: return .titlebar
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:67:29: warning: 'dark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
65 | case .appearanceBased: return .appearanceBased
66 | case .light: return .light
67 | case .dark: return .dark
| `- warning: 'dark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
68 | case .titlebar: return .titlebar
69 | case .selection: return .selection
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:73:36: warning: 'mediumLight' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
71 | case .popover: return .popover
72 | case .sidebar: return .sidebar
73 | case .mediumLight: return .mediumLight
| `- warning: 'mediumLight' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
74 | case .ultraDark: return .ultraDark
75 | case .headerView: return .headerView
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:74:34: warning: 'ultraDark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
72 | case .sidebar: return .sidebar
73 | case .mediumLight: return .mediumLight
74 | case .ultraDark: return .ultraDark
| `- warning: 'ultraDark' was deprecated in macOS 10.14: Use a semantic material instead. To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
75 | case .headerView: return .headerView
76 | case .sheet: return .sheet
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:136:30: warning: main actor-isolated property 'material' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
134 | emphasized: Bool
135 | ) {
136 | visualEffectView.material = material.nsMaterial
| `- warning: main actor-isolated property 'material' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
138 | visualEffectView.state = state.nsState
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:95:34: note: mutation of this property is only permitted within the actor
93 |
94 | /// A value indicating which material is shown by the NSVisualEffectView. See the comments on NSVisualEffectMaterial. Defaults to NSVisualEffectMaterialAppearanceBased. You should instead specify an appropriate semantic material value. See the comments on NSVisualEffectMaterial.
95 | @property NSVisualEffectMaterial material;
| `- note: mutation of this property is only permitted within the actor
96 |
97 | /// An NSBackgroundStyle value that most closely matches the look of the material shown by the NSVisualEffectView.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:137:30: warning: main actor-isolated property 'blendingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
135 | ) {
136 | visualEffectView.material = material.nsMaterial
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
| `- warning: main actor-isolated property 'blendingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 | visualEffectView.state = state.nsState
139 | visualEffectView.isEmphasized = emphasized
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:101:38: note: mutation of this property is only permitted within the actor
99 |
100 | /// A value controlling how the NSVisualEffectView generates its material. See the comments on NSVisualEffectBlendingMode. Not all materials support both blending modes, so NSVisualEffectView may fall back to a more appropriate blending mode as needed. Defaults to NSVisualEffectBlendingModeBehindWindow.
101 | @property NSVisualEffectBlendingMode blendingMode;
| `- note: mutation of this property is only permitted within the actor
102 |
103 | /// A value controlling when the NSVisualEffectView takes on the active look. See the comments on NSVisualEffectState. Defaults to NSVisualEffectStateFollowsWindowActiveState.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:138:30: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
136 | visualEffectView.material = material.nsMaterial
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
138 | visualEffectView.state = state.nsState
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
139 | visualEffectView.isEmphasized = emphasized
140 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:104:31: note: mutation of this property is only permitted within the actor
102 |
103 | /// A value controlling when the NSVisualEffectView takes on the active look. See the comments on NSVisualEffectState. Defaults to NSVisualEffectStateFollowsWindowActiveState.
104 | @property NSVisualEffectState state;
| `- note: mutation of this property is only permitted within the actor
105 |
106 | /// An image whose alpha channel is used to mask the material generated by the NSVisualEffectView. (It does not also mask subviews.) Defaults to nil. It is best to set this to the smallest mask image possible and properly set the image's capInsets property to stretch it. Setting the maskImage on an NSVisualEffectView that is the contentView of a window will correctly influence the window's shadow.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/VisualEffectView.swift:139:30: warning: main actor-isolated property 'isEmphasized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | init() {}
129 |
130 | func update(
| `- note: add '@MainActor' to make instance method 'update(material:blendingMode:state:emphasized:)' part of global actor 'MainActor'
131 | material: VisualEffectView.Material,
132 | blendingMode: VisualEffectView.BlendingMode,
:
137 | visualEffectView.blendingMode = blendingMode.nsBlendingMode
138 | visualEffectView.state = state.nsState
139 | visualEffectView.isEmphasized = emphasized
| `- warning: main actor-isolated property 'isEmphasized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
140 | }
141 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:110:38: note: mutation of this property is only permitted within the actor
108 |
109 | /// When YES, the material takes on the emphasized look. Defaults to NO. Some, but not all, materials change their look when emphasized. This is used to indicate that an associated view has firstResponder status.
110 | @property (getter=isEmphasized) BOOL emphasized API_AVAILABLE(macos(10.12));
| `- note: mutation of this property is only permitted within the actor
111 |
112 | // Some things this class overrides. It is required to call super if you subclass NSVisualEffectView and override these.
[23/41] Compiling UsefulThingsSwiftUI AnyFullScreenCoverPresenter.swift
[24/41] Compiling UsefulThingsSwiftUI AnyMacWindowPresenter.swift
[25/41] Compiling UsefulThingsSwiftUI AnyPopoverPresenter.swift
[26/41] Compiling UsefulThingsSwiftUI AnySheetPresenter.swift
[27/41] Compiling UsefulThingsSwiftUI CornerRadiusWithBorder.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/FileExport.swift:6:23: warning: static property 'readableContentTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public struct TextFile: FileDocument {
5 | // tell the system we support only plain text
6 | public static var readableContentTypes = [UTType.json, .text, .log, .html, .plainText]
| |- warning: static property 'readableContentTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'readableContentTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'readableContentTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // by default our document is empty
[28/41] Compiling UsefulThingsSwiftUI CursorChangeOnHover.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/FileExport.swift:6:23: warning: static property 'readableContentTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public struct TextFile: FileDocument {
5 | // tell the system we support only plain text
6 | public static var readableContentTypes = [UTType.json, .text, .log, .html, .plainText]
| |- warning: static property 'readableContentTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'readableContentTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'readableContentTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // by default our document is empty
[29/41] Compiling UsefulThingsSwiftUI DoubleClick.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/FileExport.swift:6:23: warning: static property 'readableContentTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public struct TextFile: FileDocument {
5 | // tell the system we support only plain text
6 | public static var readableContentTypes = [UTType.json, .text, .log, .html, .plainText]
| |- warning: static property 'readableContentTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'readableContentTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'readableContentTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // by default our document is empty
[30/41] Compiling UsefulThingsSwiftUI FileExport.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/FileExport.swift:6:23: warning: static property 'readableContentTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public struct TextFile: FileDocument {
5 | // tell the system we support only plain text
6 | public static var readableContentTypes = [UTType.json, .text, .log, .html, .plainText]
| |- warning: static property 'readableContentTypes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'readableContentTypes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'readableContentTypes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // by default our document is empty
[31/41] Compiling UsefulThingsSwiftUI PopoverPresenter.swift
[32/41] Compiling UsefulThingsSwiftUI SheetPresenter.swift
[33/41] Compiling UsefulThingsSwiftUI Nameable.swift
[34/41] Compiling UsefulThingsSwiftUI OpenInWindow.swift
[35/41] Compiling UsefulThingsSwiftUI ScrollViews.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/SizePreference.swift:4:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public struct SizePreferenceKey: PreferenceKey {
4 | public static var defaultValue: CGSize = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static func reduce(value: inout CGSize, nextValue: () -> CGSize) { value = nextValue() }
6 | }
[36/41] Compiling UsefulThingsSwiftUI SizePreference.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/SizePreference.swift:4:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public struct SizePreferenceKey: PreferenceKey {
4 | public static var defaultValue: CGSize = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static func reduce(value: inout CGSize, nextValue: () -> CGSize) { value = nextValue() }
6 | }
[37/41] Compiling UsefulThingsSwiftUI SplashView.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/SizePreference.swift:4:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public struct SizePreferenceKey: PreferenceKey {
4 | public static var defaultValue: CGSize = .zero
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static func reduce(value: inout CGSize, nextValue: () -> CGSize) { value = nextValue() }
6 | }
[38/41] Compiling UsefulThingsSwiftUI PatientTextField.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:43:28: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
41 | self.parent = parent
42 | self.sizePublisher = sizePublisher
43 | self.popover = NSPopover()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 |
45 | super.init()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:62:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
60 | #endif
61 |
62 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
63 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
64 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:47:21: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
45 | super.init()
46 |
47 | popover.delegate = self
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:82:59: note: mutation of this property is only permitted within the actor
80 | /* The delegate of the popover. The delegate is not retained.
81 | */
82 | @property(nullable, weak) IBOutlet id <NSPopoverDelegate> delegate;
| `- note: mutation of this property is only permitted within the actor
83 |
84 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:48:24: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 |
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
SwiftUI.NSHostingController.init:2:35: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingController {
2 | @MainActor @preconcurrency public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:48:61: warning: main actor-isolated property 'content' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
7 | @Binding var isVisible: Bool
8 | let sizePublisher: AnyPublisher<CGSize, Never>
9 | var content: () -> T
| `- note: property declared here
10 |
11 | public init(
:
46 |
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
| `- warning: main actor-isolated property 'content' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:49:21: warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
| `- warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | popover.behavior = .transient
51 | popover.animates = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:121:56: note: mutation of this property is only permitted within the actor
119 | /* The view controller that manages the content of the popover. The default value is nil. You must set the content view controller of the popover to a non-nil value before the popover is shown. Changes to the popover's content view controller while the popover is shown will animate (provided animates is YES).
120 | */
121 | @property(nullable, retain) IBOutlet NSViewController *contentViewController;
| `- note: mutation of this property is only permitted within the actor
122 |
123 | /* The content size of the popover. The popover's content size is set to match the size of the content view when the content view controller is set. Changes to the content size of the popover will animate while the popover is shown (provided animates is YES).
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:50:21: warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
50 | popover.behavior = .transient
| `- warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | popover.animates = false
52 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:113:29: note: mutation of this property is only permitted within the actor
111 | /* The behavior of the popover. The default behavior is NSPopoverBehaviorApplicationDefined. See the declaration of NSPopoverBehavior above for more information about popover behaviors.
112 | */
113 | @property NSPopoverBehavior behavior;
| `- note: mutation of this property is only permitted within the actor
114 |
115 | /* Should the popover be animated when it shows, closes, or appears to transition to a detachable window. This property also controls whether the popover animates when the content view or content size changes. AppKit does not guarantee which behaviors will be animated or that this property will be respected; it is regarded as a hint. The default value is YES.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:51:21: warning: main actor-isolated property 'animates' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
51 | popover.animates = false
| `- warning: main actor-isolated property 'animates' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | sizePublisher
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:117:16: note: mutation of this property is only permitted within the actor
115 | /* Should the popover be animated when it shows, closes, or appears to transition to a detachable window. This property also controls whether the popover animates when the content view or content size changes. AppKit does not guarantee which behaviors will be animated or that this property will be respected; it is regarded as a hint. The default value is YES.
116 | */
117 | @property BOOL animates;
| `- note: mutation of this property is only permitted within the actor
118 |
119 | /* The view controller that manages the content of the popover. The default value is nil. You must set the content view controller of the popover to a non-nil value before the popover is shown. Changes to the popover's content view controller while the popover is shown will animate (provided animates is YES).
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:57:35: warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
55 | .debounce(for: .seconds(0.4), scheduler: RunLoop.main)
56 | .sink { [weak self] newSize in
57 | self?.popover.contentSize = newSize
| `- warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 | .store(in: &cancellables)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:125:18: note: mutation of this property is only permitted within the actor
123 | /* The content size of the popover. The popover's content size is set to match the size of the content view when the content view controller is set. Changes to the content size of the popover will animate while the popover is shown (provided animates is YES).
124 | */
125 | @property NSSize contentSize;
| `- note: mutation of this property is only permitted within the actor
126 |
127 | /* YES if the popover is being shown, NO otherwise. The popover is considered to be shown from the point when -showRelativeToRect:ofView:preferredEdge: is invoked until the popover is closed in response to an invocation of either -close or -performClose:.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:64:25: warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
| `- warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | } else {
66 | popover.close()
AppKit.NSPopover.show:2:22: note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func show(relativeTo positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)}
| |- note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:64:47: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 | } else {
66 | popover.close()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:66:25: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
65 | } else {
66 | popover.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 | }
AppKit.NSPopover.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func close()}
| |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopupButton.swift:50:33: warning: main actor-isolated property 'selectedItem' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 |
48 | @objc
49 | func itemSelected(_ sender: NSPopUpButton) {
| `- note: add '@MainActor' to make instance method 'itemSelected' part of global actor 'MainActor'
50 | if let key = sender.selectedItem?.representedObject as? Key {
| `- warning: main actor-isolated property 'selectedItem' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
51 | parent.selectedKey = key
52 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButton.h:114:52: note: property declared here
112 | - (void)setTitle:(NSString *)string;
113 |
114 | @property (nullable, readonly, strong) NSMenuItem *selectedItem;
| `- note: property declared here
115 | @property (readonly) NSInteger indexOfSelectedItem;
116 | @property (readonly) NSInteger selectedTag;
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopupButton.swift:51:24: warning: main actor-isolated property 'selectedKey' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
3 |
4 | public struct PopupButton<Key: Nameable>: NSViewRepresentable {
5 | @Binding var selectedKey: Key
| `- note: mutation of this property is only permitted within the actor
6 | let keys: [Key]
7 |
:
47 |
48 | @objc
49 | func itemSelected(_ sender: NSPopUpButton) {
| `- note: add '@MainActor' to make instance method 'itemSelected' part of global actor 'MainActor'
50 | if let key = sender.selectedItem?.representedObject as? Key {
51 | parent.selectedKey = key
| `- warning: main actor-isolated property 'selectedKey' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 | }
[39/41] Compiling UsefulThingsSwiftUI PopoverView.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:43:28: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
41 | self.parent = parent
42 | self.sizePublisher = sizePublisher
43 | self.popover = NSPopover()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 |
45 | super.init()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:62:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
60 | #endif
61 |
62 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
63 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
64 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:47:21: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
45 | super.init()
46 |
47 | popover.delegate = self
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:82:59: note: mutation of this property is only permitted within the actor
80 | /* The delegate of the popover. The delegate is not retained.
81 | */
82 | @property(nullable, weak) IBOutlet id <NSPopoverDelegate> delegate;
| `- note: mutation of this property is only permitted within the actor
83 |
84 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:48:24: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 |
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
SwiftUI.NSHostingController.init:2:35: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingController {
2 | @MainActor @preconcurrency public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:48:61: warning: main actor-isolated property 'content' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
7 | @Binding var isVisible: Bool
8 | let sizePublisher: AnyPublisher<CGSize, Never>
9 | var content: () -> T
| `- note: property declared here
10 |
11 | public init(
:
46 |
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
| `- warning: main actor-isolated property 'content' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:49:21: warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
| `- warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | popover.behavior = .transient
51 | popover.animates = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:121:56: note: mutation of this property is only permitted within the actor
119 | /* The view controller that manages the content of the popover. The default value is nil. You must set the content view controller of the popover to a non-nil value before the popover is shown. Changes to the popover's content view controller while the popover is shown will animate (provided animates is YES).
120 | */
121 | @property(nullable, retain) IBOutlet NSViewController *contentViewController;
| `- note: mutation of this property is only permitted within the actor
122 |
123 | /* The content size of the popover. The popover's content size is set to match the size of the content view when the content view controller is set. Changes to the content size of the popover will animate while the popover is shown (provided animates is YES).
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:50:21: warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
50 | popover.behavior = .transient
| `- warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | popover.animates = false
52 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:113:29: note: mutation of this property is only permitted within the actor
111 | /* The behavior of the popover. The default behavior is NSPopoverBehaviorApplicationDefined. See the declaration of NSPopoverBehavior above for more information about popover behaviors.
112 | */
113 | @property NSPopoverBehavior behavior;
| `- note: mutation of this property is only permitted within the actor
114 |
115 | /* Should the popover be animated when it shows, closes, or appears to transition to a detachable window. This property also controls whether the popover animates when the content view or content size changes. AppKit does not guarantee which behaviors will be animated or that this property will be respected; it is regarded as a hint. The default value is YES.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:51:21: warning: main actor-isolated property 'animates' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
51 | popover.animates = false
| `- warning: main actor-isolated property 'animates' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | sizePublisher
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:117:16: note: mutation of this property is only permitted within the actor
115 | /* Should the popover be animated when it shows, closes, or appears to transition to a detachable window. This property also controls whether the popover animates when the content view or content size changes. AppKit does not guarantee which behaviors will be animated or that this property will be respected; it is regarded as a hint. The default value is YES.
116 | */
117 | @property BOOL animates;
| `- note: mutation of this property is only permitted within the actor
118 |
119 | /* The view controller that manages the content of the popover. The default value is nil. You must set the content view controller of the popover to a non-nil value before the popover is shown. Changes to the popover's content view controller while the popover is shown will animate (provided animates is YES).
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:57:35: warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
55 | .debounce(for: .seconds(0.4), scheduler: RunLoop.main)
56 | .sink { [weak self] newSize in
57 | self?.popover.contentSize = newSize
| `- warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 | .store(in: &cancellables)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:125:18: note: mutation of this property is only permitted within the actor
123 | /* The content size of the popover. The popover's content size is set to match the size of the content view when the content view controller is set. Changes to the content size of the popover will animate while the popover is shown (provided animates is YES).
124 | */
125 | @property NSSize contentSize;
| `- note: mutation of this property is only permitted within the actor
126 |
127 | /* YES if the popover is being shown, NO otherwise. The popover is considered to be shown from the point when -showRelativeToRect:ofView:preferredEdge: is invoked until the popover is closed in response to an invocation of either -close or -performClose:.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:64:25: warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
| `- warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | } else {
66 | popover.close()
AppKit.NSPopover.show:2:22: note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func show(relativeTo positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)}
| |- note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:64:47: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 | } else {
66 | popover.close()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:66:25: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
65 | } else {
66 | popover.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 | }
AppKit.NSPopover.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func close()}
| |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopupButton.swift:50:33: warning: main actor-isolated property 'selectedItem' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 |
48 | @objc
49 | func itemSelected(_ sender: NSPopUpButton) {
| `- note: add '@MainActor' to make instance method 'itemSelected' part of global actor 'MainActor'
50 | if let key = sender.selectedItem?.representedObject as? Key {
| `- warning: main actor-isolated property 'selectedItem' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
51 | parent.selectedKey = key
52 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButton.h:114:52: note: property declared here
112 | - (void)setTitle:(NSString *)string;
113 |
114 | @property (nullable, readonly, strong) NSMenuItem *selectedItem;
| `- note: property declared here
115 | @property (readonly) NSInteger indexOfSelectedItem;
116 | @property (readonly) NSInteger selectedTag;
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopupButton.swift:51:24: warning: main actor-isolated property 'selectedKey' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
3 |
4 | public struct PopupButton<Key: Nameable>: NSViewRepresentable {
5 | @Binding var selectedKey: Key
| `- note: mutation of this property is only permitted within the actor
6 | let keys: [Key]
7 |
:
47 |
48 | @objc
49 | func itemSelected(_ sender: NSPopUpButton) {
| `- note: add '@MainActor' to make instance method 'itemSelected' part of global actor 'MainActor'
50 | if let key = sender.selectedItem?.representedObject as? Key {
51 | parent.selectedKey = key
| `- warning: main actor-isolated property 'selectedKey' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 | }
[40/41] Compiling UsefulThingsSwiftUI PopupButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:43:28: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
41 | self.parent = parent
42 | self.sizePublisher = sizePublisher
43 | self.popover = NSPopover()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 |
45 | super.init()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:62:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
60 | #endif
61 |
62 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
63 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
64 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:47:21: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
45 | super.init()
46 |
47 | popover.delegate = self
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:82:59: note: mutation of this property is only permitted within the actor
80 | /* The delegate of the popover. The delegate is not retained.
81 | */
82 | @property(nullable, weak) IBOutlet id <NSPopoverDelegate> delegate;
| `- note: mutation of this property is only permitted within the actor
83 |
84 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:48:24: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 |
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
SwiftUI.NSHostingController.init:2:35: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingController {
2 | @MainActor @preconcurrency public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:48:61: warning: main actor-isolated property 'content' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
7 | @Binding var isVisible: Bool
8 | let sizePublisher: AnyPublisher<CGSize, Never>
9 | var content: () -> T
| `- note: property declared here
10 |
11 | public init(
:
46 |
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
| `- warning: main actor-isolated property 'content' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:49:21: warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
| `- warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | popover.behavior = .transient
51 | popover.animates = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:121:56: note: mutation of this property is only permitted within the actor
119 | /* The view controller that manages the content of the popover. The default value is nil. You must set the content view controller of the popover to a non-nil value before the popover is shown. Changes to the popover's content view controller while the popover is shown will animate (provided animates is YES).
120 | */
121 | @property(nullable, retain) IBOutlet NSViewController *contentViewController;
| `- note: mutation of this property is only permitted within the actor
122 |
123 | /* The content size of the popover. The popover's content size is set to match the size of the content view when the content view controller is set. Changes to the content size of the popover will animate while the popover is shown (provided animates is YES).
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:50:21: warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
50 | popover.behavior = .transient
| `- warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | popover.animates = false
52 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:113:29: note: mutation of this property is only permitted within the actor
111 | /* The behavior of the popover. The default behavior is NSPopoverBehaviorApplicationDefined. See the declaration of NSPopoverBehavior above for more information about popover behaviors.
112 | */
113 | @property NSPopoverBehavior behavior;
| `- note: mutation of this property is only permitted within the actor
114 |
115 | /* Should the popover be animated when it shows, closes, or appears to transition to a detachable window. This property also controls whether the popover animates when the content view or content size changes. AppKit does not guarantee which behaviors will be animated or that this property will be respected; it is regarded as a hint. The default value is YES.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:51:21: warning: main actor-isolated property 'animates' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
51 | popover.animates = false
| `- warning: main actor-isolated property 'animates' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | sizePublisher
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:117:16: note: mutation of this property is only permitted within the actor
115 | /* Should the popover be animated when it shows, closes, or appears to transition to a detachable window. This property also controls whether the popover animates when the content view or content size changes. AppKit does not guarantee which behaviors will be animated or that this property will be respected; it is regarded as a hint. The default value is YES.
116 | */
117 | @property BOOL animates;
| `- note: mutation of this property is only permitted within the actor
118 |
119 | /* The view controller that manages the content of the popover. The default value is nil. You must set the content view controller of the popover to a non-nil value before the popover is shown. Changes to the popover's content view controller while the popover is shown will animate (provided animates is YES).
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:57:35: warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
55 | .debounce(for: .seconds(0.4), scheduler: RunLoop.main)
56 | .sink { [weak self] newSize in
57 | self?.popover.contentSize = newSize
| `- warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 | .store(in: &cancellables)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:125:18: note: mutation of this property is only permitted within the actor
123 | /* The content size of the popover. The popover's content size is set to match the size of the content view when the content view controller is set. Changes to the content size of the popover will animate while the popover is shown (provided animates is YES).
124 | */
125 | @property NSSize contentSize;
| `- note: mutation of this property is only permitted within the actor
126 |
127 | /* YES if the popover is being shown, NO otherwise. The popover is considered to be shown from the point when -showRelativeToRect:ofView:preferredEdge: is invoked until the popover is closed in response to an invocation of either -close or -performClose:.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:64:25: warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
| `- warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | } else {
66 | popover.close()
AppKit.NSPopover.show:2:22: note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func show(relativeTo positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)}
| |- note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:64:47: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 | } else {
66 | popover.close()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:66:25: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
65 | } else {
66 | popover.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 | }
AppKit.NSPopover.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func close()}
| |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopupButton.swift:50:33: warning: main actor-isolated property 'selectedItem' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 |
48 | @objc
49 | func itemSelected(_ sender: NSPopUpButton) {
| `- note: add '@MainActor' to make instance method 'itemSelected' part of global actor 'MainActor'
50 | if let key = sender.selectedItem?.representedObject as? Key {
| `- warning: main actor-isolated property 'selectedItem' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
51 | parent.selectedKey = key
52 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButton.h:114:52: note: property declared here
112 | - (void)setTitle:(NSString *)string;
113 |
114 | @property (nullable, readonly, strong) NSMenuItem *selectedItem;
| `- note: property declared here
115 | @property (readonly) NSInteger indexOfSelectedItem;
116 | @property (readonly) NSInteger selectedTag;
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopupButton.swift:51:24: warning: main actor-isolated property 'selectedKey' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
3 |
4 | public struct PopupButton<Key: Nameable>: NSViewRepresentable {
5 | @Binding var selectedKey: Key
| `- note: mutation of this property is only permitted within the actor
6 | let keys: [Key]
7 |
:
47 |
48 | @objc
49 | func itemSelected(_ sender: NSPopUpButton) {
| `- note: add '@MainActor' to make instance method 'itemSelected' part of global actor 'MainActor'
50 | if let key = sender.selectedItem?.representedObject as? Key {
51 | parent.selectedKey = key
| `- warning: main actor-isolated property 'selectedKey' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 | }
[41/41] Compiling UsefulThingsSwiftUI Rotation.swift
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:43:28: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
41 | self.parent = parent
42 | self.sizePublisher = sizePublisher
43 | self.popover = NSPopover()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 |
45 | super.init()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:62:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
60 | #endif
61 |
62 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
63 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
64 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:47:21: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
45 | super.init()
46 |
47 | popover.delegate = self
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:82:59: note: mutation of this property is only permitted within the actor
80 | /* The delegate of the popover. The delegate is not retained.
81 | */
82 | @property(nullable, weak) IBOutlet id <NSPopoverDelegate> delegate;
| `- note: mutation of this property is only permitted within the actor
83 |
84 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:48:24: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 |
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
SwiftUI.NSHostingController.init:2:35: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingController {
2 | @MainActor @preconcurrency public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:48:61: warning: main actor-isolated property 'content' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
7 | @Binding var isVisible: Bool
8 | let sizePublisher: AnyPublisher<CGSize, Never>
9 | var content: () -> T
| `- note: property declared here
10 |
11 | public init(
:
46 |
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
| `- warning: main actor-isolated property 'content' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:49:21: warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
47 | popover.delegate = self
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
| `- warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | popover.behavior = .transient
51 | popover.animates = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:121:56: note: mutation of this property is only permitted within the actor
119 | /* The view controller that manages the content of the popover. The default value is nil. You must set the content view controller of the popover to a non-nil value before the popover is shown. Changes to the popover's content view controller while the popover is shown will animate (provided animates is YES).
120 | */
121 | @property(nullable, retain) IBOutlet NSViewController *contentViewController;
| `- note: mutation of this property is only permitted within the actor
122 |
123 | /* The content size of the popover. The popover's content size is set to match the size of the content view when the content view controller is set. Changes to the content size of the popover will animate while the popover is shown (provided animates is YES).
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:50:21: warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | let host = NSHostingController(rootView: parent.content())
49 | popover.contentViewController = host
50 | popover.behavior = .transient
| `- warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | popover.animates = false
52 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:113:29: note: mutation of this property is only permitted within the actor
111 | /* The behavior of the popover. The default behavior is NSPopoverBehaviorApplicationDefined. See the declaration of NSPopoverBehavior above for more information about popover behaviors.
112 | */
113 | @property NSPopoverBehavior behavior;
| `- note: mutation of this property is only permitted within the actor
114 |
115 | /* Should the popover be animated when it shows, closes, or appears to transition to a detachable window. This property also controls whether the popover animates when the content view or content size changes. AppKit does not guarantee which behaviors will be animated or that this property will be respected; it is regarded as a hint. The default value is YES.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:51:21: warning: main actor-isolated property 'animates' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 | popover.contentViewController = host
50 | popover.behavior = .transient
51 | popover.animates = false
| `- warning: main actor-isolated property 'animates' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 |
53 | sizePublisher
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:117:16: note: mutation of this property is only permitted within the actor
115 | /* Should the popover be animated when it shows, closes, or appears to transition to a detachable window. This property also controls whether the popover animates when the content view or content size changes. AppKit does not guarantee which behaviors will be animated or that this property will be respected; it is regarded as a hint. The default value is YES.
116 | */
117 | @property BOOL animates;
| `- note: mutation of this property is only permitted within the actor
118 |
119 | /* The view controller that manages the content of the popover. The default value is nil. You must set the content view controller of the popover to a non-nil value before the popover is shown. Changes to the popover's content view controller while the popover is shown will animate (provided animates is YES).
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:57:35: warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
55 | .debounce(for: .seconds(0.4), scheduler: RunLoop.main)
56 | .sink { [weak self] newSize in
57 | self?.popover.contentSize = newSize
| `- warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 | .store(in: &cancellables)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:125:18: note: mutation of this property is only permitted within the actor
123 | /* The content size of the popover. The popover's content size is set to match the size of the content view when the content view controller is set. Changes to the content size of the popover will animate while the popover is shown (provided animates is YES).
124 | */
125 | @property NSSize contentSize;
| `- note: mutation of this property is only permitted within the actor
126 |
127 | /* YES if the popover is being shown, NO otherwise. The popover is considered to be shown from the point when -showRelativeToRect:ofView:preferredEdge: is invoked until the popover is closed in response to an invocation of either -close or -performClose:.
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:64:25: warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
| `- warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | } else {
66 | popover.close()
AppKit.NSPopover.show:2:22: note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func show(relativeTo positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)}
| |- note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:64:47: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 | } else {
66 | popover.close()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopoverView.swift:66:25: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
62 | func setVisible(_ isVisible: Bool, in view: NSView) {
| `- note: add '@MainActor' to make instance method 'setVisible(_:in:)' part of global actor 'MainActor'
63 | if isVisible {
64 | popover.show(relativeTo: view.bounds, of: view, preferredEdge: .minY)
65 | } else {
66 | popover.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | }
68 | }
AppKit.NSPopover.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func close()}
| |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopupButton.swift:50:33: warning: main actor-isolated property 'selectedItem' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 |
48 | @objc
49 | func itemSelected(_ sender: NSPopUpButton) {
| `- note: add '@MainActor' to make instance method 'itemSelected' part of global actor 'MainActor'
50 | if let key = sender.selectedItem?.representedObject as? Key {
| `- warning: main actor-isolated property 'selectedItem' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
51 | parent.selectedKey = key
52 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButton.h:114:52: note: property declared here
112 | - (void)setTitle:(NSString *)string;
113 |
114 | @property (nullable, readonly, strong) NSMenuItem *selectedItem;
| `- note: property declared here
115 | @property (readonly) NSInteger indexOfSelectedItem;
116 | @property (readonly) NSInteger selectedTag;
/Users/admin/builder/spi-builder-workspace/Sources/UsefulThingsSwiftUI/PopupButton.swift:51:24: warning: main actor-isolated property 'selectedKey' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
3 |
4 | public struct PopupButton<Key: Nameable>: NSViewRepresentable {
5 | @Binding var selectedKey: Key
| `- note: mutation of this property is only permitted within the actor
6 | let keys: [Key]
7 |
:
47 |
48 | @objc
49 | func itemSelected(_ sender: NSPopUpButton) {
| `- note: add '@MainActor' to make instance method 'itemSelected' part of global actor 'MainActor'
50 | if let key = sender.selectedItem?.representedObject as? Key {
51 | parent.selectedKey = key
| `- warning: main actor-isolated property 'selectedKey' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 | }
Build complete! (10.37s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "UsefulThingsSwiftUI",
"name" : "UsefulThingsSwiftUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "UsefulThingsSwiftUI",
"targets" : [
"UsefulThingsSwiftUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "UsefulThingsSwiftUITests",
"module_type" : "SwiftTarget",
"name" : "UsefulThingsSwiftUITests",
"path" : "Tests/UsefulThingsSwiftUITests",
"sources" : [
"UsefulThingsSwiftUITests.swift"
],
"target_dependencies" : [
"UsefulThingsSwiftUI"
],
"type" : "test"
},
{
"c99name" : "UsefulThingsSwiftUI",
"module_type" : "SwiftTarget",
"name" : "UsefulThingsSwiftUI",
"path" : "Sources/UsefulThingsSwiftUI",
"product_memberships" : [
"UsefulThingsSwiftUI"
],
"sources" : [
"Axis.swift",
"Binding+.swift",
"CircularProgressView.swift",
"Color+.swift",
"CornerRadiusWithBorder.swift",
"CursorChangeOnHover.swift",
"DoubleClick.swift",
"FileExport.swift",
"FloatingPanel.swift",
"Glow.swift",
"Grids.swift",
"Image+.swift",
"MenuPicker.swift",
"ModalPresenter/AlertPresenter.swift",
"ModalPresenter/AnyAlertPresenter.swift",
"ModalPresenter/AnyDialogPresenter.swift",
"ModalPresenter/AnyFullScreenCoverPresenter.swift",
"ModalPresenter/AnyMacWindowPresenter.swift",
"ModalPresenter/AnyPopoverPresenter.swift",
"ModalPresenter/AnySheetPresenter.swift",
"ModalPresenter/AsyncModal.swift",
"ModalPresenter/DialogPresenter.swift",
"ModalPresenter/FullScreenCoverPresenter.swift",
"ModalPresenter/MacWindowPresenter.swift",
"ModalPresenter/PopoverPresenter.swift",
"ModalPresenter/SheetPresenter.swift",
"Nameable.swift",
"OpenInWindow.swift",
"PatientTextField.swift",
"PopoverView.swift",
"PopupButton.swift",
"Rotation.swift",
"ScrollViews.swift",
"SizePreference.swift",
"SplashView.swift",
"Stacks.swift",
"Transition.swift",
"VisualEffectView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.