Build Information
Successful build of ColorWell with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 21
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jordanbaird/ColorWell.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jordanbaird/ColorWell
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5063ae4 Add deprecation notice to README
Cloned https://github.com/jordanbaird/ColorWell.git
Revision (git rev-parse @):
5063ae4afcf6a2c417e7631eec032bca844fa936
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/jordanbaird/ColorWell.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/jordanbaird/ColorWell.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/30] Emitting module ColorWell
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:100:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
98 | var layoutView: ColorWellLayoutView {
99 | enum LocalCache {
100 | static let storage = Storage<ColorWellLayoutView>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:402:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
400 | private func configureColorPanelObservations(remove: Bool, setUp: Bool) {
401 | enum LocalCache {
402 | static let storage = Storage<Set<NSKeyValueObservation>>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
403 | }
404 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorSwatch.swift:131:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
129 | private func updateBezel() {
130 | enum LocalCache {
131 | static let storage = Storage<CALayer?>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:12:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | private(set) weak var colorWell: ColorWell?
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:13:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:15:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:16:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:17:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:19:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
20 | private(set) lazy var maxItemsPerRow = max(4, Int(Double(swatchCount).squareRoot().rounded(.up)))
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:23:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
22 |
23 | private(set) lazy var swatches: [ColorSwatch] = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
24 | guard let colorWell else {
25 | return []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellPullDownSwatchSegment.swift:224:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
222 | override func updateTrackingAreas() {
223 | enum LocalCache {
224 | static let storage = Storage<NSTrackingArea>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
225 | }
226 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:45:36: warning: static property 'defaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
43 | cachedImageLayer.updateConstructor { id in
44 | enum LocalCache {
45 | private static let defaultImage: NSImage = {
| |- warning: static property 'defaultImage' 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 'defaultImage' 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 | // Force unwrap is okay here, as the image is an AppKit builtin.
47 | // swiftlint:disable:next force_unwrapping
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/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:52:36: warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }()
51 |
52 | private static let enabledTintedForDarkAppearance: Any = {
| |- warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'enabledTintedForDarkAppearance' 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 | let image = defaultImage.tinted(to: .white, amount: 0.33)
54 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:58:36: warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }()
57 |
58 | private static let enabledTintedForLightAppearance: Any = {
| |- warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'enabledTintedForLightAppearance' 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
59 | let image = defaultImage.tinted(to: .black, amount: 0.20)
60 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:64:36: warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
62 | }()
63 |
64 | private static let disabledTintedForDarkAppearance: Any = {
| |- warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disabledTintedForDarkAppearance' 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
65 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
66 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:75:36: warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }()
74 |
75 | private static let disabledTintedForLightAppearance: Any = {
| |- warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disabledTintedForLightAppearance' 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
76 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
77 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:86:28: warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
84 | }()
85 |
86 | static let defaultContents: Any = {
| |- warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultContents' 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
87 | let scale = defaultImage.recommendedLayerContentsScale(0.0)
88 | return defaultImage.layerContents(forContentsScale: scale)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Style.swift:34:27: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension ColorWell {
9 | /// Constants that specify the appearance and behavior of a color well.
10 | @objc public enum Style: Int {
| `- note: consider making enum 'Style' conform to the 'Sendable' protocol
11 | /// The color well is displayed as a segmented control that displays
12 | /// the selected color alongside a dedicated button to show the system
:
32 | ///
33 | /// Equivalent to ``colorPanel``.
34 | public static let standard = Self.colorPanel
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.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
35 | }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:57:31: warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
57 | colorWell.showsAlphaForcedState = showsAlpha.wrappedValue
| `- warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:89:9: note: mutation of this property is only permitted within the actor
87 | /// color panel to show or hide its alpha controls during the next
88 | /// call to `synchronizeColorPanel()`.
89 | var showsAlphaForcedState: Bool? {
| `- note: mutation of this property is only permitted within the actor
90 | didSet {
91 | if isActive {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 10.15, *)
10 | private struct ChangeHandlersKey: EnvironmentKey {
11 | static let defaultValue = [(NSColor) -> Void]()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:16:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
14 | @available(macOS 10.15, *)
15 | private struct ColorWellStyleConfigurationKey: EnvironmentKey {
16 | static let defaultValue = _ColorWellStyleConfiguration()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellStyle.swift:11:15: note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
9 |
10 | /// Values that configure a color well's style.
11 | public struct _ColorWellStyleConfiguration {
| `- note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
12 | /// The underlying style of the color well.
13 | var style: ColorWell.Style?
[4/33] Compiling ColorWell ColorWellBaseView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorSwatch.swift:131:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
129 | private func updateBezel() {
130 | enum LocalCache {
131 | static let storage = Storage<CALayer?>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[5/33] Compiling ColorWell ColorWellLayoutView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorSwatch.swift:131:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
129 | private func updateBezel() {
130 | enum LocalCache {
131 | static let storage = Storage<CALayer?>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[6/33] Compiling ColorWell ColorSwatch.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorSwatch.swift:131:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
129 | private func updateBezel() {
130 | enum LocalCache {
131 | static let storage = Storage<CALayer?>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<CALayer?>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[7/33] Compiling ColorWell ActionButton.swift
[8/33] Compiling ColorWell Cache.swift
[9/33] Compiling ColorWell ColorComponents.swift
[10/33] Compiling ColorWell ColorWellBorderedSwatchSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellPullDownSwatchSegment.swift:224:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
222 | override func updateTrackingAreas() {
223 | enum LocalCache {
224 | static let storage = Storage<NSTrackingArea>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
225 | }
226 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[11/33] Compiling ColorWell ColorWellPullDownSwatchSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellPullDownSwatchSegment.swift:224:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
222 | override func updateTrackingAreas() {
223 | enum LocalCache {
224 | static let storage = Storage<NSTrackingArea>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
225 | }
226 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[12/33] Compiling ColorWell ColorWellSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellPullDownSwatchSegment.swift:224:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
222 | override func updateTrackingAreas() {
223 | enum LocalCache {
224 | static let storage = Storage<NSTrackingArea>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<NSTrackingArea>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
225 | }
226 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[13/33] Compiling ColorWell ColorWellView.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 10.15, *)
10 | private struct ChangeHandlersKey: EnvironmentKey {
11 | static let defaultValue = [(NSColor) -> Void]()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:16:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
14 | @available(macOS 10.15, *)
15 | private struct ColorWellStyleConfigurationKey: EnvironmentKey {
16 | static let defaultValue = _ColorWellStyleConfiguration()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellStyle.swift:11:15: note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
9 |
10 | /// Values that configure a color well's style.
11 | public struct _ColorWellStyleConfiguration {
| `- note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
12 | /// The underlying style of the color well.
13 | var style: ColorWell.Style?
[14/33] Compiling ColorWell EnvironmentValues.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 10.15, *)
10 | private struct ChangeHandlersKey: EnvironmentKey {
11 | static let defaultValue = [(NSColor) -> Void]()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:16:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
14 | @available(macOS 10.15, *)
15 | private struct ColorWellStyleConfigurationKey: EnvironmentKey {
16 | static let defaultValue = _ColorWellStyleConfiguration()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellStyle.swift:11:15: note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
9 |
10 | /// Values that configure a color well's style.
11 | public struct _ColorWellStyleConfiguration {
| `- note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
12 | /// The underlying style of the color well.
13 | var style: ColorWell.Style?
[15/33] Compiling ColorWell ViewModifiers.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:11:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
9 | @available(macOS 10.15, *)
10 | private struct ChangeHandlersKey: EnvironmentKey {
11 | static let defaultValue = [(NSColor) -> Void]()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '[(NSColor) -> Void]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/EnvironmentValues.swift:16:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
14 | @available(macOS 10.15, *)
15 | private struct ColorWellStyleConfigurationKey: EnvironmentKey {
16 | static let defaultValue = _ColorWellStyleConfiguration()
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_ColorWellStyleConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
17 | }
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellStyle.swift:11:15: note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
9 |
10 | /// Values that configure a color well's style.
11 | public struct _ColorWellStyleConfiguration {
| `- note: consider making struct '_ColorWellStyleConfiguration' conform to the 'Sendable' protocol
12 | /// The underlying style of the color well.
13 | var style: ColorWell.Style?
[16/33] Compiling ColorWell ColorWellConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:57:31: warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
57 | colorWell.showsAlphaForcedState = showsAlpha.wrappedValue
| `- warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:89:9: note: mutation of this property is only permitted within the actor
87 | /// color panel to show or hide its alpha controls during the next
88 | /// call to `synchronizeColorPanel()`.
89 | var showsAlphaForcedState: Bool? {
| `- note: mutation of this property is only permitted within the actor
90 | didSet {
91 | if isActive {
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:63:32: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
60 | /// Updates the color well's style to the most recent configuration
61 | /// stored in the environment.
62 | func updateStyle(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateStyle(_:context:)' part of global actor 'MainActor'
63 | if let style = context.environment.colorWellStyleConfiguration.style {
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
64 | colorWell.style = style
65 | }
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:64:23: warning: main actor-isolated property 'style' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
60 | /// Updates the color well's style to the most recent configuration
61 | /// stored in the environment.
62 | func updateStyle(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateStyle(_:context:)' part of global actor 'MainActor'
63 | if let style = context.environment.colorWellStyleConfiguration.style {
64 | colorWell.style = style
| `- warning: main actor-isolated property 'style' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:261:16: note: mutation of this property is only permitted within the actor
259 | /// interacts with it. For details, see ``Style-swift.enum``.
260 | @objc dynamic
261 | public var style: Style {
| `- note: mutation of this property is only permitted within the actor
262 | didSet {
263 | needsDisplay = true
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:79:35: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
68 | /// Updates the color well's change handlers to the most recent
69 | /// value stored in the environment.
70 | func updateChangeHandlers(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateChangeHandlers(_:context:)' part of global actor 'MainActor'
71 | // If an action was added to the configuration, it can only have
72 | // happened on initialization, so it should come first.
:
77 | // the view hierarchy to be added last in the environment. Reversing
78 | // the stored handlers returns the correct order.
79 | changeHandlers += context.environment.changeHandlers.reversed()
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
80 |
81 | // Overwrite the current change handlers. DO NOT APPEND, or more and
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:83:19: warning: main actor-isolated property 'changeHandlers' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
68 | /// Updates the color well's change handlers to the most recent
69 | /// value stored in the environment.
70 | func updateChangeHandlers(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateChangeHandlers(_:context:)' part of global actor 'MainActor'
71 | // If an action was added to the configuration, it can only have
72 | // happened on initialization, so it should come first.
:
81 | // Overwrite the current change handlers. DO NOT APPEND, or more and
82 | // more duplicate actions will be added every time the view updates.
83 | colorWell.changeHandlers = changeHandlers
| `- warning: main actor-isolated property 'changeHandlers' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
84 | }
85 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:71:9: note: mutation of this property is only permitted within the actor
69 |
70 | /// The color well's change handlers.
71 | var changeHandlers = [(NSColor) -> Void]()
| `- note: mutation of this property is only permitted within the actor
72 |
73 | /// The popover context associated with the color well.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:89:39: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
86 | /// Updates the color well's swatch colors to the most recent
87 | /// value stored in the environment.
88 | func updateSwatchColors(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateSwatchColors(_:context:)' part of global actor 'MainActor'
89 | if let swatchColors = context.environment.swatchColors {
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
90 | colorWell.swatchColors = swatchColors
91 | }
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:90:23: warning: main actor-isolated property 'swatchColors' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
86 | /// Updates the color well's swatch colors to the most recent
87 | /// value stored in the environment.
88 | func updateSwatchColors(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateSwatchColors(_:context:)' part of global actor 'MainActor'
89 | if let swatchColors = context.environment.swatchColors {
90 | colorWell.swatchColors = swatchColors
| `- warning: main actor-isolated property 'swatchColors' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
91 | }
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:200:16: note: mutation of this property is only permitted within the actor
198 | /// instead of the popover.
199 | @objc dynamic
200 | public var swatchColors = defaultSwatchColors
| `- note: mutation of this property is only permitted within the actor
201 |
202 | /// The color well's color.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:97:19: warning: main actor-isolated property 'isEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
94 | /// Updates the color well's `isEnabled` value to the most recent
95 | /// value stored in the environment.
96 | func updateIsEnabled(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateIsEnabled(_:context:)' part of global actor 'MainActor'
97 | colorWell.isEnabled = context.environment.isEnabled
| `- warning: main actor-isolated property 'isEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:243:16: note: mutation of this property is only permitted within the actor
241 | /// Default value is `true`.
242 | @objc dynamic
243 | public var isEnabled: Bool = true {
| `- note: mutation of this property is only permitted within the actor
244 | didSet {
245 | switch style {
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:97:39: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
94 | /// Updates the color well's `isEnabled` value to the most recent
95 | /// value stored in the environment.
96 | func updateIsEnabled(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateIsEnabled(_:context:)' part of global actor 'MainActor'
97 | colorWell.isEnabled = context.environment.isEnabled
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
98 | }
99 | }
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Style.swift:34:27: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension ColorWell {
9 | /// Constants that specify the appearance and behavior of a color well.
10 | @objc public enum Style: Int {
| `- note: consider making enum 'Style' conform to the 'Sendable' protocol
11 | /// The color well is displayed as a segmented control that displays
12 | /// the selected color alongside a dedicated button to show the system
:
32 | ///
33 | /// Equivalent to ``colorPanel``.
34 | public static let standard = Self.colorPanel
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.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
35 | }
36 | }
[17/33] Compiling ColorWell ColorWellRepresentable.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:57:31: warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
57 | colorWell.showsAlphaForcedState = showsAlpha.wrappedValue
| `- warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:89:9: note: mutation of this property is only permitted within the actor
87 | /// color panel to show or hide its alpha controls during the next
88 | /// call to `synchronizeColorPanel()`.
89 | var showsAlphaForcedState: Bool? {
| `- note: mutation of this property is only permitted within the actor
90 | didSet {
91 | if isActive {
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:63:32: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
60 | /// Updates the color well's style to the most recent configuration
61 | /// stored in the environment.
62 | func updateStyle(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateStyle(_:context:)' part of global actor 'MainActor'
63 | if let style = context.environment.colorWellStyleConfiguration.style {
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
64 | colorWell.style = style
65 | }
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:64:23: warning: main actor-isolated property 'style' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
60 | /// Updates the color well's style to the most recent configuration
61 | /// stored in the environment.
62 | func updateStyle(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateStyle(_:context:)' part of global actor 'MainActor'
63 | if let style = context.environment.colorWellStyleConfiguration.style {
64 | colorWell.style = style
| `- warning: main actor-isolated property 'style' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:261:16: note: mutation of this property is only permitted within the actor
259 | /// interacts with it. For details, see ``Style-swift.enum``.
260 | @objc dynamic
261 | public var style: Style {
| `- note: mutation of this property is only permitted within the actor
262 | didSet {
263 | needsDisplay = true
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:79:35: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
68 | /// Updates the color well's change handlers to the most recent
69 | /// value stored in the environment.
70 | func updateChangeHandlers(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateChangeHandlers(_:context:)' part of global actor 'MainActor'
71 | // If an action was added to the configuration, it can only have
72 | // happened on initialization, so it should come first.
:
77 | // the view hierarchy to be added last in the environment. Reversing
78 | // the stored handlers returns the correct order.
79 | changeHandlers += context.environment.changeHandlers.reversed()
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
80 |
81 | // Overwrite the current change handlers. DO NOT APPEND, or more and
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:83:19: warning: main actor-isolated property 'changeHandlers' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
68 | /// Updates the color well's change handlers to the most recent
69 | /// value stored in the environment.
70 | func updateChangeHandlers(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateChangeHandlers(_:context:)' part of global actor 'MainActor'
71 | // If an action was added to the configuration, it can only have
72 | // happened on initialization, so it should come first.
:
81 | // Overwrite the current change handlers. DO NOT APPEND, or more and
82 | // more duplicate actions will be added every time the view updates.
83 | colorWell.changeHandlers = changeHandlers
| `- warning: main actor-isolated property 'changeHandlers' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
84 | }
85 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:71:9: note: mutation of this property is only permitted within the actor
69 |
70 | /// The color well's change handlers.
71 | var changeHandlers = [(NSColor) -> Void]()
| `- note: mutation of this property is only permitted within the actor
72 |
73 | /// The popover context associated with the color well.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:89:39: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
86 | /// Updates the color well's swatch colors to the most recent
87 | /// value stored in the environment.
88 | func updateSwatchColors(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateSwatchColors(_:context:)' part of global actor 'MainActor'
89 | if let swatchColors = context.environment.swatchColors {
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
90 | colorWell.swatchColors = swatchColors
91 | }
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:90:23: warning: main actor-isolated property 'swatchColors' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
86 | /// Updates the color well's swatch colors to the most recent
87 | /// value stored in the environment.
88 | func updateSwatchColors(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateSwatchColors(_:context:)' part of global actor 'MainActor'
89 | if let swatchColors = context.environment.swatchColors {
90 | colorWell.swatchColors = swatchColors
| `- warning: main actor-isolated property 'swatchColors' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
91 | }
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:200:16: note: mutation of this property is only permitted within the actor
198 | /// instead of the popover.
199 | @objc dynamic
200 | public var swatchColors = defaultSwatchColors
| `- note: mutation of this property is only permitted within the actor
201 |
202 | /// The color well's color.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:97:19: warning: main actor-isolated property 'isEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
94 | /// Updates the color well's `isEnabled` value to the most recent
95 | /// value stored in the environment.
96 | func updateIsEnabled(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateIsEnabled(_:context:)' part of global actor 'MainActor'
97 | colorWell.isEnabled = context.environment.isEnabled
| `- warning: main actor-isolated property 'isEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:243:16: note: mutation of this property is only permitted within the actor
241 | /// Default value is `true`.
242 | @objc dynamic
243 | public var isEnabled: Bool = true {
| `- note: mutation of this property is only permitted within the actor
244 | didSet {
245 | switch style {
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:97:39: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
94 | /// Updates the color well's `isEnabled` value to the most recent
95 | /// value stored in the environment.
96 | func updateIsEnabled(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateIsEnabled(_:context:)' part of global actor 'MainActor'
97 | colorWell.isEnabled = context.environment.isEnabled
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
98 | }
99 | }
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Style.swift:34:27: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension ColorWell {
9 | /// Constants that specify the appearance and behavior of a color well.
10 | @objc public enum Style: Int {
| `- note: consider making enum 'Style' conform to the 'Sendable' protocol
11 | /// The color well is displayed as a segmented control that displays
12 | /// the selected color alongside a dedicated button to show the system
:
32 | ///
33 | /// Equivalent to ``colorPanel``.
34 | public static let standard = Self.colorPanel
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.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
35 | }
36 | }
[18/33] Compiling ColorWell ColorWellStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellConfiguration.swift:57:31: warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
55 | case .showsAlpha(let showsAlpha):
56 | values.updateShowsAlpha = { colorWell in
57 | colorWell.showsAlphaForcedState = showsAlpha.wrappedValue
| `- warning: main actor-isolated property 'showsAlphaForcedState' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:89:9: note: mutation of this property is only permitted within the actor
87 | /// color panel to show or hide its alpha controls during the next
88 | /// call to `synchronizeColorPanel()`.
89 | var showsAlphaForcedState: Bool? {
| `- note: mutation of this property is only permitted within the actor
90 | didSet {
91 | if isActive {
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:63:32: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
60 | /// Updates the color well's style to the most recent configuration
61 | /// stored in the environment.
62 | func updateStyle(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateStyle(_:context:)' part of global actor 'MainActor'
63 | if let style = context.environment.colorWellStyleConfiguration.style {
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
64 | colorWell.style = style
65 | }
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:64:23: warning: main actor-isolated property 'style' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
60 | /// Updates the color well's style to the most recent configuration
61 | /// stored in the environment.
62 | func updateStyle(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateStyle(_:context:)' part of global actor 'MainActor'
63 | if let style = context.environment.colorWellStyleConfiguration.style {
64 | colorWell.style = style
| `- warning: main actor-isolated property 'style' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:261:16: note: mutation of this property is only permitted within the actor
259 | /// interacts with it. For details, see ``Style-swift.enum``.
260 | @objc dynamic
261 | public var style: Style {
| `- note: mutation of this property is only permitted within the actor
262 | didSet {
263 | needsDisplay = true
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:79:35: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
68 | /// Updates the color well's change handlers to the most recent
69 | /// value stored in the environment.
70 | func updateChangeHandlers(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateChangeHandlers(_:context:)' part of global actor 'MainActor'
71 | // If an action was added to the configuration, it can only have
72 | // happened on initialization, so it should come first.
:
77 | // the view hierarchy to be added last in the environment. Reversing
78 | // the stored handlers returns the correct order.
79 | changeHandlers += context.environment.changeHandlers.reversed()
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
80 |
81 | // Overwrite the current change handlers. DO NOT APPEND, or more and
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:83:19: warning: main actor-isolated property 'changeHandlers' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
68 | /// Updates the color well's change handlers to the most recent
69 | /// value stored in the environment.
70 | func updateChangeHandlers(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateChangeHandlers(_:context:)' part of global actor 'MainActor'
71 | // If an action was added to the configuration, it can only have
72 | // happened on initialization, so it should come first.
:
81 | // Overwrite the current change handlers. DO NOT APPEND, or more and
82 | // more duplicate actions will be added every time the view updates.
83 | colorWell.changeHandlers = changeHandlers
| `- warning: main actor-isolated property 'changeHandlers' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
84 | }
85 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:71:9: note: mutation of this property is only permitted within the actor
69 |
70 | /// The color well's change handlers.
71 | var changeHandlers = [(NSColor) -> Void]()
| `- note: mutation of this property is only permitted within the actor
72 |
73 | /// The popover context associated with the color well.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:89:39: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
86 | /// Updates the color well's swatch colors to the most recent
87 | /// value stored in the environment.
88 | func updateSwatchColors(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateSwatchColors(_:context:)' part of global actor 'MainActor'
89 | if let swatchColors = context.environment.swatchColors {
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
90 | colorWell.swatchColors = swatchColors
91 | }
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:90:23: warning: main actor-isolated property 'swatchColors' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
86 | /// Updates the color well's swatch colors to the most recent
87 | /// value stored in the environment.
88 | func updateSwatchColors(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateSwatchColors(_:context:)' part of global actor 'MainActor'
89 | if let swatchColors = context.environment.swatchColors {
90 | colorWell.swatchColors = swatchColors
| `- warning: main actor-isolated property 'swatchColors' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
91 | }
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:200:16: note: mutation of this property is only permitted within the actor
198 | /// instead of the popover.
199 | @objc dynamic
200 | public var swatchColors = defaultSwatchColors
| `- note: mutation of this property is only permitted within the actor
201 |
202 | /// The color well's color.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:97:19: warning: main actor-isolated property 'isEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
94 | /// Updates the color well's `isEnabled` value to the most recent
95 | /// value stored in the environment.
96 | func updateIsEnabled(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateIsEnabled(_:context:)' part of global actor 'MainActor'
97 | colorWell.isEnabled = context.environment.isEnabled
| `- warning: main actor-isolated property 'isEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:243:16: note: mutation of this property is only permitted within the actor
241 | /// Default value is `true`.
242 | @objc dynamic
243 | public var isEnabled: Bool = true {
| `- note: mutation of this property is only permitted within the actor
244 | didSet {
245 | switch style {
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/SwiftUI/ColorWellRepresentable.swift:97:39: warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
94 | /// Updates the color well's `isEnabled` value to the most recent
95 | /// value stored in the environment.
96 | func updateIsEnabled(_ colorWell: ColorWell, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateIsEnabled(_:context:)' part of global actor 'MainActor'
97 | colorWell.isEnabled = context.environment.isEnabled
| `- warning: main actor-isolated property 'environment' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
98 | }
99 | }
SwiftUI.NSViewRepresentableContext:9:27: note: property declared here
7 | @MainActor public let coordinator: View.Coordinator
8 | @MainActor public var transaction: Transaction { get }
9 | @MainActor public var environment: EnvironmentValues { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Style.swift:34:27: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension ColorWell {
9 | /// Constants that specify the appearance and behavior of a color well.
10 | @objc public enum Style: Int {
| `- note: consider making enum 'Style' conform to the 'Sendable' protocol
11 | /// The color well is displayed as a segmented control that displays
12 | /// the selected color alongside a dedicated button to show the system
:
32 | ///
33 | /// Equivalent to ``colorPanel``.
34 | public static let standard = Self.colorPanel
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.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
35 | }
36 | }
[19/33] Compiling ColorWell ColorWellPopoverLayoutView.swift
[20/33] Compiling ColorWell ColorWellPopoverSwatchView.swift
[21/33] Compiling ColorWell ColorWellPopoverViewController.swift
[22/33] Compiling ColorWell ColorWellSwatchSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:45:36: warning: static property 'defaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
43 | cachedImageLayer.updateConstructor { id in
44 | enum LocalCache {
45 | private static let defaultImage: NSImage = {
| |- warning: static property 'defaultImage' 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 'defaultImage' 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 | // Force unwrap is okay here, as the image is an AppKit builtin.
47 | // swiftlint:disable:next force_unwrapping
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/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:52:36: warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }()
51 |
52 | private static let enabledTintedForDarkAppearance: Any = {
| |- warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'enabledTintedForDarkAppearance' 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 | let image = defaultImage.tinted(to: .white, amount: 0.33)
54 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:58:36: warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }()
57 |
58 | private static let enabledTintedForLightAppearance: Any = {
| |- warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'enabledTintedForLightAppearance' 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
59 | let image = defaultImage.tinted(to: .black, amount: 0.20)
60 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:64:36: warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
62 | }()
63 |
64 | private static let disabledTintedForDarkAppearance: Any = {
| |- warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disabledTintedForDarkAppearance' 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
65 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
66 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:75:36: warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }()
74 |
75 | private static let disabledTintedForLightAppearance: Any = {
| |- warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disabledTintedForLightAppearance' 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
76 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
77 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:86:28: warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
84 | }()
85 |
86 | static let defaultContents: Any = {
| |- warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultContents' 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
87 | let scale = defaultImage.recommendedLayerContentsScale(0.0)
88 | return defaultImage.layerContents(forContentsScale: scale)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:216:34: warning: main actor-isolated property 'state' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
214 | init(_ dirtyRect: NSRect, segment: ColorWellToggleSegment) {
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
| `- warning: main actor-isolated property 'state' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
217 | self.isEnabled = segment.isEnabled
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:25:9: note: property declared here
23 |
24 | /// The segment's current state.
25 | var state: State {
| `- note: property declared here
26 | get {
27 | backingStates.current
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:217:38: warning: main actor-isolated property 'isEnabled' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
217 | self.isEnabled = segment.isEnabled
| `- warning: main actor-isolated property 'isEnabled' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
218 | }
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:43:9: note: property declared here
41 | /// A Boolean value that indicates whether the segment's
42 | /// color well is enabled.
43 | var isEnabled: Bool { colorWell?.isEnabled ?? false }
| `- note: property declared here
44 |
45 | /// The side containing this segment in its color well.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Style.swift:34:27: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension ColorWell {
9 | /// Constants that specify the appearance and behavior of a color well.
10 | @objc public enum Style: Int {
| `- note: consider making enum 'Style' conform to the 'Sendable' protocol
11 | /// The color well is displayed as a segmented control that displays
12 | /// the selected color alongside a dedicated button to show the system
:
32 | ///
33 | /// Equivalent to ``colorPanel``.
34 | public static let standard = Self.colorPanel
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.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
35 | }
36 | }
[23/33] Compiling ColorWell ColorWellToggleSegment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:45:36: warning: static property 'defaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
43 | cachedImageLayer.updateConstructor { id in
44 | enum LocalCache {
45 | private static let defaultImage: NSImage = {
| |- warning: static property 'defaultImage' 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 'defaultImage' 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 | // Force unwrap is okay here, as the image is an AppKit builtin.
47 | // swiftlint:disable:next force_unwrapping
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/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:52:36: warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }()
51 |
52 | private static let enabledTintedForDarkAppearance: Any = {
| |- warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'enabledTintedForDarkAppearance' 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 | let image = defaultImage.tinted(to: .white, amount: 0.33)
54 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:58:36: warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }()
57 |
58 | private static let enabledTintedForLightAppearance: Any = {
| |- warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'enabledTintedForLightAppearance' 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
59 | let image = defaultImage.tinted(to: .black, amount: 0.20)
60 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:64:36: warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
62 | }()
63 |
64 | private static let disabledTintedForDarkAppearance: Any = {
| |- warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disabledTintedForDarkAppearance' 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
65 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
66 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:75:36: warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }()
74 |
75 | private static let disabledTintedForLightAppearance: Any = {
| |- warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disabledTintedForLightAppearance' 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
76 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
77 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:86:28: warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
84 | }()
85 |
86 | static let defaultContents: Any = {
| |- warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultContents' 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
87 | let scale = defaultImage.recommendedLayerContentsScale(0.0)
88 | return defaultImage.layerContents(forContentsScale: scale)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:216:34: warning: main actor-isolated property 'state' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
214 | init(_ dirtyRect: NSRect, segment: ColorWellToggleSegment) {
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
| `- warning: main actor-isolated property 'state' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
217 | self.isEnabled = segment.isEnabled
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:25:9: note: property declared here
23 |
24 | /// The segment's current state.
25 | var state: State {
| `- note: property declared here
26 | get {
27 | backingStates.current
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:217:38: warning: main actor-isolated property 'isEnabled' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
217 | self.isEnabled = segment.isEnabled
| `- warning: main actor-isolated property 'isEnabled' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
218 | }
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:43:9: note: property declared here
41 | /// A Boolean value that indicates whether the segment's
42 | /// color well is enabled.
43 | var isEnabled: Bool { colorWell?.isEnabled ?? false }
| `- note: property declared here
44 |
45 | /// The side containing this segment in its color well.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Style.swift:34:27: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension ColorWell {
9 | /// Constants that specify the appearance and behavior of a color well.
10 | @objc public enum Style: Int {
| `- note: consider making enum 'Style' conform to the 'Sendable' protocol
11 | /// The color well is displayed as a segmented control that displays
12 | /// the selected color alongside a dedicated button to show the system
:
32 | ///
33 | /// Equivalent to ``colorPanel``.
34 | public static let standard = Self.colorPanel
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.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
35 | }
36 | }
[24/33] Compiling ColorWell Style.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:45:36: warning: static property 'defaultImage' is not concurrency-safe because non-'Sendable' type 'NSImage' may have shared mutable state; this is an error in the Swift 6 language mode
43 | cachedImageLayer.updateConstructor { id in
44 | enum LocalCache {
45 | private static let defaultImage: NSImage = {
| |- warning: static property 'defaultImage' 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 'defaultImage' 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 | // Force unwrap is okay here, as the image is an AppKit builtin.
47 | // swiftlint:disable:next force_unwrapping
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/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:52:36: warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
50 | }()
51 |
52 | private static let enabledTintedForDarkAppearance: Any = {
| |- warning: static property 'enabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'enabledTintedForDarkAppearance' 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 | let image = defaultImage.tinted(to: .white, amount: 0.33)
54 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:58:36: warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }()
57 |
58 | private static let enabledTintedForLightAppearance: Any = {
| |- warning: static property 'enabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'enabledTintedForLightAppearance' 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
59 | let image = defaultImage.tinted(to: .black, amount: 0.20)
60 | let scale = image.recommendedLayerContentsScale(0.0)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:64:36: warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
62 | }()
63 |
64 | private static let disabledTintedForDarkAppearance: Any = {
| |- warning: static property 'disabledTintedForDarkAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disabledTintedForDarkAppearance' 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
65 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
66 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:75:36: warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
73 | }()
74 |
75 | private static let disabledTintedForLightAppearance: Any = {
| |- warning: static property 'disabledTintedForLightAppearance' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disabledTintedForLightAppearance' 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
76 | let image = NSImage(size: defaultImage.size, flipped: false) { bounds in
77 | defaultImage
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:86:28: warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
84 | }()
85 |
86 | static let defaultContents: Any = {
| |- warning: static property 'defaultContents' is not concurrency-safe because non-'Sendable' type 'Any' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultContents' 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
87 | let scale = defaultImage.recommendedLayerContentsScale(0.0)
88 | return defaultImage.layerContents(forContentsScale: scale)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:216:34: warning: main actor-isolated property 'state' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
214 | init(_ dirtyRect: NSRect, segment: ColorWellToggleSegment) {
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
| `- warning: main actor-isolated property 'state' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
217 | self.isEnabled = segment.isEnabled
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:25:9: note: property declared here
23 |
24 | /// The segment's current state.
25 | var state: State {
| `- note: property declared here
26 | get {
27 | backingStates.current
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellToggleSegment.swift:217:38: warning: main actor-isolated property 'isEnabled' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
215 | self.dirtyRect = dirtyRect
216 | self.state = segment.state
217 | self.isEnabled = segment.isEnabled
| `- warning: main actor-isolated property 'isEnabled' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
218 | }
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Segments/ColorWellSegment.swift:43:9: note: property declared here
41 | /// A Boolean value that indicates whether the segment's
42 | /// color well is enabled.
43 | var isEnabled: Bool { colorWell?.isEnabled ?? false }
| `- note: property declared here
44 |
45 | /// The side containing this segment in its color well.
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Style.swift:34:27: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.Style' may have shared mutable state; this is an error in the Swift 6 language mode
8 | extension ColorWell {
9 | /// Constants that specify the appearance and behavior of a color well.
10 | @objc public enum Style: Int {
| `- note: consider making enum 'Style' conform to the 'Sendable' protocol
11 | /// The color well is displayed as a segmented control that displays
12 | /// the selected color alongside a dedicated button to show the system
:
32 | ///
33 | /// Equivalent to ``colorPanel``.
34 | public static let standard = Self.colorPanel
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'ColorWell.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
35 | }
36 | }
[25/33] Compiling ColorWell ConstructablePath.swift
[26/33] Compiling ColorWell Deprecated.swift
[27/33] Compiling ColorWell DrawingStyle.swift
[28/33] Compiling ColorWell ColorWellPopover.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:12:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | private(set) weak var colorWell: ColorWell?
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:13:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:15:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:16:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:17:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:19:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
20 | private(set) lazy var maxItemsPerRow = max(4, Int(Double(swatchCount).squareRoot().rounded(.up)))
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:23:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
22 |
23 | private(set) lazy var swatches: [ColorSwatch] = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
24 | guard let colorWell else {
25 | return []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:39:26: warning: main actor-isolated property 'popoverContext' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
| `- warning: main actor-isolated property 'popoverContext' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
40 | return
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: property declared here
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: property declared here
75 |
76 | /// A Boolean value that indicates whether this color well is the
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:42:20: warning: main actor-isolated property 'popoverContext' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
40 | return
41 | }
42 | colorWell?.popoverContext = nil
| `- warning: main actor-isolated property 'popoverContext' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: mutation of this property is only permitted within the actor
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: mutation of this property is only permitted within the actor
75 |
76 | /// A Boolean value that indicates whether this color well is the
[29/33] Compiling ColorWell ColorWellPopoverContainerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:12:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | private(set) weak var colorWell: ColorWell?
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:13:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:15:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:16:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:17:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:19:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
20 | private(set) lazy var maxItemsPerRow = max(4, Int(Double(swatchCount).squareRoot().rounded(.up)))
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:23:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
22 |
23 | private(set) lazy var swatches: [ColorSwatch] = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
24 | guard let colorWell else {
25 | return []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:39:26: warning: main actor-isolated property 'popoverContext' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
| `- warning: main actor-isolated property 'popoverContext' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
40 | return
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: property declared here
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: property declared here
75 |
76 | /// A Boolean value that indicates whether this color well is the
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:42:20: warning: main actor-isolated property 'popoverContext' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
40 | return
41 | }
42 | colorWell?.popoverContext = nil
| `- warning: main actor-isolated property 'popoverContext' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: mutation of this property is only permitted within the actor
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: mutation of this property is only permitted within the actor
75 |
76 | /// A Boolean value that indicates whether this color well is the
[30/33] Compiling ColorWell ColorWellPopoverContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:12:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | private(set) weak var colorWell: ColorWell?
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:13:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | private(set) lazy var popover = ColorWellPopover(context: self)
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:15:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 | private(set) lazy var popoverViewController = ColorWellPopoverViewController(context: self)
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:16:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:17:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
15 | private(set) lazy var containerView = ColorWellPopoverContainerView(context: self)
16 | private(set) lazy var layoutView = ColorWellPopoverLayoutView(context: self)
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:19:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
17 | private(set) lazy var swatchView = ColorWellPopoverSwatchView(context: self)
18 |
19 | private(set) lazy var swatchCount = colorWell?.swatchColors.count ?? 0
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
20 | private(set) lazy var maxItemsPerRow = max(4, Int(Double(swatchCount).squareRoot().rounded(.up)))
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:23:27: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
21 | private(set) lazy var rowCount = Int((Double(swatchCount) / Double(maxItemsPerRow)).rounded(.up))
22 |
23 | private(set) lazy var swatches: [ColorSwatch] = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
24 | guard let colorWell else {
25 | return []
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:39:26: warning: main actor-isolated property 'popoverContext' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
| `- warning: main actor-isolated property 'popoverContext' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
40 | return
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: property declared here
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: property declared here
75 |
76 | /// A Boolean value that indicates whether this color well is the
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/Popover/ColorWellPopoverContext.swift:42:20: warning: main actor-isolated property 'popoverContext' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Removes the strong reference to this instance from the color well.
38 | func removeStrongReference() {
| `- note: add '@MainActor' to make instance method 'removeStrongReference()' part of global actor 'MainActor'
39 | guard colorWell?.popoverContext === self else {
40 | return
41 | }
42 | colorWell?.popoverContext = nil
| `- warning: main actor-isolated property 'popoverContext' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:74:9: note: mutation of this property is only permitted within the actor
72 |
73 | /// The popover context associated with the color well.
74 | var popoverContext: ColorWellPopoverContext?
| `- note: mutation of this property is only permitted within the actor
75 |
76 | /// A Boolean value that indicates whether this color well is the
[31/33] Compiling ColorWell Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Extensions.swift:538:84: warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
534 | keyPath: KeyPath<Object, Value>,
535 | options: NSKeyValueObservingOptions = [],
536 | changeHandler: @escaping (Object, NSKeyValueObservedChange<Value>) -> Void
| `- note: parameter 'changeHandler' is implicitly non-sendable
537 | ) {
538 | let observation = object.observe(keyPath, options: options, changeHandler: changeHandler)
| `- warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
539 | insert(observation)
540 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:100:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
98 | var layoutView: ColorWellLayoutView {
99 | enum LocalCache {
100 | static let storage = Storage<ColorWellLayoutView>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:402:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
400 | private func configureColorPanelObservations(remove: Bool, setUp: Bool) {
401 | enum LocalCache {
402 | static let storage = Storage<Set<NSKeyValueObservation>>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
403 | }
404 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[32/33] Compiling ColorWell Storage.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Extensions.swift:538:84: warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
534 | keyPath: KeyPath<Object, Value>,
535 | options: NSKeyValueObservingOptions = [],
536 | changeHandler: @escaping (Object, NSKeyValueObservedChange<Value>) -> Void
| `- note: parameter 'changeHandler' is implicitly non-sendable
537 | ) {
538 | let observation = object.observe(keyPath, options: options, changeHandler: changeHandler)
| `- warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
539 | insert(observation)
540 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:100:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
98 | var layoutView: ColorWellLayoutView {
99 | enum LocalCache {
100 | static let storage = Storage<ColorWellLayoutView>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:402:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
400 | private func configureColorPanelObservations(remove: Bool, setUp: Bool) {
401 | enum LocalCache {
402 | static let storage = Storage<Set<NSKeyValueObservation>>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
403 | }
404 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
[33/33] Compiling ColorWell ColorWell.swift
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Extensions.swift:538:84: warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
534 | keyPath: KeyPath<Object, Value>,
535 | options: NSKeyValueObservingOptions = [],
536 | changeHandler: @escaping (Object, NSKeyValueObservedChange<Value>) -> Void
| `- note: parameter 'changeHandler' is implicitly non-sendable
537 | ) {
538 | let observation = object.observe(keyPath, options: options, changeHandler: changeHandler)
| `- warning: passing non-sendable parameter 'changeHandler' to function expecting a @Sendable closure
539 | insert(observation)
540 | }
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:100:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
98 | var layoutView: ColorWellLayoutView {
99 | enum LocalCache {
100 | static let storage = Storage<ColorWellLayoutView>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<ColorWellLayoutView>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Views/Cocoa/ColorWell.swift:402:24: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
400 | private func configureColorPanelObservations(remove: Bool, setUp: Bool) {
401 | enum LocalCache {
402 | static let storage = Storage<Set<NSKeyValueObservation>>()
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Storage<Set<NSKeyValueObservation>>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' 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
403 | }
404 |
/Users/admin/builder/spi-builder-workspace/Sources/ColorWell/Utilities/Storage.swift:13:7: note: generic class 'Storage' does not conform to the 'Sendable' protocol
11 | /// The object associations managed by instances of this type maintain
12 | /// strong references to their objects, and are made non-atomically.
13 | class Storage<Value> {
| `- note: generic class 'Storage' does not conform to the 'Sendable' protocol
14 | private var key: UnsafeRawPointer {
15 | UnsafeRawPointer(Unmanaged.passUnretained(self).toOpaque())
Build complete! (36.62s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ColorWell",
"name" : "ColorWell",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "ColorWell",
"targets" : [
"ColorWell"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ColorWellTests",
"module_type" : "SwiftTarget",
"name" : "ColorWellTests",
"path" : "Tests/ColorWellTests",
"sources" : [
"ColorWellTests.swift"
],
"target_dependencies" : [
"ColorWell"
],
"type" : "test"
},
{
"c99name" : "ColorWell",
"module_type" : "SwiftTarget",
"name" : "ColorWell",
"path" : "Sources/ColorWell",
"product_memberships" : [
"ColorWell"
],
"sources" : [
"Utilities/ActionButton.swift",
"Utilities/Cache.swift",
"Utilities/ColorComponents.swift",
"Utilities/ConstructablePath.swift",
"Utilities/Deprecated.swift",
"Utilities/DrawingStyle.swift",
"Utilities/Extensions.swift",
"Utilities/Storage.swift",
"Views/Cocoa/ColorWell.swift",
"Views/Cocoa/ColorWellBaseView.swift",
"Views/Cocoa/ColorWellLayoutView.swift",
"Views/Cocoa/Popover/ColorSwatch.swift",
"Views/Cocoa/Popover/ColorWellPopover.swift",
"Views/Cocoa/Popover/ColorWellPopoverContainerView.swift",
"Views/Cocoa/Popover/ColorWellPopoverContext.swift",
"Views/Cocoa/Popover/ColorWellPopoverLayoutView.swift",
"Views/Cocoa/Popover/ColorWellPopoverSwatchView.swift",
"Views/Cocoa/Popover/ColorWellPopoverViewController.swift",
"Views/Cocoa/Segments/ColorWellBorderedSwatchSegment.swift",
"Views/Cocoa/Segments/ColorWellPullDownSwatchSegment.swift",
"Views/Cocoa/Segments/ColorWellSegment.swift",
"Views/Cocoa/Segments/ColorWellSwatchSegment.swift",
"Views/Cocoa/Segments/ColorWellToggleSegment.swift",
"Views/Cocoa/Style.swift",
"Views/SwiftUI/ColorWellConfiguration.swift",
"Views/SwiftUI/ColorWellRepresentable.swift",
"Views/SwiftUI/ColorWellStyle.swift",
"Views/SwiftUI/ColorWellView.swift",
"Views/SwiftUI/EnvironmentValues.swift",
"Views/SwiftUI/ViewModifiers.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.