Build Information
Successful build of DSFAppKitBuilder, reference main (d188d6
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 23:29:35 UTC.
Swift 6 data race errors: 126
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
51 | func update() {
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| |- warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'trackingArea' to main actor-isolated instance method 'removeTrackingArea' risks causing data races between main actor-isolated and task-isolated uses
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| |- warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'newTrackingArea' to main actor-isolated instance method 'addTrackingArea' risks causing data races between main actor-isolated and local nonisolated uses
67 | self.trackingArea = newTrackingArea
| `- note: access can happen concurrently
68 | }
69 |
[187/198] Compiling DSFAppKitBuilder ProtectedLock.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:43:28: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
41 | ) {
42 | self.view = view
43 | self.rect = rect ?? view.bounds
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
44 | self.options = options
45 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| `- warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | }
55 |
AppKit.NSView:5:26: note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
6 | @available(macOS 10.5, *)
7 | open var trackingAreas: [NSTrackingArea] { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
:
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| `- warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | self.trackingArea = newTrackingArea
68 | }
AppKit.NSView:3:26: note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
1 | extension NSView {
2 | @available(macOS 10.5, *)
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
51 | func update() {
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| |- warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'trackingArea' to main actor-isolated instance method 'removeTrackingArea' risks causing data races between main actor-isolated and task-isolated uses
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| |- warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'newTrackingArea' to main actor-isolated instance method 'addTrackingArea' risks causing data races between main actor-isolated and local nonisolated uses
67 | self.trackingArea = newTrackingArea
| `- note: access can happen concurrently
68 | }
69 |
[188/198] Compiling DSFAppKitBuilder RangeComponentBinder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:43:28: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
41 | ) {
42 | self.view = view
43 | self.rect = rect ?? view.bounds
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
44 | self.options = options
45 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| `- warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | }
55 |
AppKit.NSView:5:26: note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
6 | @available(macOS 10.5, *)
7 | open var trackingAreas: [NSTrackingArea] { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
:
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| `- warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | self.trackingArea = newTrackingArea
68 | }
AppKit.NSView:3:26: note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
1 | extension NSView {
2 | @available(macOS 10.5, *)
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
51 | func update() {
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| |- warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'trackingArea' to main actor-isolated instance method 'removeTrackingArea' risks causing data races between main actor-isolated and task-isolated uses
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| |- warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'newTrackingArea' to main actor-isolated instance method 'addTrackingArea' risks causing data races between main actor-isolated and local nonisolated uses
67 | self.trackingArea = newTrackingArea
| `- note: access can happen concurrently
68 | }
69 |
[189/198] Compiling DSFAppKitBuilder ScrollableTextView.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:43:28: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
41 | ) {
42 | self.view = view
43 | self.rect = rect ?? view.bounds
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
44 | self.options = options
45 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| `- warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | }
55 |
AppKit.NSView:5:26: note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
6 | @available(macOS 10.5, *)
7 | open var trackingAreas: [NSTrackingArea] { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
:
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| `- warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | self.trackingArea = newTrackingArea
68 | }
AppKit.NSView:3:26: note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
1 | extension NSView {
2 | @available(macOS 10.5, *)
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
51 | func update() {
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| |- warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'trackingArea' to main actor-isolated instance method 'removeTrackingArea' risks causing data races between main actor-isolated and task-isolated uses
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| |- warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'newTrackingArea' to main actor-isolated instance method 'addTrackingArea' risks causing data races between main actor-isolated and local nonisolated uses
67 | self.trackingArea = newTrackingArea
| `- note: access can happen concurrently
68 | }
69 |
[190/198] Compiling DSFAppKitBuilder Shadow.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:43:28: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
41 | ) {
42 | self.view = view
43 | self.rect = rect ?? view.bounds
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
44 | self.options = options
45 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| `- warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | }
55 |
AppKit.NSView:5:26: note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
6 | @available(macOS 10.5, *)
7 | open var trackingAreas: [NSTrackingArea] { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
:
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| `- warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | self.trackingArea = newTrackingArea
68 | }
AppKit.NSView:3:26: note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
1 | extension NSView {
2 | @available(macOS 10.5, *)
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
51 | func update() {
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| |- warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'trackingArea' to main actor-isolated instance method 'removeTrackingArea' risks causing data races between main actor-isolated and task-isolated uses
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| |- warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'newTrackingArea' to main actor-isolated instance method 'addTrackingArea' risks causing data races between main actor-isolated and local nonisolated uses
67 | self.trackingArea = newTrackingArea
| `- note: access can happen concurrently
68 | }
69 |
[191/198] Compiling DSFAppKitBuilder TrackingArea.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:43:28: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
41 | ) {
42 | self.view = view
43 | self.rect = rect ?? view.bounds
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
44 | self.options = options
45 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| `- warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | }
55 |
AppKit.NSView:5:26: note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
6 | @available(macOS 10.5, *)
7 | open var trackingAreas: [NSTrackingArea] { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
:
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| `- warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | self.trackingArea = newTrackingArea
68 | }
AppKit.NSView:3:26: note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
1 | extension NSView {
2 | @available(macOS 10.5, *)
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
51 | func update() {
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| |- warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'trackingArea' to main actor-isolated instance method 'removeTrackingArea' risks causing data races between main actor-isolated and task-isolated uses
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| |- warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'newTrackingArea' to main actor-isolated instance method 'addTrackingArea' risks causing data races between main actor-isolated and local nonisolated uses
67 | self.trackingArea = newTrackingArea
| `- note: access can happen concurrently
68 | }
69 |
[192/198] Compiling DSFAppKitBuilder Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:43:28: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
41 | ) {
42 | self.view = view
43 | self.rect = rect ?? view.bounds
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
44 | self.options = options
45 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| `- warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | }
55 |
AppKit.NSView:5:26: note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
6 | @available(macOS 10.5, *)
7 | open var trackingAreas: [NSTrackingArea] { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
:
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| `- warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | self.trackingArea = newTrackingArea
68 | }
AppKit.NSView:3:26: note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
1 | extension NSView {
2 | @available(macOS 10.5, *)
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
51 | func update() {
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| |- warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'trackingArea' to main actor-isolated instance method 'removeTrackingArea' risks causing data races between main actor-isolated and task-isolated uses
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| |- warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'newTrackingArea' to main actor-isolated instance method 'addTrackingArea' risks causing data races between main actor-isolated and local nonisolated uses
67 | self.trackingArea = newTrackingArea
| `- note: access can happen concurrently
68 | }
69 |
[193/198] Compiling DSFAppKitBuilder VerticalSizingTokenField.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:43:28: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
41 | ) {
42 | self.view = view
43 | self.rect = rect ?? view.bounds
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
44 | self.options = options
45 | }
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| `- warning: call to main actor-isolated instance method 'removeTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | }
55 |
AppKit.NSView:5:26: note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'removeTrackingArea' from outside of its actor context are implicitly asynchronous
6 | @available(macOS 10.5, *)
7 | open var trackingAreas: [NSTrackingArea] { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | - Note: This should be called in your `NSView#updateTrackingAreas()` method.
50 | */
51 | func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
:
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| `- warning: call to main actor-isolated instance method 'addTrackingArea' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
67 | self.trackingArea = newTrackingArea
68 | }
AppKit.NSView:3:26: note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
1 | extension NSView {
2 | @available(macOS 10.5, *)
3 | @MainActor open func addTrackingArea(_ trackingArea: NSTrackingArea)
| `- note: calls to instance method 'addTrackingArea' from outside of its actor context are implicitly asynchronous
4 | @available(macOS 10.5, *)
5 | @MainActor open func removeTrackingArea(_ trackingArea: NSTrackingArea)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:53:15: warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
51 | func update() {
52 | if let trackingArea = self.trackingArea {
53 | self.view?.removeTrackingArea(trackingArea)
| |- warning: sending 'trackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'trackingArea' to main actor-isolated instance method 'removeTrackingArea' risks causing data races between main actor-isolated and task-isolated uses
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/TrackingArea.swift:66:14: warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
64 | )
65 |
66 | self.view?.addTrackingArea(newTrackingArea)
| |- warning: sending 'newTrackingArea' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'newTrackingArea' to main actor-isolated instance method 'addTrackingArea' risks causing data races between main actor-isolated and local nonisolated uses
67 | self.trackingArea = newTrackingArea
| `- note: access can happen concurrently
68 | }
69 |
[194/198] Emitting module DSFAppKitBuilder
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/DSFAppKitBuilder.swift:30:12: warning: var 'DSFAppKitBuilderShowDebuggingOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// DSFAppKitBuilder global debug logging
30 | public var DSFAppKitBuilderShowDebuggingOutput: Bool = false
| |- warning: var 'DSFAppKitBuilderShowDebuggingOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'DSFAppKitBuilderShowDebuggingOutput' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'DSFAppKitBuilderShowDebuggingOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/binders/ElementBinder.swift:62:52: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
60 | @inlinable var view: NSView? { return self.element?.view() }
61 | /// Returns the element's bounds
62 | @inlinable var frame: CGRect? { return self.view?.frame }
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
63 | /// Returns the element's frame
64 | @inlinable var bounds: CGRect? { return self.view?.bounds }
AppKit.NSView:60:25: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/binders/ElementBinder.swift:64:53: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
62 | @inlinable var frame: CGRect? { return self.view?.frame }
63 | /// Returns the element's frame
64 | @inlinable var bounds: CGRect? { return self.view?.bounds }
| `- 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 |
66 | /// Make the element the first responder for the window (ie. give it focus) if it can be focussed
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/binders/ElementBinder.swift:68:46: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | /// Make the element the first responder for the window (ie. give it focus) if it can be focussed
67 | @inlinable func makeFirstResponder() {
| `- note: add '@MainActor' to make instance method 'makeFirstResponder()' part of global actor 'MainActor'
68 | if let view = self.view, let window = view.window {
| `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
69 | window.makeFirstResponder(view)
70 | }
AppKit.NSView:4:30: note: property declared here
2 | public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/binders/ElementBinder.swift:69:11: warning: call to main actor-isolated instance method 'makeFirstResponder' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | /// Make the element the first responder for the window (ie. give it focus) if it can be focussed
67 | @inlinable func makeFirstResponder() {
| `- note: add '@MainActor' to make instance method 'makeFirstResponder()' part of global actor 'MainActor'
68 | if let view = self.view, let window = view.window {
69 | window.makeFirstResponder(view)
| `- warning: call to main actor-isolated instance method 'makeFirstResponder' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | }
71 | }
AppKit.NSWindow:92:26: note: calls to instance method 'makeFirstResponder' from outside of its actor context are implicitly asynchronous
90 | open var preservesContentDuringLiveResize: Bool { get set }
91 | open func update()
92 | @MainActor open func makeFirstResponder(_ responder: NSResponder?) -> Bool
| `- note: calls to instance method 'makeFirstResponder' from outside of its actor context are implicitly asynchronous
93 | weak open var firstResponder: NSResponder? { get }
94 | open var resizeFlags: NSEvent.ModifierFlags { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/AutoLayout.swift:92:15: warning: call to main actor-isolated instance method 'setContentCompressionResistancePriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
89 | ///
90 | /// See: [documentation](https://developer.apple.com/documentation/appkit/nsview/1524974-setcontentcompressionresistancep)
91 | @inlinable func horizontalCompressionResistancePriority(_ priority: NSLayoutConstraint.Priority) -> Self {
| `- note: add '@MainActor' to make instance method 'horizontalCompressionResistancePriority' part of global actor 'MainActor'
92 | self.view().setContentCompressionResistancePriority(priority, for: .horizontal)
| `- warning: call to main actor-isolated instance method 'setContentCompressionResistancePriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
93 | return self
94 | }
AppKit.NSView:40:26: note: calls to instance method 'setContentCompressionResistancePriority(_:for:)' from outside of its actor context are implicitly asynchronous
38 | open func contentCompressionResistancePriorityForOrientation(_ orientation: NSLayoutConstraint.Orientation) -> NSLayoutConstraint.Priority
39 | @available(macOS 10.7, *)
40 | @MainActor open func setContentCompressionResistancePriority(_ priority: NSLayoutConstraint.Priority, for orientation: NSLayoutConstraint.Orientation)
| `- note: calls to instance method 'setContentCompressionResistancePriority(_:for:)' from outside of its actor context are implicitly asynchronous
41 | @available(macOS 10.7, *)
42 | @available(swift, obsoleted: 3, renamed: "setContentCompressionResistancePriority(_:for:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/AutoLayout.swift:99:15: warning: call to main actor-isolated instance method 'setContentCompressionResistancePriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
96 | ///
97 | /// See: [documentation](https://developer.apple.com/documentation/appkit/nsview/1524974-setcontentcompressionresistancep)
98 | @inlinable func verticalCompressionResistancePriority(_ priority: NSLayoutConstraint.Priority) -> Self {
| `- note: add '@MainActor' to make instance method 'verticalCompressionResistancePriority' part of global actor 'MainActor'
99 | self.view().setContentCompressionResistancePriority(priority, for: .vertical)
| `- warning: call to main actor-isolated instance method 'setContentCompressionResistancePriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | return self
101 | }
AppKit.NSView:40:26: note: calls to instance method 'setContentCompressionResistancePriority(_:for:)' from outside of its actor context are implicitly asynchronous
38 | open func contentCompressionResistancePriorityForOrientation(_ orientation: NSLayoutConstraint.Orientation) -> NSLayoutConstraint.Priority
39 | @available(macOS 10.7, *)
40 | @MainActor open func setContentCompressionResistancePriority(_ priority: NSLayoutConstraint.Priority, for orientation: NSLayoutConstraint.Orientation)
| `- note: calls to instance method 'setContentCompressionResistancePriority(_:for:)' from outside of its actor context are implicitly asynchronous
41 | @available(macOS 10.7, *)
42 | @available(swift, obsoleted: 3, renamed: "setContentCompressionResistancePriority(_:for:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/AutoLayout.swift:107:15: warning: call to main actor-isolated instance method 'setContentHuggingPriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | ///
105 | /// See: [documentation](https://developer.apple.com/documentation/appkit/nsview/1526937-setcontenthuggingpriority)
106 | @inlinable func horizontalHuggingPriority(_ priority: NSLayoutConstraint.Priority) -> Self {
| `- note: add '@MainActor' to make instance method 'horizontalHuggingPriority' part of global actor 'MainActor'
107 | self.view().setContentHuggingPriority(priority, for: .horizontal)
| `- warning: call to main actor-isolated instance method 'setContentHuggingPriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | return self
109 | }
AppKit.NSView:30:15: note: calls to instance method 'setContentHuggingPriority(_:for:)' from outside of its actor context are implicitly asynchronous
28 | open func contentHuggingPriorityForOrientation(_ orientation: NSLayoutConstraint.Orientation) -> NSLayoutConstraint.Priority
29 | @available(macOS 10.7, *)
30 | open func setContentHuggingPriority(_ priority: NSLayoutConstraint.Priority, for orientation: NSLayoutConstraint.Orientation)
| `- note: calls to instance method 'setContentHuggingPriority(_:for:)' from outside of its actor context are implicitly asynchronous
31 | @available(macOS 10.7, *)
32 | @available(swift, obsoleted: 3, renamed: "setContentHuggingPriority(_:for:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/AutoLayout.swift:112:15: warning: call to main actor-isolated instance method 'setContentHuggingPriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
109 | }
110 |
111 | @inlinable func horizontalHuggingPriority(_ priority: Float) -> Self {
| `- note: add '@MainActor' to make instance method 'horizontalHuggingPriority' part of global actor 'MainActor'
112 | self.view().setContentHuggingPriority(NSLayoutConstraint.Priority(priority), for: .horizontal)
| `- warning: call to main actor-isolated instance method 'setContentHuggingPriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | return self
114 | }
AppKit.NSView:30:15: note: calls to instance method 'setContentHuggingPriority(_:for:)' from outside of its actor context are implicitly asynchronous
28 | open func contentHuggingPriorityForOrientation(_ orientation: NSLayoutConstraint.Orientation) -> NSLayoutConstraint.Priority
29 | @available(macOS 10.7, *)
30 | open func setContentHuggingPriority(_ priority: NSLayoutConstraint.Priority, for orientation: NSLayoutConstraint.Orientation)
| `- note: calls to instance method 'setContentHuggingPriority(_:for:)' from outside of its actor context are implicitly asynchronous
31 | @available(macOS 10.7, *)
32 | @available(swift, obsoleted: 3, renamed: "setContentHuggingPriority(_:for:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/AutoLayout.swift:120:15: warning: call to main actor-isolated instance method 'setContentHuggingPriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | ///
118 | /// See: [documentation](https://developer.apple.com/documentation/appkit/nsview/1526937-setcontenthuggingpriority)
119 | @inlinable func verticalHuggingPriority(_ priority: NSLayoutConstraint.Priority) -> Self {
| `- note: add '@MainActor' to make instance method 'verticalHuggingPriority' part of global actor 'MainActor'
120 | self.view().setContentHuggingPriority(priority, for: .vertical)
| `- warning: call to main actor-isolated instance method 'setContentHuggingPriority(_:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
121 | return self
122 | }
AppKit.NSView:30:15: note: calls to instance method 'setContentHuggingPriority(_:for:)' from outside of its actor context are implicitly asynchronous
28 | open func contentHuggingPriorityForOrientation(_ orientation: NSLayoutConstraint.Orientation) -> NSLayoutConstraint.Priority
29 | @available(macOS 10.7, *)
30 | open func setContentHuggingPriority(_ priority: NSLayoutConstraint.Priority, for orientation: NSLayoutConstraint.Orientation)
| `- note: calls to instance method 'setContentHuggingPriority(_:for:)' from outside of its actor context are implicitly asynchronous
31 | @available(macOS 10.7, *)
32 | @available(swift, obsoleted: 3, renamed: "setContentHuggingPriority(_:for:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Box.swift:101:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
99 |
100 | // Private
101 | private let boxView = NSBox()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
102 | private var boxContent: NSView { return boxView.contentView! }
103 | public override func view() -> NSView { return self.boxView }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ButtonStyle.swift:53:13: warning: static property 'noBorder' is not concurrency-safe because non-'Sendable' type 'Button.Styling.Unbezeled' may have shared mutable state; this is an error in the Swift 6 language mode
51 | public extension Button.Styling {
52 | /// Remove any bezel/border from the button
53 | static let noBorder = Unbezeled()
| |- warning: static property 'noBorder' is not concurrency-safe because non-'Sendable' type 'Button.Styling.Unbezeled' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noBorder' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// A multiline style for a label
56 | struct Unbezeled: DSFAppKitBuilder.ButtonStyle {
| `- note: consider making struct 'Unbezeled' conform to the 'Sendable' protocol
57 | @discardableResult public func apply(_ buttonElement: Button) -> Button {
58 | buttonElement
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/CheckBox.swift:69:13: warning: let '__state1' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
67 | import SwiftUI
68 | import DSFValueBinders
69 | private let __state1 = ValueBinder<Bool>(true)
| `- warning: let '__state1' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
70 | @available(macOS 10.15, *)
71 | struct CheckboxPreviews: PreviewProvider {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/CheckBox.swift:68:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
66 | #if DEBUG && canImport(SwiftUI)
67 | import SwiftUI
68 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
69 | private let __state1 = ValueBinder<Bool>(true)
| |- note: annotate '__state1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 | @available(macOS 10.15, *)
71 | struct CheckboxPreviews: PreviewProvider {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ComboBox.swift:95:18: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
93 |
94 | override public func view() -> NSView { return self.combo }
95 | fileprivate let combo = NSComboBox()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
96 | fileprivate let content: ValueBinder<[String]>
97 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ComboButton.swift:62:19: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
60 |
61 | #if swift(>=5.7)
62 | private lazy var comboButton: ComboButtonWrapper = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
63 | if #available(macOS 13, *) {
64 | return NSComboButton()
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ComboButton.swift:168:13: warning: let 'menu1' is not concurrency-safe because non-'Sendable' type 'NSMenu' may have shared mutable state; this is an error in the Swift 6 language mode
166 | #if DEBUG && canImport(SwiftUI)
167 | import DSFMenuBuilder
168 | private let menu1: NSMenu = NSMenu {
| |- warning: let 'menu1' is not concurrency-safe because non-'Sendable' type 'NSMenu' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'menu1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | MenuItem("one")
170 | .onAction { Swift.print("one") }
AppKit.NSMenu:1:12: note: class 'NSMenu' does not conform to the 'Sendable' protocol
1 | open class NSMenu : NSObject, NSCopying, NSCoding, NSUserInterfaceItemIdentification, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
| `- note: class 'NSMenu' does not conform to the 'Sendable' protocol
2 | public init(title: String)
3 | public init(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ComboButton.swift:172:13: warning: let 'menu2' is not concurrency-safe because non-'Sendable' type 'NSMenu' may have shared mutable state; this is an error in the Swift 6 language mode
170 | .onAction { Swift.print("one") }
171 | }
172 | private let menu2: NSMenu = NSMenu {
| |- warning: let 'menu2' is not concurrency-safe because non-'Sendable' type 'NSMenu' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'menu2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
173 | MenuItem("two")
174 | .onAction { Swift.print("two") }
AppKit.NSMenu:1:12: note: class 'NSMenu' does not conform to the 'Sendable' protocol
1 | open class NSMenu : NSObject, NSCopying, NSCoding, NSUserInterfaceItemIdentification, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
| `- note: class 'NSMenu' does not conform to the 'Sendable' protocol
2 | public init(title: String)
3 | public init(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/DatePicker.swift:114:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | private let picker = NSDatePicker()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
115 | public override func view() -> NSView { return self.picker }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/DatePicker.swift:231:5: warning: let '__previewDate' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Date>' may have shared mutable state; this is an error in the Swift 6 language mode
229 |
230 | #if DEBUG && canImport(SwiftUI)
231 | let __previewDate = ValueBinder(Date())
| `- warning: let '__previewDate' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Date>' may have shared mutable state; this is an error in the Swift 6 language mode
232 | import SwiftUI
233 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/DatePicker.swift:29:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
27 | import Foundation
28 | import AppKit
29 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
30 |
31 | /// A date picker element
:
229 |
230 | #if DEBUG && canImport(SwiftUI)
231 | let __previewDate = ValueBinder(Date())
| |- note: annotate '__previewDate' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
232 | import SwiftUI
233 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/DynamicElement.swift:108:13: warning: let '__elementBinder' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Element?>' may have shared mutable state; this is an error in the Swift 6 language mode
106 | import DSFMenuBuilder
107 |
108 | private let __elementBinder = ValueBinder<Element?>(nil)
| `- warning: let '__elementBinder' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Element?>' may have shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | import SwiftUI
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/DynamicElement.swift:29:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
27 | import Foundation
28 | import AppKit.NSView
29 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
30 |
31 | /// An element that provides a dynamically swappable `Element` via a ValueBinder
:
106 | import DSFMenuBuilder
107 |
108 | private let __elementBinder = ValueBinder<Element?>(nil)
| |- note: annotate '__elementBinder' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 |
110 | import SwiftUI
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/EmptyView.swift:34:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
32 | // Private
33 |
34 | private let emptyView: NSView = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
35 | let v = NSView()
36 | v.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/FlatButton.swift:41:21: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'FlatButton.Style' may have shared mutable state; this is an error in the Swift 6 language mode
32 | public class FlatButton: Button {
33 | /// The style object for this button
34 | public struct Style {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
35 | public let borderWidth: CGFloat
36 | public let color: NSColor
:
39 | public let font: NSFont?
40 |
41 | static public let standard = Style()
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'FlatButton.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Flow.swift:111:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
109 |
110 | // Private
111 | private let collectionView = FlowCollectionView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
112 | private let elements: [Element]
113 | private let content: [NSView]
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Form.swift:82:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
80 | }
81 |
82 | private let gridView: NSGridView = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
83 | let v = NSGridView()
84 | v.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Grid.swift:99:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
97 | }
98 |
99 | private let gridView = NSGridView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
100 | private var hiddenRowsBinder: ValueBinder<NSSet>?
101 | private var hiddenColumnsBinder: ValueBinder<NSSet>?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Grid.swift:105:21: warning: static property 'EmptyCellInstance' is not concurrency-safe because non-'Sendable' type 'Grid.EmptyCellObject' may have shared mutable state; this is an error in the Swift 6 language mode
103 |
104 | // Empty View placeholder
105 | private static let EmptyCellInstance = EmptyCellObject()
| |- warning: static property 'EmptyCellInstance' is not concurrency-safe because non-'Sendable' type 'Grid.EmptyCellObject' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'EmptyCellInstance' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 | private class EmptyCellObject: Element {
| `- note: class 'EmptyCellObject' does not conform to the 'Sendable' protocol
107 | override public func view() -> NSView {
108 | return NSGridCell.emptyContentView
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Image.swift:81:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
79 | public override func view() -> NSView { self.contentView }
80 |
81 | private let contentView: NSView = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
82 | let v = NSView()
83 | v.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ImageView.swift:62:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
60 |
61 | // Privates
62 | private let imageView = NSImageView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
63 | public override func view() -> NSView { return self.imageView }
64 | private var imageBinder: ValueBinder<NSImage>?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Label.swift:104:6: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
102 |
103 | // Privates
104 | let label = PaddableTextField()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
105 | override public func view() -> NSView { return self.label }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/LabelStyle.swift:50:13: warning: static property 'multiline' is not concurrency-safe because non-'Sendable' type 'Label.Styling.Multiline' may have shared mutable state; this is an error in the Swift 6 language mode
48 | public extension Label.Styling {
49 | /// Apply multiline wrapping for the label
50 | static let multiline = Multiline()
| |- warning: static property 'multiline' is not concurrency-safe because non-'Sendable' type 'Label.Styling.Multiline' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'multiline' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | static let truncatingTail = TruncatingTail()
52 | static let truncatingHead = TruncatingHead()
:
54 |
55 | /// A multiline style for a label
56 | struct Multiline: DSFAppKitBuilder.LabelStyle {
| `- note: consider making struct 'Multiline' conform to the 'Sendable' protocol
57 | public init(maximumNumberOfLines: Int = 0) {
58 | self.maximumNumberOfLines = maximumNumberOfLines
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/LabelStyle.swift:51:13: warning: static property 'truncatingTail' is not concurrency-safe because non-'Sendable' type 'Label.Styling.TruncatingTail' may have shared mutable state; this is an error in the Swift 6 language mode
49 | /// Apply multiline wrapping for the label
50 | static let multiline = Multiline()
51 | static let truncatingTail = TruncatingTail()
| |- warning: static property 'truncatingTail' is not concurrency-safe because non-'Sendable' type 'Label.Styling.TruncatingTail' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'truncatingTail' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | static let truncatingHead = TruncatingHead()
53 | static let truncatingMiddle = TruncatingMiddle()
:
84 |
85 | /// A single-line tail truncation style
86 | struct TruncatingTail: DSFAppKitBuilder.LabelStyle {
| `- note: consider making struct 'TruncatingTail' conform to the 'Sendable' protocol
87 | let truncator = Truncating(.byTruncatingTail)
88 | @discardableResult public func apply(_ labelElement: Label) -> Label {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/LabelStyle.swift:52:13: warning: static property 'truncatingHead' is not concurrency-safe because non-'Sendable' type 'Label.Styling.TruncatingHead' may have shared mutable state; this is an error in the Swift 6 language mode
50 | static let multiline = Multiline()
51 | static let truncatingTail = TruncatingTail()
52 | static let truncatingHead = TruncatingHead()
| |- warning: static property 'truncatingHead' is not concurrency-safe because non-'Sendable' type 'Label.Styling.TruncatingHead' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'truncatingHead' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | static let truncatingMiddle = TruncatingMiddle()
54 |
:
92 |
93 | /// A single-line head truncation style
94 | struct TruncatingHead: DSFAppKitBuilder.LabelStyle {
| `- note: consider making struct 'TruncatingHead' conform to the 'Sendable' protocol
95 | let truncator = Truncating(.byTruncatingHead)
96 | @discardableResult public func apply(_ labelElement: Label) -> Label {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/LabelStyle.swift:53:13: warning: static property 'truncatingMiddle' is not concurrency-safe because non-'Sendable' type 'Label.Styling.TruncatingMiddle' may have shared mutable state; this is an error in the Swift 6 language mode
51 | static let truncatingTail = TruncatingTail()
52 | static let truncatingHead = TruncatingHead()
53 | static let truncatingMiddle = TruncatingMiddle()
| |- warning: static property 'truncatingMiddle' is not concurrency-safe because non-'Sendable' type 'Label.Styling.TruncatingMiddle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'truncatingMiddle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// A multiline style for a label
:
100 |
101 | /// A single-line middle truncation style
102 | struct TruncatingMiddle: DSFAppKitBuilder.LabelStyle {
| `- note: consider making struct 'TruncatingMiddle' conform to the 'Sendable' protocol
103 | let truncator = Truncating(.byTruncatingMiddle)
104 | @discardableResult public func apply(_ labelElement: Label) -> Label {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/LevelIndicator.swift:93:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
91 |
92 | // Private
93 | private let levelIndicator = NSLevelIndicator()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
94 | override public func view() -> NSView { return self.levelIndicator }
95 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/List.swift:100:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
98 |
99 | public override func view() -> NSView { return self.stack }
100 | private let stack: NSStackView = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
101 | let v = NSStackView()
102 | v.translatesAutoresizingMaskIntoConstraints = false
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/List.swift:194:13: warning: let '__debugItems' is not concurrency-safe because non-'Sendable' type 'ValueBinder<[Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
192 | import SwiftUI
193 |
194 | private let __debugItems = ValueBinder([0,1,2,3,4,5,6,7,8,9])
| `- warning: let '__debugItems' is not concurrency-safe because non-'Sendable' type 'ValueBinder<[Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
195 |
196 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/List.swift:28:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
26 |
27 | import AppKit
28 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
29 |
30 | /// A 'list' style element which builds its content from an array of elements and dynamically
:
192 | import SwiftUI
193 |
194 | private let __debugItems = ValueBinder([0,1,2,3,4,5,6,7,8,9])
| |- note: annotate '__debugItems' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
195 |
196 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/OneOf.swift:93:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
91 | override public func view() -> NSView { self.rootView }
92 |
93 | private let rootView = NSView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
94 | private let childViews: [NSView]
95 | private var visibleIndexBinder: ValueBinder<Int>?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/OneOf.swift:136:5: warning: let '__visible' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
134 | import SwiftUI
135 |
136 | let __visible = ValueBinder(0)
| `- warning: let '__visible' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
137 | @available(macOS 10.15, *)
138 | struct OneOfViewPreviews: PreviewProvider {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/OneOf.swift:28:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
26 |
27 | import AppKit
28 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
29 | import Foundation
30 |
:
134 | import SwiftUI
135 |
136 | let __visible = ValueBinder(0)
| |- note: annotate '__visible' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
137 | @available(macOS 10.15, *)
138 | struct OneOfViewPreviews: PreviewProvider {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Pager.swift:104:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
102 |
103 | // Private
104 | private let pagerControl = DSFPagerControl()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
105 | override public func view() -> NSView { return self.pagerControl }
106 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/PathControl.swift:70:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
68 |
69 | // Private
70 | private let pathControl = NSPathControl()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
71 | override public func view() -> NSView { return self.pathControl }
72 | private var actionCallback: ((URL?) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/PlainTextView.swift:82:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
80 | }
81 |
82 | private let contentView = ScrollableTextView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
83 | private let textBinder: ValueBinder<String>
84 | private var wrapsBinder: ValueBinder<Bool>?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/PlainTextView.swift:189:13: warning: let '_textValue' is not concurrency-safe because non-'Sendable' type 'ValueBinder<String>' may have shared mutable state; this is an error in the Swift 6 language mode
187 | import SwiftUI
188 |
189 | private let _textValue = ValueBinder(__dummyText)
| `- warning: let '_textValue' is not concurrency-safe because non-'Sendable' type 'ValueBinder<String>' may have shared mutable state; this is an error in the Swift 6 language mode
190 |
191 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/PlainTextView.swift:30:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
28 | import Foundation
29 |
30 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
31 |
32 | public class PlainTextView: Element {
:
187 | import SwiftUI
188 |
189 | private let _textValue = ValueBinder(__dummyText)
| |- note: annotate '_textValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
190 |
191 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/PopupButton.swift:100:18: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
98 |
99 | public override func view() -> NSView { return self.popupButton }
100 | fileprivate let popupButton = NSPopUpButton()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
101 | private let content: [AnyMenuItem]
102 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/PopupButton.swift:208:20: warning: static property 'SystemGearImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
206 | }
207 |
208 | public static let SystemGearImage = NSImage(named: NSImage.actionTemplateName)!
| |- warning: static property 'SystemGearImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'SystemGearImage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
209 | }
210 |
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ProgressBar.swift:80:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
78 | public override func view() -> NSView { return self.progress }
79 |
80 | private let progress = NSProgressIndicator()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
81 | private var progressBinder: ValueBinder<Double>?
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/RadioGroup.swift:249:13: warning: let '__enabler' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
247 | import SwiftUI
248 |
249 | private let __enabler = ValueBinder(true)
| `- warning: let '__enabler' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
250 | private let __elementDisabler = ValueBinder(NSSet(array: [1]))
251 | private let __enabler2 = ValueBinder(true)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/RadioGroup.swift:28:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
26 |
27 | import AppKit
28 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
29 |
30 | /// A group of managed radio buttons
:
247 | import SwiftUI
248 |
249 | private let __enabler = ValueBinder(true)
| |- note: annotate '__enabler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
250 | private let __elementDisabler = ValueBinder(NSSet(array: [1]))
251 | private let __enabler2 = ValueBinder(true)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/RadioGroup.swift:250:13: warning: let '__elementDisabler' is not concurrency-safe because non-'Sendable' type 'ValueBinder<NSSet>' may have shared mutable state; this is an error in the Swift 6 language mode
248 |
249 | private let __enabler = ValueBinder(true)
250 | private let __elementDisabler = ValueBinder(NSSet(array: [1]))
| |- warning: let '__elementDisabler' is not concurrency-safe because non-'Sendable' type 'ValueBinder<NSSet>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '__elementDisabler' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
251 | private let __enabler2 = ValueBinder(true)
252 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/RadioGroup.swift:251:13: warning: let '__enabler2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
249 | private let __enabler = ValueBinder(true)
250 | private let __elementDisabler = ValueBinder(NSSet(array: [1]))
251 | private let __enabler2 = ValueBinder(true)
| |- warning: let '__enabler2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '__enabler2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
252 |
253 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ScrollView.swift:94:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
92 |
93 | // Private
94 | internal let scrollView = NSScrollView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
95 | private let documentContent: Element
96 | public override func view() -> NSView { return self.scrollView }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/SecureTextField.swift:84:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
82 | }
83 |
84 | private let secureTextField = PaddableSecureTextField()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
85 | public override func view() -> NSView { return self.secureTextField }
86 | private var secureTextBinder: ValueBinder<String>?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Segmented.swift:82:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
80 | override public func view() -> NSView { return self.segmented }
81 |
82 | private let segmented = NSSegmentedControl()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
83 | private let content: [Segment]
84 | private var actionCallback: ((NSSet) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Shape.swift:74:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
72 |
73 | override public func view() -> NSView { return self.content }
74 | private let content = ShapeView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
75 |
76 | private var _path: ValueBinder<CGPath>?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Slider.swift:82:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
80 |
81 | // Private
82 | private let slider = NSSlider()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
83 | override public func view() -> NSView { return self.slider }
84 | private var valueBinder: ValueBinder<Double>?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Slider.swift:143:13: warning: let '_value1' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
141 | import SwiftUI
142 |
143 | private let _value1 = ValueBinder(40.0)
| `- warning: let '_value1' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
144 | private let _value2 = ValueBinder(86.0)
145 | private let _value3 = ValueBinder(10.0)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Slider.swift:28:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
26 |
27 | import AppKit.NSSlider
28 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
29 |
30 | /// A slider control
:
141 | import SwiftUI
142 |
143 | private let _value1 = ValueBinder(40.0)
| |- note: annotate '_value1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | private let _value2 = ValueBinder(86.0)
145 | private let _value3 = ValueBinder(10.0)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Slider.swift:144:13: warning: let '_value2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
142 |
143 | private let _value1 = ValueBinder(40.0)
144 | private let _value2 = ValueBinder(86.0)
| |- warning: let '_value2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_value2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 | private let _value3 = ValueBinder(10.0)
146 | private let _numberFormatter: NumberFormatter = {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Slider.swift:145:13: warning: let '_value3' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
143 | private let _value1 = ValueBinder(40.0)
144 | private let _value2 = ValueBinder(86.0)
145 | private let _value3 = ValueBinder(10.0)
| |- warning: let '_value3' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_value3' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
146 | private let _numberFormatter: NumberFormatter = {
147 | let n = NumberFormatter()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/SplitView.swift:89:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
87 | }
88 |
89 | private let controller = NSSplitViewController(nibName: nil, bundle: nil)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
90 | private lazy var splitView: NSSplitView = {
91 | controller.loadView()
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/SplitView.swift:90:19: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
88 |
89 | private let controller = NSSplitViewController(nibName: nil, bundle: nil)
90 | private lazy var splitView: NSSplitView = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
91 | controller.loadView()
92 | return controller.splitView
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Stack.swift:76:6: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
74 | public override func childElements() -> [Element] { return self.content }
75 |
76 | let stack = NSStackView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
77 | private let content: [Element]
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Stepper.swift:65:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
63 |
64 | // Private
65 | private let stepper = NSStepper()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
66 | override public func view() -> NSView { return self.stepper }
67 | private var valueBinder: ValueBinder<Double>?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:128:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
126 |
127 | // private
128 | private let stepper = DSFStepperView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
129 | public override func view() -> NSView { return self.stepper }
130 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:249:10: warning: var 'embedded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
247 | #if DEBUG && canImport(SwiftUI)
248 | import SwiftUI
249 | weak var embedded: DSFStepperView?
| |- warning: var 'embedded' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'embedded' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'embedded' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
250 |
251 | let value = ValueBinder<Double?>(15.0)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:251:5: warning: let 'value' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double?>' may have shared mutable state; this is an error in the Swift 6 language mode
249 | weak var embedded: DSFStepperView?
250 |
251 | let value = ValueBinder<Double?>(15.0)
| `- warning: let 'value' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double?>' may have shared mutable state; this is an error in the Swift 6 language mode
252 | let value2 = ValueBinder<Double?>(nil)
253 | let style2: StepperView.Style = {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:28:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
26 |
27 | import AppKit.NSStepper
28 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
29 | import DSFStepperView
30 |
:
249 | weak var embedded: DSFStepperView?
250 |
251 | let value = ValueBinder<Double?>(15.0)
| |- note: annotate 'value' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
252 | let value2 = ValueBinder<Double?>(nil)
253 | let style2: StepperView.Style = {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:252:5: warning: let 'value2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double?>' may have shared mutable state; this is an error in the Swift 6 language mode
250 |
251 | let value = ValueBinder<Double?>(15.0)
252 | let value2 = ValueBinder<Double?>(nil)
| |- warning: let 'value2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double?>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'value2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
253 | let style2: StepperView.Style = {
254 | let n = NumberFormatter()
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:253:5: warning: let 'style2' is not concurrency-safe because non-'Sendable' type 'StepperView.Style' may have shared mutable state; this is an error in the Swift 6 language mode
43 | public class StepperView: Element {
44 | /// The styling for the stepper
45 | public struct Style {
| `- note: consider making struct 'Style' conform to the 'Sendable' protocol
46 | /// The font
47 | public let font: AKBFont?
:
251 | let value = ValueBinder<Double?>(15.0)
252 | let value2 = ValueBinder<Double?>(nil)
253 | let style2: StepperView.Style = {
| |- warning: let 'style2' is not concurrency-safe because non-'Sendable' type 'StepperView.Style' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'style2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
254 | let n = NumberFormatter()
255 | n.minimumFractionDigits = 1
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:67:6: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
65 | // Private
66 |
67 | let switchView = NSSwitch()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
68 | public override func view() -> NSView { return self.switchView }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:126:13: warning: let '__switchState' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
124 | import SwiftUI
125 |
126 | private let __switchState = ValueBinder<Bool>(true)
| `- warning: let '__switchState' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
127 | private let __switchState2 = ValueBinder<Bool>(false)
128 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:28:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
26 |
27 | import AppKit
28 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
29 |
30 | /// A switch element
:
124 | import SwiftUI
125 |
126 | private let __switchState = ValueBinder<Bool>(true)
| |- note: annotate '__switchState' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | private let __switchState2 = ValueBinder<Bool>(false)
128 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:127:13: warning: let '__switchState2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
125 |
126 | private let __switchState = ValueBinder<Bool>(true)
127 | private let __switchState2 = ValueBinder<Bool>(false)
| |- warning: let '__switchState2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '__switchState2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:125:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
123 |
124 | // Private
125 | private let tabView = NSTabView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
126 | public override func view() -> NSView { return self.tabView }
127 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:134:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
132 | }
133 |
134 | private let toggleButton = DSFToggleButton()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
135 | public override func view() -> NSView { return self.toggleButton }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:235:13: warning: let '__v1' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Toggle.State>' may have shared mutable state; this is an error in the Swift 6 language mode
233 | import SwiftUI
234 |
235 | private let __v1 = ValueBinder<Toggle.State>(.off)
| `- warning: let '__v1' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Toggle.State>' may have shared mutable state; this is an error in the Swift 6 language mode
236 | private let __v2 = ValueBinder<Toggle.State>(.on)
237 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:29:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
27 | import AppKit
28 | import DSFToggleButton
29 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
30 | import DSFAppearanceManager
31 |
:
233 | import SwiftUI
234 |
235 | private let __v1 = ValueBinder<Toggle.State>(.off)
| |- note: annotate '__v1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
236 | private let __v2 = ValueBinder<Toggle.State>(.on)
237 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:236:13: warning: let '__v2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Toggle.State>' may have shared mutable state; this is an error in the Swift 6 language mode
234 |
235 | private let __v1 = ValueBinder<Toggle.State>(.off)
236 | private let __v2 = ValueBinder<Toggle.State>(.on)
| |- warning: let '__v2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Toggle.State>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '__v2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
237 |
238 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/View+SwiftUI.swift:52:6: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
50 |
51 | // Private
52 | let containerView = NSView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
53 | public override func view() -> NSView { return containerView }
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:167:16: warning: call to main actor-isolated instance method 'miniaturize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
164 | public extension Window {
165 | /// Minimise a window to the dock
166 | @inlinable func minimise() {
| `- note: add '@MainActor' to make instance method 'minimise()' part of global actor 'MainActor'
167 | self.window?.miniaturize(self)
| `- warning: call to main actor-isolated instance method 'miniaturize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | }
169 |
AppKit.NSWindow:99:15: note: calls to instance method 'miniaturize' from outside of its actor context are implicitly asynchronous
97 | @available(swift, obsoleted: 3, renamed: "isReleasedWhenClosed")
98 | open var releasedWhenClosed: Bool { get set }
99 | open func miniaturize(_ sender: Any?)
| `- note: calls to instance method 'miniaturize' from outside of its actor context are implicitly asynchronous
100 | open func deminiaturize(_ sender: Any?)
101 | open var isZoomed: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:172:16: warning: call to main actor-isolated instance method 'deminiaturize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 |
170 | /// Deminiaturize a window from the dock
171 | @inlinable func deminiaturize() {
| `- note: add '@MainActor' to make instance method 'deminiaturize()' part of global actor 'MainActor'
172 | self.window?.deminiaturize(self)
| `- warning: call to main actor-isolated instance method 'deminiaturize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | }
174 |
AppKit.NSWindow:100:15: note: calls to instance method 'deminiaturize' from outside of its actor context are implicitly asynchronous
98 | open var releasedWhenClosed: Bool { get set }
99 | open func miniaturize(_ sender: Any?)
100 | open func deminiaturize(_ sender: Any?)
| `- note: calls to instance method 'deminiaturize' from outside of its actor context are implicitly asynchronous
101 | open var isZoomed: Bool { get }
102 | @available(swift, obsoleted: 3, renamed: "isZoomed")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:177:16: warning: call to main actor-isolated instance method 'performZoom' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
174 |
175 | /// Simulates the user clicking the zoom box by momentarily highlighting the button and then zooming the window.
176 | @inlinable func zoom() {
| `- note: add '@MainActor' to make instance method 'zoom()' part of global actor 'MainActor'
177 | self.window?.performZoom(self)
| `- warning: call to main actor-isolated instance method 'performZoom' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | }
179 |
AppKit.NSWindow:235:15: note: calls to instance method 'performZoom' from outside of its actor context are implicitly asynchronous
233 | open func performClose(_ sender: Any?)
234 | open func performMiniaturize(_ sender: Any?)
235 | open func performZoom(_ sender: Any?)
| `- note: calls to instance method 'performZoom' from outside of its actor context are implicitly asynchronous
236 | open func dataWithEPS(inside rect: NSRect) -> Data
237 | @available(swift, obsoleted: 3, renamed: "dataWithEPS(inside:)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:183:17: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
179 |
180 | /// Make the window the key window
181 | @inlinable func makeKey(andOrderFront orderFront: Bool = false) {
| `- note: add '@MainActor' to make instance method 'makeKey(andOrderFront:)' part of global actor 'MainActor'
182 | if orderFront {
183 | self.window?.makeKeyAndOrderFront(self)
| `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
184 | }
185 | else {
AppKit.NSWindow:144:15: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
142 | open var canHide: Bool { get set }
143 | open func center()
144 | open func makeKeyAndOrderFront(_ sender: Any?)
| `- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
145 | open func orderFront(_ sender: Any?)
146 | open func orderBack(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:186:17: warning: call to main actor-isolated instance method 'makeKey()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
179 |
180 | /// Make the window the key window
181 | @inlinable func makeKey(andOrderFront orderFront: Bool = false) {
| `- note: add '@MainActor' to make instance method 'makeKey(andOrderFront:)' part of global actor 'MainActor'
182 | if orderFront {
183 | self.window?.makeKeyAndOrderFront(self)
184 | }
185 | else {
186 | self.window?.makeKey()
| `- warning: call to main actor-isolated instance method 'makeKey()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 | }
188 | }
AppKit.NSWindow:174:15: note: calls to instance method 'makeKey()' from outside of its actor context are implicitly asynchronous
172 | @available(swift, obsoleted: 3, renamed: "canBecomeMain")
173 | open var canBecomeMainWindow: Bool { get }
174 | open func makeKey()
| `- note: calls to instance method 'makeKey()' from outside of its actor context are implicitly asynchronous
175 | @available(swift, obsoleted: 3, renamed: "makeKey()")
176 | open func makeKeyWindow()
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZStack.swift:84:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
82 | // Private
83 | public override func view() -> NSView { return self.containerView }
84 | private let containerView = NSView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
85 | private var elements: [Element] = []
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/element/Element.swift:55:22: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
53 | /// Return the bounds rect for the nsView control
54 | @inlinable public var bounds: CGRect {
55 | return self.view().bounds
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
56 | }
57 |
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/element/Element.swift:60:22: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | /// Return the frame rect for the nsView control
59 | @inlinable public var frame: CGRect {
60 | return self.view().frame
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | }
62 |
AppKit.NSView:60:25: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/text-field/NumberField.swift:88:13: warning: let '_value1' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
86 | import SwiftUI
87 |
88 | private let _value1 = ValueBinder(1)
| `- warning: let '_value1' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
89 | private let _value2 = ValueBinder(24.55)
90 | private let _formatter = NumberFormatter {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/text-field/NumberField.swift:27:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
25 | //
26 |
27 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
28 | import Foundation
29 |
:
86 | import SwiftUI
87 |
88 | private let _value1 = ValueBinder(1)
| |- note: annotate '_value1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 | private let _value2 = ValueBinder(24.55)
90 | private let _formatter = NumberFormatter {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/text-field/NumberField.swift:89:13: warning: let '_value2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
87 |
88 | private let _value1 = ValueBinder(1)
89 | private let _value2 = ValueBinder(24.55)
| |- warning: let '_value2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_value2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | private let _formatter = NumberFormatter {
91 | $0.minimumFractionDigits = 1
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/text-field/SearchField.swift:139:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
137 | }
138 |
139 | private let searchField = DSFSearchField(frame: .zero, recentsAutosaveName: nil)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
140 | public override func view() -> NSView { return self.searchField }
141 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/text-field/SearchField.swift:180:5: warning: let '__searchText' is not concurrency-safe because non-'Sendable' type 'ValueBinder<String>' may have shared mutable state; this is an error in the Swift 6 language mode
178 | #if DEBUG && canImport(SwiftUI)
179 |
180 | let __searchText = ValueBinder("")
| `- warning: let '__searchText' is not concurrency-safe because non-'Sendable' type 'ValueBinder<String>' may have shared mutable state; this is an error in the Swift 6 language mode
181 | let __searchSubmittedText = ValueBinder("")
182 | let __searchText2 = ValueBinder("")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/text-field/SearchField.swift:30:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
28 | import AppKit
29 | import DSFSearchField
30 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
31 |
32 | /// A wrapper for NSSearchField
:
178 | #if DEBUG && canImport(SwiftUI)
179 |
180 | let __searchText = ValueBinder("")
| |- note: annotate '__searchText' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
181 | let __searchSubmittedText = ValueBinder("")
182 | let __searchText2 = ValueBinder("")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/text-field/SearchField.swift:181:5: warning: let '__searchSubmittedText' is not concurrency-safe because non-'Sendable' type 'ValueBinder<String>' may have shared mutable state; this is an error in the Swift 6 language mode
179 |
180 | let __searchText = ValueBinder("")
181 | let __searchSubmittedText = ValueBinder("")
| |- warning: let '__searchSubmittedText' is not concurrency-safe because non-'Sendable' type 'ValueBinder<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '__searchSubmittedText' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
182 | let __searchText2 = ValueBinder("")
183 | let __searchSubmittedText2 = ValueBinder("")
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/text-field/SearchField.swift:182:5: warning: let '__searchText2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<String>' may have shared mutable state; this is an error in the Swift 6 language mode
180 | let __searchText = ValueBinder("")
181 | let __searchSubmittedText = ValueBinder("")
182 | let __searchText2 = ValueBinder("")
| |- warning: let '__searchText2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '__searchText2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 | let __searchSubmittedText2 = ValueBinder("")
184 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/text-field/SearchField.swift:183:5: warning: let '__searchSubmittedText2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<String>' may have shared mutable state; this is an error in the Swift 6 language mode
181 | let __searchSubmittedText = ValueBinder("")
182 | let __searchText2 = ValueBinder("")
183 | let __searchSubmittedText2 = ValueBinder("")
| |- warning: let '__searchSubmittedText2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '__searchSubmittedText2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
184 |
185 | import SwiftUI
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/text-field/TokenField.swift:84:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
82 |
83 | override public func view() -> NSView { return self.tokenField }
84 | private let tokenField = VerticalSizingTokenField()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
85 | //private let updateOnEndEditingOnly: Bool
86 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:33:20: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | /// A small system font
35 | public static let systemSmall = DynamicFont(.systemSmall)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:95:13: warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
93 | public extension AKBFont {
94 | /// The standard system font
95 | static let system = AKBFont(.systemFont(ofSize: NSFont.systemFontSize)) // 13
| |- warning: static property 'system' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'system' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | /// A small system font
97 | static let systemSmall = AKBFont(.systemFont(ofSize: NSFont.smallSystemFontSize))
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:35:20: warning: static property 'systemSmall' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
34 | /// A small system font
35 | public static let systemSmall = DynamicFont(.systemSmall)
| |- warning: static property 'systemSmall' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'systemSmall' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | /// System font at label size
37 | public static let label = DynamicFont(.label)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:97:13: warning: static property 'systemSmall' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
95 | static let system = AKBFont(.systemFont(ofSize: NSFont.systemFontSize)) // 13
96 | /// A small system font
97 | static let systemSmall = AKBFont(.systemFont(ofSize: NSFont.smallSystemFontSize))
| |- warning: static property 'systemSmall' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'systemSmall' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | /// System font at label size
99 | static let label = AKBFont(.systemFont(ofSize: NSFont.labelFontSize))
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:37:20: warning: static property 'label' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
35 | public static let systemSmall = DynamicFont(.systemSmall)
36 | /// System font at label size
37 | public static let label = DynamicFont(.label)
| |- warning: static property 'label' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'label' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 | /// The font you use for body text.
39 | public static let body = DynamicFont(.body)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:99:13: warning: static property 'label' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
97 | static let systemSmall = AKBFont(.systemFont(ofSize: NSFont.smallSystemFontSize))
98 | /// System font at label size
99 | static let label = AKBFont(.systemFont(ofSize: NSFont.labelFontSize))
| |- warning: static property 'label' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'label' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
100 | }
101 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:39:20: warning: static property 'body' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
37 | public static let label = DynamicFont(.label)
38 | /// The font you use for body text.
39 | public static let body = DynamicFont(.body)
| |- warning: static property 'body' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'body' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | /// The font you use for large titles.
41 | public static let largeTitle = DynamicFont(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:104:13: warning: static property 'body' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
102 | public extension AKBFont {
103 | /// The font you use for body text.
104 | static let body = AKBFont(.systemFont(ofSize: NSFont.systemFontSize)) // 13
| |- warning: static property 'body' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'body' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | /// The font you use for callouts.
106 | static let callout = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 1)) // 12
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:41:20: warning: static property 'largeTitle' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
39 | public static let body = DynamicFont(.body)
40 | /// The font you use for large titles.
41 | public static let largeTitle = DynamicFont(.largeTitle)
| |- warning: static property 'largeTitle' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'largeTitle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | /// The font you use for first-level hierarchical headings.
43 | public static let title1 = DynamicFont(.title1)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:118:13: warning: static property 'largeTitle' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
116 | static let subheadline = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 2)) // 11
117 | /// The font you use for large titles.
118 | static let largeTitle = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 13)) // 26
| |- warning: static property 'largeTitle' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'largeTitle' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 | /// The font you use for first-level hierarchical headings.
120 | static let title1 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 9)) // 22
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:43:20: warning: static property 'title1' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
41 | public static let largeTitle = DynamicFont(.largeTitle)
42 | /// The font you use for first-level hierarchical headings.
43 | public static let title1 = DynamicFont(.title1)
| |- warning: static property 'title1' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'title1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 | /// The font you use for second-level hierarchical headings.
45 | public static let title2 = DynamicFont(.title2)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:120:13: warning: static property 'title1' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
118 | static let largeTitle = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 13)) // 26
119 | /// The font you use for first-level hierarchical headings.
120 | static let title1 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 9)) // 22
| |- warning: static property 'title1' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'title1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
121 | /// The font you use for second-level hierarchical headings.
122 | static let title2 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 4)) // 17
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:45:20: warning: static property 'title2' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
43 | public static let title1 = DynamicFont(.title1)
44 | /// The font you use for second-level hierarchical headings.
45 | public static let title2 = DynamicFont(.title2)
| |- warning: static property 'title2' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'title2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | /// The font you use for third-level hierarchical headings.
47 | public static let title3 = DynamicFont(.title3)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:122:13: warning: static property 'title2' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
120 | static let title1 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 9)) // 22
121 | /// The font you use for second-level hierarchical headings.
122 | static let title2 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 4)) // 17
| |- warning: static property 'title2' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'title2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
123 | /// The font you use for third-level hierarchical headings.
124 | static let title3 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 2)) // 15
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:47:20: warning: static property 'title3' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
45 | public static let title2 = DynamicFont(.title2)
46 | /// The font you use for third-level hierarchical headings.
47 | public static let title3 = DynamicFont(.title3)
| |- warning: static property 'title3' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'title3' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | /// The font you use for standard captions.
49 | public static let caption1 = DynamicFont(.caption1)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:124:13: warning: static property 'title3' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
122 | static let title2 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 4)) // 17
123 | /// The font you use for third-level hierarchical headings.
124 | static let title3 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 2)) // 15
| |- warning: static property 'title3' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'title3' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | /// A font with monospaced digits
126 | static let monospacedDigit = AKBFont(.monospacedDigitSystemFont(ofSize: NSFont.systemFontSize, weight: .regular))
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:49:20: warning: static property 'caption1' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
47 | public static let title3 = DynamicFont(.title3)
48 | /// The font you use for standard captions.
49 | public static let caption1 = DynamicFont(.caption1)
| |- warning: static property 'caption1' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'caption1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | /// The font you use for alternate captions.
51 | public static let caption2 = DynamicFont(.caption2)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:108:13: warning: static property 'caption1' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
106 | static let callout = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 1)) // 12
107 | /// The font you use for standard captions.
108 | static let caption1 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 3)) // 10
| |- warning: static property 'caption1' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'caption1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | /// The font you use for alternate captions.
110 | static let caption2 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 2.5)) // Appears to be 10.5?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:51:20: warning: static property 'caption2' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
49 | public static let caption1 = DynamicFont(.caption1)
50 | /// The font you use for alternate captions.
51 | public static let caption2 = DynamicFont(.caption2)
| |- warning: static property 'caption2' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'caption2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | /// The font you use for headings.
53 | public static let headline = DynamicFont(.headline)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:110:13: warning: static property 'caption2' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
108 | static let caption1 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 3)) // 10
109 | /// The font you use for alternate captions.
110 | static let caption2 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 2.5)) // Appears to be 10.5?
| |- warning: static property 'caption2' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'caption2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | /// The font you use in footnotes.
112 | static let footnote = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 4)) // 10?
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:53:20: warning: static property 'headline' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
51 | public static let caption2 = DynamicFont(.caption2)
52 | /// The font you use for headings.
53 | public static let headline = DynamicFont(.headline)
| |- warning: static property 'headline' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'headline' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | /// The font you use for subheadings.
55 | public static let subheadline = DynamicFont(.subheadline)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:114:13: warning: static property 'headline' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
112 | static let footnote = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 4)) // 10?
113 | /// The font you use for headings.
114 | static let headline = AKBFont(.systemFont(ofSize: NSFont.systemFontSize, weight: .semibold)) // 13
| |- warning: static property 'headline' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'headline' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | /// The font you use for subheadings.
116 | static let subheadline = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 2)) // 11
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:55:20: warning: static property 'subheadline' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
53 | public static let headline = DynamicFont(.headline)
54 | /// The font you use for subheadings.
55 | public static let subheadline = DynamicFont(.subheadline)
| |- warning: static property 'subheadline' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'subheadline' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | /// The font you use in footnotes.
57 | public static let footnote = DynamicFont(.footnote)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:116:13: warning: static property 'subheadline' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
114 | static let headline = AKBFont(.systemFont(ofSize: NSFont.systemFontSize, weight: .semibold)) // 13
115 | /// The font you use for subheadings.
116 | static let subheadline = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 2)) // 11
| |- warning: static property 'subheadline' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'subheadline' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | /// The font you use for large titles.
118 | static let largeTitle = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 13)) // 26
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:57:20: warning: static property 'footnote' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
55 | public static let subheadline = DynamicFont(.subheadline)
56 | /// The font you use in footnotes.
57 | public static let footnote = DynamicFont(.footnote)
| |- warning: static property 'footnote' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'footnote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | /// The font to use for monospaced text
59 | public static let monospaced = DynamicFont(.monospaced)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:112:13: warning: static property 'footnote' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
110 | static let caption2 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 2.5)) // Appears to be 10.5?
111 | /// The font you use in footnotes.
112 | static let footnote = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 4)) // 10?
| |- warning: static property 'footnote' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'footnote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 | /// The font you use for headings.
114 | static let headline = AKBFont(.systemFont(ofSize: NSFont.systemFontSize, weight: .semibold)) // 13
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:59:20: warning: static property 'monospaced' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
57 | public static let footnote = DynamicFont(.footnote)
58 | /// The font to use for monospaced text
59 | public static let monospaced = DynamicFont(.monospaced)
| |- warning: static property 'monospaced' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospaced' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | /// A font with monospaced digits
61 | public static let monospacedDigit = DynamicFont(.monospacedDigit)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:128:13: warning: static property 'monospaced' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
126 | static let monospacedDigit = AKBFont(.monospacedDigitSystemFont(ofSize: NSFont.systemFontSize, weight: .regular))
127 | /// The font to use for monospaced text
128 | static let monospaced: AKBFont = {
| |- warning: static property 'monospaced' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospaced' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
129 | if #available(macOS 10.15, *) {
130 | return AKBFont(.monospacedSystemFont(ofSize: NSFont.systemFontSize, weight: .regular))
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:61:20: warning: static property 'monospacedDigit' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
59 | public static let monospaced = DynamicFont(.monospaced)
60 | /// A font with monospaced digits
61 | public static let monospacedDigit = DynamicFont(.monospacedDigit)
| |- warning: static property 'monospacedDigit' is not concurrency-safe because non-'Sendable' type 'DynamicFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospacedDigit' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | internal static let DefaultFonts: [DynamicFont] = [
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:126:13: warning: static property 'monospacedDigit' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
124 | static let title3 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize + 2)) // 15
125 | /// A font with monospaced digits
126 | static let monospacedDigit = AKBFont(.monospacedDigitSystemFont(ofSize: NSFont.systemFontSize, weight: .regular))
| |- warning: static property 'monospacedDigit' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'monospacedDigit' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | /// The font to use for monospaced text
128 | static let monospaced: AKBFont = {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFont.swift:63:22: warning: static property 'DefaultFonts' is not concurrency-safe because non-'Sendable' type '[DynamicFont]' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// A Dynamic font
31 | public class DynamicFont {
| `- note: class 'DynamicFont' does not conform to the 'Sendable' protocol
32 | /// The font you use for body text.
33 | public static let system = DynamicFont(.system)
:
61 | public static let monospacedDigit = DynamicFont(.monospacedDigit)
62 |
63 | internal static let DefaultFonts: [DynamicFont] = [
| |- warning: static property 'DefaultFonts' is not concurrency-safe because non-'Sendable' type '[DynamicFont]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DefaultFonts' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | .system, .systemSmall, .label, .body, .largeTitle,
65 | .title1, .title2, .title3, .headline, .subheadline,
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/DynamicFontService.swift:55:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DynamicFontService' may have shared mutable state; this is an error in the Swift 6 language mode
52 | /// }
53 | /// ```
54 | public class DynamicFontService {
| `- note: class 'DynamicFontService' does not conform to the 'Sendable' protocol
55 | public static let shared = DynamicFontService()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DynamicFontService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | /// Add a new scalable font based on a provided font
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/fonts/Font.swift:106:13: warning: static property 'callout' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | /// A font definition
32 | public class AKBFont {
| `- note: class 'AKBFont' does not conform to the 'Sendable' protocol
33 | let font: NSFont
34 | public init(_ font: NSFont) {
:
104 | static let body = AKBFont(.systemFont(ofSize: NSFont.systemFontSize)) // 13
105 | /// The font you use for callouts.
106 | static let callout = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 1)) // 12
| |- warning: static property 'callout' is not concurrency-safe because non-'Sendable' type 'AKBFont' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'callout' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 | /// The font you use for standard captions.
108 | static let caption1 = AKBFont(.systemFont(ofSize: NSFont.systemFontSize - 3)) // 10
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:167:16: warning: sending task-isolated value of type 'Window' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
165 | /// Minimise a window to the dock
166 | @inlinable func minimise() {
167 | self.window?.miniaturize(self)
| `- warning: sending task-isolated value of type 'Window' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
168 | }
169 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:172:16: warning: sending task-isolated value of type 'Window' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
170 | /// Deminiaturize a window from the dock
171 | @inlinable func deminiaturize() {
172 | self.window?.deminiaturize(self)
| `- warning: sending task-isolated value of type 'Window' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
173 | }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:177:16: warning: sending task-isolated value of type 'Window' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
175 | /// Simulates the user clicking the zoom box by momentarily highlighting the button and then zooming the window.
176 | @inlinable func zoom() {
177 | self.window?.performZoom(self)
| `- warning: sending task-isolated value of type 'Window' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
178 | }
179 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:183:17: warning: sending task-isolated value of type 'Window' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
181 | @inlinable func makeKey(andOrderFront orderFront: Bool = false) {
182 | if orderFront {
183 | self.window?.makeKeyAndOrderFront(self)
| `- warning: sending task-isolated value of type 'Window' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
184 | }
185 | else {
[194/198] Write Objects.LinkFileList
/Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning duplicate member name 'DSFDebounce.swift.o' from '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFAppearanceManager.build/DSFDebounce.swift.o(DSFDebounce.swift.o)' and '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFPagerControl.build/DSFDebounce.swift.o(DSFDebounce.swift.o)'
/Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning duplicate member name 'NSBezierPath+extensions.swift.o' from '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFPagerControl.build/NSBezierPath+extensions.swift.o(NSBezierPath+extensions.swift.o)' and '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFAppKitBuilder.build/NSBezierPath+extensions.swift.o(NSBezierPath+extensions.swift.o)'
/Applications/Xcode-16.1.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning duplicate member name 'resource_bundle_accessor.swift.o' from '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFStepperView.build/resource_bundle_accessor.swift.o(resource_bundle_accessor.swift.o)' and '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFSearchField.build/resource_bundle_accessor.swift.o(resource_bundle_accessor.swift.o)'
[196/198] Archiving libDSFAppKitBuilder-static.a
[197/198] Linking libDSFAppKitBuilder-shared.dylib
Build complete! (55.05s)
Build complete.
{
"dependencies" : [
{
"identity" : "dsfpagercontrol",
"requirement" : {
"range" : [
{
"lower_bound" : "2.5.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFPagerControl"
},
{
"identity" : "dsfmenubuilder",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFMenuBuilder"
},
{
"identity" : "dsfvaluebinders",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "1.1.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFValueBinders"
},
{
"identity" : "dsfcombobutton",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFComboButton"
},
{
"identity" : "dsftogglebutton",
"requirement" : {
"range" : [
{
"lower_bound" : "7.1.0",
"upper_bound" : "8.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFToggleButton"
},
{
"identity" : "dsfstepperview",
"requirement" : {
"range" : [
{
"lower_bound" : "4.3.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFStepperView"
},
{
"identity" : "dsfsearchfield",
"requirement" : {
"range" : [
{
"lower_bound" : "2.2.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFSearchField"
}
],
"manifest_display_name" : "DSFAppKitBuilder",
"name" : "DSFAppKitBuilder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "DSFAppKitBuilder",
"targets" : [
"DSFAppKitBuilder"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DSFAppKitBuilder-static",
"targets" : [
"DSFAppKitBuilder"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "DSFAppKitBuilder-shared",
"targets" : [
"DSFAppKitBuilder"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFAppKitBuilderTests",
"module_type" : "SwiftTarget",
"name" : "DSFAppKitBuilderTests",
"path" : "Tests/DSFAppKitBuilderTests",
"sources" : [
"DSFAppKitDSLTests.swift"
],
"target_dependencies" : [
"DSFAppKitBuilder"
],
"type" : "test"
},
{
"c99name" : "DSFAppKitBuilder",
"module_type" : "SwiftTarget",
"name" : "DSFAppKitBuilder",
"path" : "Sources/DSFAppKitBuilder",
"product_dependencies" : [
"DSFMenuBuilder",
"DSFPagerControl",
"DSFValueBinders",
"DSFComboButton",
"DSFToggleButton",
"DSFStepperView",
"DSFSearchField"
],
"product_memberships" : [
"DSFAppKitBuilder",
"DSFAppKitBuilder-static",
"DSFAppKitBuilder-shared"
],
"sources" : [
"DSFAppKitBuilder.swift",
"DSFAppKitBuilderViewHandler.swift",
"binders/DoubleStringBinder.swift",
"binders/ElementBinder.swift",
"binders/WindowBinder.swift",
"components/Accessibility.swift",
"components/AttributedString.swift",
"components/AutoLayout.swift",
"components/Box.swift",
"components/Button+radio.swift",
"components/Button.swift",
"components/ButtonStyle.swift",
"components/CheckBox.swift",
"components/ColorWell.swift",
"components/ComboBox.swift",
"components/ComboButton.swift",
"components/Control.swift",
"components/DatePicker.swift",
"components/DisclosureGroup.swift",
"components/DisclosureView.swift",
"components/Divider.swift",
"components/DynamicElement.swift",
"components/EmptyView.swift",
"components/FlatButton.swift",
"components/Flow.swift",
"components/ForEach.swift",
"components/Form.swift",
"components/Grid.swift",
"components/Group.swift",
"components/IfElse.swift",
"components/Image.swift",
"components/ImageView.swift",
"components/Label.swift",
"components/LabelStyle.swift",
"components/LevelIndicator.swift",
"components/Link.swift",
"components/List.swift",
"components/ManagedWindow.swift",
"components/Maybe.swift",
"components/Nothing.swift",
"components/OneOf.swift",
"components/Pager.swift",
"components/PathControl.swift",
"components/PlainTextView.swift",
"components/PopupButton.swift",
"components/ProgressBar.swift",
"components/RadioGroup.swift",
"components/ScrollView.swift",
"components/SecureTextField.swift",
"components/Segmented.swift",
"components/Shape.swift",
"components/Slider.swift",
"components/SplitView.swift",
"components/Stack.swift",
"components/StackStyle.swift",
"components/Stepper.swift",
"components/StepperView.swift",
"components/Switch.swift",
"components/TabView.swift",
"components/Toggle.swift",
"components/View+SwiftUI.swift",
"components/View.swift",
"components/VisualEffectView.swift",
"components/Window.swift",
"components/ZStack.swift",
"components/ZoomableScrollView.swift",
"components/element/Element+Alert.swift",
"components/element/Element+Change.swift",
"components/element/Element+Gestures.swift",
"components/element/Element+Panel.swift",
"components/element/Element+Popover.swift",
"components/element/Element+Sheet.swift",
"components/element/Element+Size.swift",
"components/element/Element.swift",
"components/text-field/NumberField.swift",
"components/text-field/SearchField.swift",
"components/text-field/TextField.swift",
"components/text-field/TokenField.swift",
"fonts/DynamicFont.swift",
"fonts/DynamicFontService.swift",
"fonts/Font.swift",
"presentation/DSFAppKitBuilderAssignableViewController.swift",
"presentation/DSFAppKitBuilderView.swift",
"presentation/DSFAppKitBuilderViewController.swift",
"presentation/SwiftUIPreviews.swift",
"utils/Animations.swift",
"utils/Autolayout+helpers.swift",
"utils/BindingBag.swift",
"utils/CGColor+extensions.swift",
"utils/CGSize+extensions.swift",
"utils/CSFlatButton.swift",
"utils/CenteringClipView.swift",
"utils/CustomValueTransformers.swift",
"utils/EmbeddedLayoutType.swift",
"utils/Logging.swift",
"utils/NSBezierPath+extensions.swift",
"utils/NSColor+extensions.swift",
"utils/NSGestureRecognizer+actionblock.swift",
"utils/NumberFormatter+extensions.swift",
"utils/PaddableTextField.swift",
"utils/ProtectedLock.swift",
"utils/RangeComponentBinder.swift",
"utils/ScrollableTextView.swift",
"utils/Shadow.swift",
"utils/TrackingArea.swift",
"utils/Utilities.swift",
"utils/VerticalSizingTokenField.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.