Build Information
Successful build of DSFColorPicker, reference 3.1.0 (bc2123
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 10:31:42 UTC.
Swift 6 data race errors: 12
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dagronf/DSFColorPicker.git
Reference: 3.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/DSFColorPicker
* tag 3.1.0 -> FETCH_HEAD
HEAD is now at bc21231 more dependency update
Cloned https://github.com/dagronf/DSFColorPicker.git
Revision (git rev-parse @):
bc21231c86aab2e2872f9099fd2e402ebe6ff308
SUCCESS checkout https://github.com/dagronf/DSFColorPicker.git at 3.1.0
Fetching https://github.com/dagronf/DSFAppearanceManager
Fetching https://github.com/dagronf/DSFColorSampler
[1/258] Fetching dsfcolorsampler
[177/656] Fetching dsfcolorsampler, dsfappearancemanager
Fetched https://github.com/dagronf/DSFColorSampler from cache (1.19s)
Fetched https://github.com/dagronf/DSFAppearanceManager from cache (1.19s)
Computing version for https://github.com/dagronf/DSFAppearanceManager
Computed https://github.com/dagronf/DSFAppearanceManager at 3.5.1 (0.55s)
Computing version for https://github.com/dagronf/DSFColorSampler
Computed https://github.com/dagronf/DSFColorSampler at 3.0.1 (0.56s)
Creating working copy for https://github.com/dagronf/DSFColorSampler
Working copy of https://github.com/dagronf/DSFColorSampler resolved at 3.0.1
Creating working copy for https://github.com/dagronf/DSFAppearanceManager
Working copy of https://github.com/dagronf/DSFAppearanceManager resolved at 3.5.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "dsfcolorpicker",
"name": "DSFColorPicker",
"url": "https://github.com/dagronf/DSFColorPicker.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFColorPicker",
"dependencies": [
{
"identity": "dsfcolorsampler",
"name": "DSFColorSampler",
"url": "https://github.com/dagronf/DSFColorSampler",
"version": "3.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFColorSampler",
"dependencies": [
]
},
{
"identity": "dsfappearancemanager",
"name": "DSFAppearanceManager",
"url": "https://github.com/dagronf/DSFAppearanceManager",
"version": "3.5.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFAppearanceManager",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/dagronf/DSFColorPicker.git
[1/393] Fetching dsfcolorpicker
Fetched https://github.com/dagronf/DSFColorPicker.git from cache (1.40s)
Fetching https://github.com/dagronf/DSFAppearanceManager from cache
Fetching https://github.com/dagronf/DSFColorSampler from cache
Fetched https://github.com/dagronf/DSFColorSampler from cache (0.49s)
Fetched https://github.com/dagronf/DSFAppearanceManager from cache (0.49s)
Computing version for https://github.com/dagronf/DSFAppearanceManager
Computed https://github.com/dagronf/DSFAppearanceManager at 3.5.1 (0.02s)
Computing version for https://github.com/dagronf/DSFColorSampler
Computed https://github.com/dagronf/DSFColorSampler at 3.0.1 (0.02s)
Creating working copy for https://github.com/dagronf/DSFColorSampler
Working copy of https://github.com/dagronf/DSFColorSampler resolved at 3.0.1
Creating working copy for https://github.com/dagronf/DSFColorPicker.git
Working copy of https://github.com/dagronf/DSFColorPicker.git resolved at 3.1.0 (bc21231)
Creating working copy for https://github.com/dagronf/DSFAppearanceManager
Working copy of https://github.com/dagronf/DSFAppearanceManager resolved at 3.5.1
warning: '.resolve-product-dependencies': dependency 'dsfcolorpicker' is not used by any target
Found 2 product dependencies
- DSFColorSampler
- DSFAppearanceManager
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/dagronf/DSFColorPicker.git
{
"default_localization" : "en",
"dependencies" : [
{
"identity" : "dsfcolorsampler",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "3.1.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFColorSampler"
},
{
"identity" : "dsfappearancemanager",
"requirement" : {
"range" : [
{
"lower_bound" : "3.5.0",
"upper_bound" : "3.6.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFAppearanceManager"
}
],
"manifest_display_name" : "DSFColorPicker",
"name" : "DSFColorPicker",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "DSFColorPicker",
"targets" : [
"DSFColorPicker"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFColorPicker",
"module_type" : "SwiftTarget",
"name" : "DSFColorPicker",
"path" : "Sources/DSFColorPicker",
"product_dependencies" : [
"DSFColorSampler",
"DSFAppearanceManager"
],
"product_memberships" : [
"DSFColorPicker"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/localizations/en.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
}
],
"sources" : [
"DSFColorPicker+SwiftUI.swift",
"DSFColorPickerPalette.swift",
"DSFColorPickerPopover.swift",
"DSFColorPickerTheme.swift",
"DSFColorPickerView.swift",
"private/ColorPanelButton.swift",
"private/DSFColorPickerButton+Private.swift",
"private/DSFColorPickerView+Private.swift",
"private/DSFColorSampler+icon.swift",
"private/NSColor+dsfextensions.swift",
"private/SemLock.swift",
"private/Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/6] Write sources
[3/6] Copying Info.plist
[3/6] Copying Localizable.strings
[5/6] Write swift-version--7754E27361AE5C74.txt
[7/20] Emitting module DSFColorSampler
[8/20] Compiling DSFColorSampler DSFColorSampler.swift
[9/20] Emitting module DSFAppearanceManager
[10/20] Compiling DSFAppearanceManager DSFAppearanceManager.swift
[11/20] Compiling DSFAppearanceManager NSView+Appearance.swift
[12/21] Compiling DSFAppearanceManager AutoplayAnimatedImages.swift
[13/21] Compiling DSFAppearanceManager DSFAppearanceCache.swift
[14/21] Compiling DSFAppearanceManager DSFAppearanceManager+ChangeDetector.swift
[15/21] Compiling DSFAppearanceManager NSWindow+Appearance.swift
[16/21] Compiling DSFAppearanceManager DSFSimpleLock.swift
[17/21] Compiling DSFAppearanceManager WeakBag.swift
[18/21] Compiling DSFAppearanceManager DSFDebounce.swift
[19/21] Compiling DSFAppearanceManager NSAppearance+extensions.swift
[20/21] Compiling DSFAppearanceManager DSFAppearanceManager+Listeners.swift
[21/21] Compiling DSFAppearanceManager WeakBox.swift
[22/34] Compiling DSFColorPicker Utils.swift
[23/34] Compiling DSFColorPicker NSColor+dsfextensions.swift
[24/34] Compiling DSFColorPicker SemLock.swift
[25/35] Compiling DSFColorPicker resource_bundle_accessor.swift
[26/35] Compiling DSFColorPicker DSFColorSampler+icon.swift
[27/35] Compiling DSFColorPicker DSFColorPickerView+Private.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerView+Private.swift:25:35: warning: cannot use class 'NSStackView' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
23 |
24 | extension DSFColorPickerView {
25 | public class DFColorPickerStack: NSStackView, NSAccessibilityGroup {
| `- warning: cannot use class 'NSStackView' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
26 | override init(frame frameRect: NSRect) {
27 | super.init(frame: frameRect)
AppKit.NSStackView:2:23: note: type declared here
1 | @available(macOS 10.9, *)
2 | @MainActor open class NSStackView : NSView {
| `- note: type declared here
3 | public convenience init(views: [NSView])
4 | @available(*, unavailable, renamed: "init(views:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerView+Private.swift:25:48: warning: cannot use protocol 'NSAccessibilityGroup' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
23 |
24 | extension DSFColorPickerView {
25 | public class DFColorPickerStack: NSStackView, NSAccessibilityGroup {
| `- warning: cannot use protocol 'NSAccessibilityGroup' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
26 | override init(frame frameRect: NSRect) {
27 | super.init(frame: frameRect)
AppKit.NSAccessibilityGroup:1:17: note: type declared here
1 | public protocol NSAccessibilityGroup : NSAccessibilityElementProtocol {
| `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerView+Private.swift:146:8: warning: call to main actor-isolated instance method 'configurePalette()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
63 | extension DSFColorPickerView {
64 |
65 | func configurePalette() {
| `- note: calls to instance method 'configurePalette()' from outside of its actor context are implicitly asynchronous
66 | if self.selectedPalette != nil {
67 | return
:
144 | open override func awakeFromNib() {
145 | super.awakeFromNib()
146 | self.configurePalette()
| `- warning: call to main actor-isolated instance method 'configurePalette()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerView+Private.swift:171:8: warning: call to main actor-isolated instance method 'configurePalette()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
63 | extension DSFColorPickerView {
64 |
65 | func configurePalette() {
| `- note: calls to instance method 'configurePalette()' from outside of its actor context are implicitly asynchronous
66 | if self.selectedPalette != nil {
67 | return
:
169 |
170 | open override func prepareForInterfaceBuilder() {
171 | self.configurePalette()
| `- warning: call to main actor-isolated instance method 'configurePalette()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 | self.invalidateIntrinsicContentSize()
173 | self.frame = self.colorPickerStack.frame
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerView+Private.swift:172:8: warning: call to main actor-isolated instance method 'invalidateIntrinsicContentSize()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
170 | open override func prepareForInterfaceBuilder() {
171 | self.configurePalette()
172 | self.invalidateIntrinsicContentSize()
| `- warning: call to main actor-isolated instance method 'invalidateIntrinsicContentSize()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | self.frame = self.colorPickerStack.frame
174 | }
AppKit.NSView:23:26: note: calls to instance method 'invalidateIntrinsicContentSize()' from outside of its actor context are implicitly asynchronous
21 | @MainActor open var intrinsicContentSize: NSSize { get }
22 | @available(macOS 10.7, *)
23 | @MainActor open func invalidateIntrinsicContentSize()
| `- note: calls to instance method 'invalidateIntrinsicContentSize()' from outside of its actor context are implicitly asynchronous
24 | @available(macOS 10.7, *)
25 | open func contentHuggingPriority(for orientation: NSLayoutConstraint.Orientation) -> NSLayoutConstraint.Priority
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerView+Private.swift:173:8: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
171 | self.configurePalette()
172 | self.invalidateIntrinsicContentSize()
173 | self.frame = self.colorPickerStack.frame
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
AppKit.NSView:60:25: note: mutation of this property is only permitted within the actor
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: mutation of this property is only permitted within the actor
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerView+Private.swift:173:38: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
171 | self.configurePalette()
172 | self.invalidateIntrinsicContentSize()
173 | self.frame = self.colorPickerStack.frame
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
AppKit.NSView:60:25: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
[28/35] Compiling DSFColorPicker DSFColorPickerButton+Private.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerButton+Private.swift:30:11: warning: main actor-isolated property 'drawLayer' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
28 | if self.showSelected {
29 | self.stateObserver = self.observe(\.cell?.state, options: [.new]) { _, state in
30 | self.drawLayer?.selected = state.newValue == .on
| `- warning: main actor-isolated property 'drawLayer' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
31 | self.setNeedsDisplay()
32 | }
:
161 | // MARK: Implementation
162 |
163 | private var drawLayer: DSFColorPickerButton.Layer?
| `- note: property declared here
164 |
165 | var startDragPoint: NSPoint?
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerButton+Private.swift:31:11: warning: call to main actor-isolated instance method 'setNeedsDisplay()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
29 | self.stateObserver = self.observe(\.cell?.state, options: [.new]) { _, state in
30 | self.drawLayer?.selected = state.newValue == .on
31 | self.setNeedsDisplay()
| `- warning: call to main actor-isolated instance method 'setNeedsDisplay()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 | } else {
AppKit.NSControl:9:26: note: calls to instance method 'setNeedsDisplay()' from outside of its actor context are implicitly asynchronous
7 | open func selectedTag() -> Int
8 | @available(macOS, introduced: 10.0, deprecated: 10.14, message: "Set the needsDisplay property to YES instead")
9 | @MainActor open func setNeedsDisplay()
| `- note: calls to instance method 'setNeedsDisplay()' from outside of its actor context are implicitly asynchronous
10 | @available(macOS, introduced: 10.0, deprecated: 10.14, message: "Override -layout instead. This method should never be called")
11 | open func calcSize()
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerButton+Private.swift:319:21: warning: main actor-isolated property 'color' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
172 | }
173 |
174 | var color: NSColor? {
| `- note: property declared here
175 | didSet {
176 | self.isEnabled = self.color != nil
:
317 | func pasteboard(_ pasteboard: NSPasteboard?, item _: NSPasteboardItem, provideDataForType type: NSPasteboard.PasteboardType) {
318 | if type == .color,
319 | let color = self.color {
| `- warning: main actor-isolated property 'color' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
320 | color.write(to: pasteboard!)
321 | }
[29/35] Compiling DSFColorPicker DSFColorPickerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:39:38: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
37 |
38 | /// Optional callback if you don't want to rely on notifications
39 | public var colorSelectedCallback: ((NSColor?) -> Void)?
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
40 |
41 | /// Posted whenever the selected color changes. Dictionary key for selected color
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:113:34: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
111 |
112 | /// The color that's currently selected in the control
113 | @objc public var selectedColor: NSColor? {
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
114 | didSet {
115 | self.selectedColorButton?.color = self.selectedColor
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:24:46: warning: cannot use class 'NSView' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
22 | // MARK: - Color picker view
23 |
24 | @IBDesignable open class DSFColorPickerView: NSView {
| `- warning: cannot use class 'NSView' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
25 | //static let defaultThemes = DSFColorPickerThemes()
26 |
AppKit.NSView:1:23: note: type declared here
1 | @MainActor open class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
| `- note: type declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/ColorPanelButton.swift:125:7: warning: main actor-isolated instance method 'appearanceDidChange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 | // Internal class for displaying the system color panel and handling the
26 | // well interactions
27 | internal class ColorPanelButton: NSButton, DSFAppearanceCacheNotifiable {
| `- note: add '@preconcurrency' to the 'DSFAppearanceCacheNotifiable' conformance to defer isolation checking to run time
28 | override init(frame frameRect: NSRect) {
29 | super.init(frame: frameRect)
:
123 |
124 | // Called when the system appearance changes
125 | func appearanceDidChange() {
| |- warning: main actor-isolated instance method 'appearanceDidChange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'appearanceDidChange()' to make this instance method not isolated to the actor
126 | self.usingEffectiveAppearance {
127 | if self.fakeWell.isActive {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFAppearanceManager/Sources/DSFAppearanceManager/DSFAppearanceCache.swift:38:13: note: mark the protocol requirement 'appearanceDidChange()' 'async' to allow actor-isolated conformances
36 | /// A protocol for receiving appearance notifications
37 | @objc public protocol DSFAppearanceCacheNotifiable: NSObjectProtocol {
38 | @objc func appearanceDidChange()
| `- note: mark the protocol requirement 'appearanceDidChange()' 'async' to allow actor-isolated conformances
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/ColorPanelButton.swift:114:11: warning: main actor-isolated property 'colorChange' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
36 | // Color change handling
37 | var colorObserver: NSKeyValueObservation?
38 | var colorChange: ((NSColor) -> Void)?
| `- note: property declared here
39 |
40 | // Reentrancy lock
:
112 | self.colorObserver = self.fakeWell.observe(\.color, options: [.old, .new], changeHandler: { [weak self] obj, change in
113 | if let value = change.newValue {
114 | self?.colorChange?(value)
| `- warning: main actor-isolated property 'colorChange' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
115 | }
116 | })
[30/35] Compiling DSFColorPicker ColorPanelButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:39:38: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
37 |
38 | /// Optional callback if you don't want to rely on notifications
39 | public var colorSelectedCallback: ((NSColor?) -> Void)?
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
40 |
41 | /// Posted whenever the selected color changes. Dictionary key for selected color
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:113:34: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
111 |
112 | /// The color that's currently selected in the control
113 | @objc public var selectedColor: NSColor? {
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
114 | didSet {
115 | self.selectedColorButton?.color = self.selectedColor
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:24:46: warning: cannot use class 'NSView' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
22 | // MARK: - Color picker view
23 |
24 | @IBDesignable open class DSFColorPickerView: NSView {
| `- warning: cannot use class 'NSView' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
25 | //static let defaultThemes = DSFColorPickerThemes()
26 |
AppKit.NSView:1:23: note: type declared here
1 | @MainActor open class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
| `- note: type declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/ColorPanelButton.swift:125:7: warning: main actor-isolated instance method 'appearanceDidChange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 | // Internal class for displaying the system color panel and handling the
26 | // well interactions
27 | internal class ColorPanelButton: NSButton, DSFAppearanceCacheNotifiable {
| `- note: add '@preconcurrency' to the 'DSFAppearanceCacheNotifiable' conformance to defer isolation checking to run time
28 | override init(frame frameRect: NSRect) {
29 | super.init(frame: frameRect)
:
123 |
124 | // Called when the system appearance changes
125 | func appearanceDidChange() {
| |- warning: main actor-isolated instance method 'appearanceDidChange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'appearanceDidChange()' to make this instance method not isolated to the actor
126 | self.usingEffectiveAppearance {
127 | if self.fakeWell.isActive {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFAppearanceManager/Sources/DSFAppearanceManager/DSFAppearanceCache.swift:38:13: note: mark the protocol requirement 'appearanceDidChange()' 'async' to allow actor-isolated conformances
36 | /// A protocol for receiving appearance notifications
37 | @objc public protocol DSFAppearanceCacheNotifiable: NSObjectProtocol {
38 | @objc func appearanceDidChange()
| `- note: mark the protocol requirement 'appearanceDidChange()' 'async' to allow actor-isolated conformances
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/ColorPanelButton.swift:114:11: warning: main actor-isolated property 'colorChange' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
36 | // Color change handling
37 | var colorObserver: NSKeyValueObservation?
38 | var colorChange: ((NSColor) -> Void)?
| `- note: property declared here
39 |
40 | // Reentrancy lock
:
112 | self.colorObserver = self.fakeWell.observe(\.color, options: [.old, .new], changeHandler: { [weak self] obj, change in
113 | if let value = change.newValue {
114 | self?.colorChange?(value)
| `- warning: main actor-isolated property 'colorChange' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
115 | }
116 | })
[31/35] Compiling DSFColorPicker DSFColorPickerPopover.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:65:16: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
63 |
64 | if let openPopover = self.popover {
65 | openPopover.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | self.popover = nil
67 | }
AppKit.NSPopover:34:26: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
32 | open func showRelativeToToolbarItem(_ toolbarItem: NSToolbarItem)
33 | @IBAction open func performClose(_ sender: Any?)
34 | @MainActor open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
35 | @available(macOS 10.7, *)
36 | open func accessibilityFrame() -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:69:18: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
67 | }
68 |
69 | self.popover = NSPopover()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | let viewController = DSFColorPickerPopoverViewController()
AppKit.NSPopover:3:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.7, *)
2 | @MainActor open class NSPopover : NSResponder, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
3 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
4 | public init?(coder: NSCoder)
5 | @IBOutlet weak open var delegate: (any NSPopoverDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:71:24: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
69 | self.popover = NSPopover()
70 |
71 | let viewController = DSFColorPickerPopoverViewController()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
72 |
73 | // Configure the color picker view
AppKit.NSViewController:43:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
41 | @available(macOS 10.10, *)
42 | open func viewDidLayout()
43 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
44 | @available(macOS 10.5, *)
45 | open var identifier: NSUserInterfaceItemIdentifier? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:75:34: warning: call to main actor-isolated instance method 'configure(name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | var colorView: DSFColorPickerView?
31 |
32 | internal func configure(name: String) -> DSFColorPickerView {
| `- note: calls to instance method 'configure(name:)' from outside of its actor context are implicitly asynchronous
33 | self.view = NSView()
34 | self.view.translatesAutoresizingMaskIntoConstraints = false
:
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
73 | // Configure the color picker view
74 |
75 | let colorView = viewController.configure(name: name)
| `- warning: call to main actor-isolated instance method 'configure(name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | colorView.selectedPalette = theme.first()
77 | colorView.showPalettes = showPalettes
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:76:13: warning: main actor-isolated property 'selectedPalette' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
74 |
75 | let colorView = viewController.configure(name: name)
76 | colorView.selectedPalette = theme.first()
| `- warning: main actor-isolated property 'selectedPalette' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
77 | colorView.showPalettes = showPalettes
78 | colorView.showCurrent = showCurrent
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:94:13: note: mutation of this property is only permitted within the actor
92 |
93 | /// The theme being used for the picker. If nil, uses the default built-in theme
94 | public var selectedPalette: DSFColorPickerPalette? {
| `- note: mutation of this property is only permitted within the actor
95 | didSet {
96 | self.updateLayoutForSelectedPalette()
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:77:13: warning: main actor-isolated property 'showPalettes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
75 | let colorView = viewController.configure(name: name)
76 | colorView.selectedPalette = theme.first()
77 | colorView.showPalettes = showPalettes
| `- warning: main actor-isolated property 'showPalettes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
78 | colorView.showCurrent = showCurrent
79 | colorView.showRecents = showRecents
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:66:28: note: mutation of this property is only permitted within the actor
64 |
65 | /// Show or hide the themes popup button
66 | @IBInspectable public var showPalettes: Bool = false
| `- note: mutation of this property is only permitted within the actor
67 |
68 | /// Show or hide the button with the currently selected color
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:78:13: warning: main actor-isolated property 'showCurrent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
76 | colorView.selectedPalette = theme.first()
77 | colorView.showPalettes = showPalettes
78 | colorView.showCurrent = showCurrent
| `- warning: main actor-isolated property 'showCurrent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
79 | colorView.showRecents = showRecents
80 | colorView.showTitles = showTitles
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:69:28: note: mutation of this property is only permitted within the actor
67 |
68 | /// Show or hide the button with the currently selected color
69 | @IBInspectable public var showCurrent: Bool = true
| `- note: mutation of this property is only permitted within the actor
70 |
71 | /// Show or hide the recent colors list
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:79:13: warning: main actor-isolated property 'showRecents' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
77 | colorView.showPalettes = showPalettes
78 | colorView.showCurrent = showCurrent
79 | colorView.showRecents = showRecents
| `- warning: main actor-isolated property 'showRecents' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
80 | colorView.showTitles = showTitles
81 | colorView.showColorDropper = showColorDropper
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:72:28: note: mutation of this property is only permitted within the actor
70 |
71 | /// Show or hide the recent colors list
72 | @IBInspectable public var showRecents: Bool = true
| `- note: mutation of this property is only permitted within the actor
73 |
74 | /// Show or hide the titles in the control
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:80:13: warning: main actor-isolated property 'showTitles' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
78 | colorView.showCurrent = showCurrent
79 | colorView.showRecents = showRecents
80 | colorView.showTitles = showTitles
| `- warning: main actor-isolated property 'showTitles' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
81 | colorView.showColorDropper = showColorDropper
82 | colorView.showColorPaletteButton = showColorPanelButton
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:75:28: note: mutation of this property is only permitted within the actor
73 |
74 | /// Show or hide the titles in the control
75 | @IBInspectable public var showTitles: Bool = true
| `- note: mutation of this property is only permitted within the actor
76 |
77 | /// Show or hide the color dropper
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:81:13: warning: main actor-isolated property 'showColorDropper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
79 | colorView.showRecents = showRecents
80 | colorView.showTitles = showTitles
81 | colorView.showColorDropper = showColorDropper
| `- warning: main actor-isolated property 'showColorDropper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
82 | colorView.showColorPaletteButton = showColorPanelButton
83 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:78:28: note: mutation of this property is only permitted within the actor
76 |
77 | /// Show or hide the color dropper
78 | @IBInspectable public var showColorDropper: Bool = true
| `- note: mutation of this property is only permitted within the actor
79 |
80 | /// Show or hide the 'show colors' button
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:82:13: warning: main actor-isolated property 'showColorPaletteButton' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
80 | colorView.showTitles = showTitles
81 | colorView.showColorDropper = showColorDropper
82 | colorView.showColorPaletteButton = showColorPanelButton
| `- warning: main actor-isolated property 'showColorPaletteButton' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
83 |
84 | colorView.updateLayoutForSelectedPalette()
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:81:28: note: mutation of this property is only permitted within the actor
79 |
80 | /// Show or hide the 'show colors' button
81 | @IBInspectable public var showColorPaletteButton: Bool = false
| `- note: mutation of this property is only permitted within the actor
82 |
83 | /// Cell width and height
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:84:13: warning: call to main actor-isolated instance method 'updateLayoutForSelectedPalette()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
82 | colorView.showColorPaletteButton = showColorPanelButton
83 |
84 | colorView.updateLayoutForSelectedPalette()
| `- warning: call to main actor-isolated instance method 'updateLayoutForSelectedPalette()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 |
86 | // Configure the popover
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerView+Private.swift:184:7: note: calls to instance method 'updateLayoutForSelectedPalette()' from outside of its actor context are implicitly asynchronous
182 |
183 | extension DSFColorPickerView {
184 | func updateLayoutForSelectedPalette() {
| `- note: calls to instance method 'updateLayoutForSelectedPalette()' from outside of its actor context are implicitly asynchronous
185 | self.allColorButtons.removeAll()
186 | self.recentColorButtons.removeAll()
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:88:28: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
86 | // Configure the popover
87 |
88 | let colorPickerPopover = NSPopover()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
89 | self.popover = colorPickerPopover
90 |
AppKit.NSPopover:3:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.7, *)
2 | @MainActor open class NSPopover : NSResponder, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
3 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
4 | public init?(coder: NSCoder)
5 | @IBOutlet weak open var delegate: (any NSPopoverDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:91:22: warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
89 | self.popover = colorPickerPopover
90 |
91 | colorPickerPopover.contentViewController = viewController
| `- warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
92 | colorPickerPopover.behavior = .semitransient
93 | colorPickerPopover.delegate = self
AppKit.NSPopover:12:24: note: mutation of this property is only permitted within the actor
10 | open var behavior: NSPopover.Behavior { get set }
11 | open var animates: Bool { get set }
12 | @IBOutlet open var contentViewController: NSViewController? { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var contentSize: NSSize { get set }
14 | open var isShown: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:92:22: warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
90 |
91 | colorPickerPopover.contentViewController = viewController
92 | colorPickerPopover.behavior = .semitransient
| `- warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
93 | colorPickerPopover.delegate = self
94 | colorPickerPopover.contentSize = colorView.fittingSize
AppKit.NSPopover:10:14: note: mutation of this property is only permitted within the actor
8 | @available(macOS 10.10, *)
9 | open var effectiveAppearance: NSAppearance { get }
10 | open var behavior: NSPopover.Behavior { get set }
| `- note: mutation of this property is only permitted within the actor
11 | open var animates: Bool { get set }
12 | @IBOutlet open var contentViewController: NSViewController? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:93:22: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
91 | colorPickerPopover.contentViewController = viewController
92 | colorPickerPopover.behavior = .semitransient
93 | colorPickerPopover.delegate = self
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
94 | colorPickerPopover.contentSize = colorView.fittingSize
95 |
AppKit.NSPopover:5:29: note: mutation of this property is only permitted within the actor
3 | @MainActor public init()
4 | public init?(coder: NSCoder)
5 | @IBOutlet weak open var delegate: (any NSPopoverDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(macOS 10.10, *)
7 | open var appearance: NSAppearance? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:94:22: warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
92 | colorPickerPopover.behavior = .semitransient
93 | colorPickerPopover.delegate = self
94 | colorPickerPopover.contentSize = colorView.fittingSize
| `- warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
95 |
96 | // And show it!
AppKit.NSPopover:13:14: note: mutation of this property is only permitted within the actor
11 | open var animates: Bool { get set }
12 | @IBOutlet open var contentViewController: NSViewController? { get set }
13 | open var contentSize: NSSize { get set }
| `- note: mutation of this property is only permitted within the actor
14 | open var isShown: Bool { get }
15 | @available(swift, obsoleted: 3, renamed: "isShown")
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:94:46: warning: main actor-isolated property 'fittingSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
92 | colorPickerPopover.behavior = .semitransient
93 | colorPickerPopover.delegate = self
94 | colorPickerPopover.contentSize = colorView.fittingSize
| `- warning: main actor-isolated property 'fittingSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
95 |
96 | // And show it!
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var fittingSize: NSSize { get }
| `- note: property declared here
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:98:22: warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
96 | // And show it!
97 |
98 | colorPickerPopover.show(relativeTo: sender.bounds, of: sender, preferredEdge: preferredEdge)
| `- warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
AppKit.NSPopover:25:26: note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
23 | @available(macOS 14.0, *)
24 | open var hasFullSizeContent: Bool { get set }
25 | @MainActor open func show(relativeTo positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)
| `- note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
26 | @available(swift, obsoleted: 3, renamed: "show(relativeTo:of:preferredEdge:)")
27 | open func showRelativeToRect(_ positioningRect: NSRect, ofView positioningView: NSView, preferredEdge: NSRectEdge)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:98:46: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
96 | // And show it!
97 |
98 | colorPickerPopover.show(relativeTo: sender.bounds, of: sender, preferredEdge: preferredEdge)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerTheme.swift:67:13: warning: let '__defaultPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
65 |
66 | /// A palette that mimics the color palette in Preview
67 | private let __defaultPalette: DSFColorPickerPalette = {
| |- warning: let '__defaultPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '__defaultPalette' 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
68 | let colorLiterals = [
69 | [#colorLiteral(red: 0.880, green: 0.929, blue: 0.831, alpha: 1), #colorLiteral(red: 0.970, green: 0.983, blue: 0.859, alpha: 1), #colorLiteral(red: 0.991, green: 0.994, blue: 0.862, alpha: 1), #colorLiteral(red: 0.997, green: 0.949, blue: 0.831, alpha: 1), #colorLiteral(red: 1.000, green: 0.928, blue: 0.833, alpha: 1), #colorLiteral(red: 1.000, green: 0.886, blue: 0.837, alpha: 1), #colorLiteral(red: 0.998, green: 0.857, blue: 0.848, alpha: 1), #colorLiteral(red: 0.971, green: 0.829, blue: 0.876, alpha: 1), #colorLiteral(red: 0.941, green: 0.790, blue: 0.998, alpha: 1), #colorLiteral(red: 0.846, green: 0.791, blue: 0.999, alpha: 1), #colorLiteral(red: 0.832, green: 0.887, blue: 0.998, alpha: 1), #colorLiteral(red: 0.791, green: 0.941, blue: 0.999, alpha: 1)],
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:25:14: note: class 'DSFColorPickerPalette' does not conform to the 'Sendable' protocol
23 |
24 | /// A color palette
25 | public class DSFColorPickerPalette {
| `- note: class 'DSFColorPickerPalette' does not conform to the 'Sendable' protocol
26 | /// The name of the palette
27 | public let name: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:92:22: warning: static property 'emptyPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// A color palette
25 | public class DSFColorPickerPalette {
| `- note: class 'DSFColorPickerPalette' does not conform to the 'Sendable' protocol
26 | /// The name of the palette
27 | public let name: String
:
90 |
91 | /// Standard 'empty' palette
92 | internal static let emptyPalette = DSFColorPickerPalette(name: "", colors: [[NSColor.clear]])
| |- warning: static property 'emptyPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyPalette' 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
93 |
94 | private static func validateGrid<T>(_ gridData: [[T]]) -> Bool {
[32/35] Compiling DSFColorPicker DSFColorPickerTheme.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:65:16: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
63 |
64 | if let openPopover = self.popover {
65 | openPopover.close()
| `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | self.popover = nil
67 | }
AppKit.NSPopover:34:26: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
32 | open func showRelativeToToolbarItem(_ toolbarItem: NSToolbarItem)
33 | @IBAction open func performClose(_ sender: Any?)
34 | @MainActor open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
35 | @available(macOS 10.7, *)
36 | open func accessibilityFrame() -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:69:18: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
67 | }
68 |
69 | self.popover = NSPopover()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | let viewController = DSFColorPickerPopoverViewController()
AppKit.NSPopover:3:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.7, *)
2 | @MainActor open class NSPopover : NSResponder, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
3 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
4 | public init?(coder: NSCoder)
5 | @IBOutlet weak open var delegate: (any NSPopoverDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:71:24: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
69 | self.popover = NSPopover()
70 |
71 | let viewController = DSFColorPickerPopoverViewController()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
72 |
73 | // Configure the color picker view
AppKit.NSViewController:43:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
41 | @available(macOS 10.10, *)
42 | open func viewDidLayout()
43 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
44 | @available(macOS 10.5, *)
45 | open var identifier: NSUserInterfaceItemIdentifier? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:75:34: warning: call to main actor-isolated instance method 'configure(name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | var colorView: DSFColorPickerView?
31 |
32 | internal func configure(name: String) -> DSFColorPickerView {
| `- note: calls to instance method 'configure(name:)' from outside of its actor context are implicitly asynchronous
33 | self.view = NSView()
34 | self.view.translatesAutoresizingMaskIntoConstraints = false
:
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
73 | // Configure the color picker view
74 |
75 | let colorView = viewController.configure(name: name)
| `- warning: call to main actor-isolated instance method 'configure(name:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | colorView.selectedPalette = theme.first()
77 | colorView.showPalettes = showPalettes
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:76:13: warning: main actor-isolated property 'selectedPalette' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
74 |
75 | let colorView = viewController.configure(name: name)
76 | colorView.selectedPalette = theme.first()
| `- warning: main actor-isolated property 'selectedPalette' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
77 | colorView.showPalettes = showPalettes
78 | colorView.showCurrent = showCurrent
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:94:13: note: mutation of this property is only permitted within the actor
92 |
93 | /// The theme being used for the picker. If nil, uses the default built-in theme
94 | public var selectedPalette: DSFColorPickerPalette? {
| `- note: mutation of this property is only permitted within the actor
95 | didSet {
96 | self.updateLayoutForSelectedPalette()
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:77:13: warning: main actor-isolated property 'showPalettes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
75 | let colorView = viewController.configure(name: name)
76 | colorView.selectedPalette = theme.first()
77 | colorView.showPalettes = showPalettes
| `- warning: main actor-isolated property 'showPalettes' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
78 | colorView.showCurrent = showCurrent
79 | colorView.showRecents = showRecents
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:66:28: note: mutation of this property is only permitted within the actor
64 |
65 | /// Show or hide the themes popup button
66 | @IBInspectable public var showPalettes: Bool = false
| `- note: mutation of this property is only permitted within the actor
67 |
68 | /// Show or hide the button with the currently selected color
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:78:13: warning: main actor-isolated property 'showCurrent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
76 | colorView.selectedPalette = theme.first()
77 | colorView.showPalettes = showPalettes
78 | colorView.showCurrent = showCurrent
| `- warning: main actor-isolated property 'showCurrent' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
79 | colorView.showRecents = showRecents
80 | colorView.showTitles = showTitles
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:69:28: note: mutation of this property is only permitted within the actor
67 |
68 | /// Show or hide the button with the currently selected color
69 | @IBInspectable public var showCurrent: Bool = true
| `- note: mutation of this property is only permitted within the actor
70 |
71 | /// Show or hide the recent colors list
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:79:13: warning: main actor-isolated property 'showRecents' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
77 | colorView.showPalettes = showPalettes
78 | colorView.showCurrent = showCurrent
79 | colorView.showRecents = showRecents
| `- warning: main actor-isolated property 'showRecents' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
80 | colorView.showTitles = showTitles
81 | colorView.showColorDropper = showColorDropper
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:72:28: note: mutation of this property is only permitted within the actor
70 |
71 | /// Show or hide the recent colors list
72 | @IBInspectable public var showRecents: Bool = true
| `- note: mutation of this property is only permitted within the actor
73 |
74 | /// Show or hide the titles in the control
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:80:13: warning: main actor-isolated property 'showTitles' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
78 | colorView.showCurrent = showCurrent
79 | colorView.showRecents = showRecents
80 | colorView.showTitles = showTitles
| `- warning: main actor-isolated property 'showTitles' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
81 | colorView.showColorDropper = showColorDropper
82 | colorView.showColorPaletteButton = showColorPanelButton
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:75:28: note: mutation of this property is only permitted within the actor
73 |
74 | /// Show or hide the titles in the control
75 | @IBInspectable public var showTitles: Bool = true
| `- note: mutation of this property is only permitted within the actor
76 |
77 | /// Show or hide the color dropper
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:81:13: warning: main actor-isolated property 'showColorDropper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
79 | colorView.showRecents = showRecents
80 | colorView.showTitles = showTitles
81 | colorView.showColorDropper = showColorDropper
| `- warning: main actor-isolated property 'showColorDropper' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
82 | colorView.showColorPaletteButton = showColorPanelButton
83 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:78:28: note: mutation of this property is only permitted within the actor
76 |
77 | /// Show or hide the color dropper
78 | @IBInspectable public var showColorDropper: Bool = true
| `- note: mutation of this property is only permitted within the actor
79 |
80 | /// Show or hide the 'show colors' button
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:82:13: warning: main actor-isolated property 'showColorPaletteButton' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
80 | colorView.showTitles = showTitles
81 | colorView.showColorDropper = showColorDropper
82 | colorView.showColorPaletteButton = showColorPanelButton
| `- warning: main actor-isolated property 'showColorPaletteButton' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
83 |
84 | colorView.updateLayoutForSelectedPalette()
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:81:28: note: mutation of this property is only permitted within the actor
79 |
80 | /// Show or hide the 'show colors' button
81 | @IBInspectable public var showColorPaletteButton: Bool = false
| `- note: mutation of this property is only permitted within the actor
82 |
83 | /// Cell width and height
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:84:13: warning: call to main actor-isolated instance method 'updateLayoutForSelectedPalette()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
82 | colorView.showColorPaletteButton = showColorPanelButton
83 |
84 | colorView.updateLayoutForSelectedPalette()
| `- warning: call to main actor-isolated instance method 'updateLayoutForSelectedPalette()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
85 |
86 | // Configure the popover
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerView+Private.swift:184:7: note: calls to instance method 'updateLayoutForSelectedPalette()' from outside of its actor context are implicitly asynchronous
182 |
183 | extension DSFColorPickerView {
184 | func updateLayoutForSelectedPalette() {
| `- note: calls to instance method 'updateLayoutForSelectedPalette()' from outside of its actor context are implicitly asynchronous
185 | self.allColorButtons.removeAll()
186 | self.recentColorButtons.removeAll()
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:88:28: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
86 | // Configure the popover
87 |
88 | let colorPickerPopover = NSPopover()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
89 | self.popover = colorPickerPopover
90 |
AppKit.NSPopover:3:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.7, *)
2 | @MainActor open class NSPopover : NSResponder, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
3 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
4 | public init?(coder: NSCoder)
5 | @IBOutlet weak open var delegate: (any NSPopoverDelegate)? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:91:22: warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
89 | self.popover = colorPickerPopover
90 |
91 | colorPickerPopover.contentViewController = viewController
| `- warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
92 | colorPickerPopover.behavior = .semitransient
93 | colorPickerPopover.delegate = self
AppKit.NSPopover:12:24: note: mutation of this property is only permitted within the actor
10 | open var behavior: NSPopover.Behavior { get set }
11 | open var animates: Bool { get set }
12 | @IBOutlet open var contentViewController: NSViewController? { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var contentSize: NSSize { get set }
14 | open var isShown: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:92:22: warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
90 |
91 | colorPickerPopover.contentViewController = viewController
92 | colorPickerPopover.behavior = .semitransient
| `- warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
93 | colorPickerPopover.delegate = self
94 | colorPickerPopover.contentSize = colorView.fittingSize
AppKit.NSPopover:10:14: note: mutation of this property is only permitted within the actor
8 | @available(macOS 10.10, *)
9 | open var effectiveAppearance: NSAppearance { get }
10 | open var behavior: NSPopover.Behavior { get set }
| `- note: mutation of this property is only permitted within the actor
11 | open var animates: Bool { get set }
12 | @IBOutlet open var contentViewController: NSViewController? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:93:22: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
91 | colorPickerPopover.contentViewController = viewController
92 | colorPickerPopover.behavior = .semitransient
93 | colorPickerPopover.delegate = self
| `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
94 | colorPickerPopover.contentSize = colorView.fittingSize
95 |
AppKit.NSPopover:5:29: note: mutation of this property is only permitted within the actor
3 | @MainActor public init()
4 | public init?(coder: NSCoder)
5 | @IBOutlet weak open var delegate: (any NSPopoverDelegate)? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(macOS 10.10, *)
7 | open var appearance: NSAppearance? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:94:22: warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
92 | colorPickerPopover.behavior = .semitransient
93 | colorPickerPopover.delegate = self
94 | colorPickerPopover.contentSize = colorView.fittingSize
| `- warning: main actor-isolated property 'contentSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
95 |
96 | // And show it!
AppKit.NSPopover:13:14: note: mutation of this property is only permitted within the actor
11 | open var animates: Bool { get set }
12 | @IBOutlet open var contentViewController: NSViewController? { get set }
13 | open var contentSize: NSSize { get set }
| `- note: mutation of this property is only permitted within the actor
14 | open var isShown: Bool { get }
15 | @available(swift, obsoleted: 3, renamed: "isShown")
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:94:46: warning: main actor-isolated property 'fittingSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
92 | colorPickerPopover.behavior = .semitransient
93 | colorPickerPopover.delegate = self
94 | colorPickerPopover.contentSize = colorView.fittingSize
| `- warning: main actor-isolated property 'fittingSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
95 |
96 | // And show it!
AppKit.NSView:3:25: note: property declared here
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var fittingSize: NSSize { get }
| `- note: property declared here
4 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:98:22: warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
96 | // And show it!
97 |
98 | colorPickerPopover.show(relativeTo: sender.bounds, of: sender, preferredEdge: preferredEdge)
| `- warning: call to main actor-isolated instance method 'show(relativeTo:of:preferredEdge:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
AppKit.NSPopover:25:26: note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
23 | @available(macOS 14.0, *)
24 | open var hasFullSizeContent: Bool { get set }
25 | @MainActor open func show(relativeTo positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)
| `- note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
26 | @available(swift, obsoleted: 3, renamed: "show(relativeTo:of:preferredEdge:)")
27 | open func showRelativeToRect(_ positioningRect: NSRect, ofView positioningView: NSView, preferredEdge: NSRectEdge)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPopover.swift:98:46: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
52 | public func showPopover(
| `- note: add '@MainActor' to make instance method 'showPopover(named:theme:showPalettes:showCurrent:showRecents:showTitles:showColorDropper:showColorPanelButton:sender:preferredEdge:)' part of global actor 'MainActor'
53 | named name: String,
54 | theme: DSFColorPickerTheme,
:
96 | // And show it!
97 |
98 | colorPickerPopover.show(relativeTo: sender.bounds, of: sender, preferredEdge: preferredEdge)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerTheme.swift:67:13: warning: let '__defaultPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
65 |
66 | /// A palette that mimics the color palette in Preview
67 | private let __defaultPalette: DSFColorPickerPalette = {
| |- warning: let '__defaultPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '__defaultPalette' 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
68 | let colorLiterals = [
69 | [#colorLiteral(red: 0.880, green: 0.929, blue: 0.831, alpha: 1), #colorLiteral(red: 0.970, green: 0.983, blue: 0.859, alpha: 1), #colorLiteral(red: 0.991, green: 0.994, blue: 0.862, alpha: 1), #colorLiteral(red: 0.997, green: 0.949, blue: 0.831, alpha: 1), #colorLiteral(red: 1.000, green: 0.928, blue: 0.833, alpha: 1), #colorLiteral(red: 1.000, green: 0.886, blue: 0.837, alpha: 1), #colorLiteral(red: 0.998, green: 0.857, blue: 0.848, alpha: 1), #colorLiteral(red: 0.971, green: 0.829, blue: 0.876, alpha: 1), #colorLiteral(red: 0.941, green: 0.790, blue: 0.998, alpha: 1), #colorLiteral(red: 0.846, green: 0.791, blue: 0.999, alpha: 1), #colorLiteral(red: 0.832, green: 0.887, blue: 0.998, alpha: 1), #colorLiteral(red: 0.791, green: 0.941, blue: 0.999, alpha: 1)],
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:25:14: note: class 'DSFColorPickerPalette' does not conform to the 'Sendable' protocol
23 |
24 | /// A color palette
25 | public class DSFColorPickerPalette {
| `- note: class 'DSFColorPickerPalette' does not conform to the 'Sendable' protocol
26 | /// The name of the palette
27 | public let name: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:92:22: warning: static property 'emptyPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// A color palette
25 | public class DSFColorPickerPalette {
| `- note: class 'DSFColorPickerPalette' does not conform to the 'Sendable' protocol
26 | /// The name of the palette
27 | public let name: String
:
90 |
91 | /// Standard 'empty' palette
92 | internal static let emptyPalette = DSFColorPickerPalette(name: "", colors: [[NSColor.clear]])
| |- warning: static property 'emptyPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyPalette' 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
93 |
94 | private static func validateGrid<T>(_ gridData: [[T]]) -> Bool {
[33/35] Compiling DSFColorPicker DSFColorPicker+SwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:106:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
104 | public static let palettes = DisplaySettings(rawValue: 1 << 6)
105 | /// The default settings
106 | public static let `default`: DisplaySettings = [.recents, .titles, .colorDropper, .current]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 |
108 | public let rawValue: Int
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:94:21: warning: static property 'recents' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
| |- warning: static property 'recents' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recents' 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
95 | /// Show titles on each of the colorpicker components
96 | public static let titles = DisplaySettings(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:96:21: warning: static property 'titles' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
95 | /// Show titles on each of the colorpicker components
96 | public static let titles = DisplaySettings(rawValue: 1 << 1)
| |- warning: static property 'titles' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'titles' 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
97 | /// Show the color picker
98 | public static let colorDropper = DisplaySettings(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:98:21: warning: static property 'colorDropper' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
96 | public static let titles = DisplaySettings(rawValue: 1 << 1)
97 | /// Show the color picker
98 | public static let colorDropper = DisplaySettings(rawValue: 1 << 3)
| |- warning: static property 'colorDropper' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'colorDropper' 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
99 | /// Show the current color
100 | public static let current = DisplaySettings(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:100:21: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
98 | public static let colorDropper = DisplaySettings(rawValue: 1 << 3)
99 | /// Show the current color
100 | public static let current = DisplaySettings(rawValue: 1 << 4)
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' 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 | /// Show the system color picker
102 | public static let colorPicker = DisplaySettings(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:102:21: warning: static property 'colorPicker' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
100 | public static let current = DisplaySettings(rawValue: 1 << 4)
101 | /// Show the system color picker
102 | public static let colorPicker = DisplaySettings(rawValue: 1 << 5)
| |- warning: static property 'colorPicker' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'colorPicker' 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
103 | /// Show the palette picker
104 | public static let palettes = DisplaySettings(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:104:21: warning: static property 'palettes' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
102 | public static let colorPicker = DisplaySettings(rawValue: 1 << 5)
103 | /// Show the palette picker
104 | public static let palettes = DisplaySettings(rawValue: 1 << 6)
| |- warning: static property 'palettes' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'palettes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | /// The default settings
106 | public static let `default`: DisplaySettings = [.recents, .titles, .colorDropper, .current]
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:40:62: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
38 | /// - columns: The column count
39 | /// - colors: An array of colors
40 | public init(name: String, rows: Int, columns: Int, colors: [NSColor?]) {
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
41 | assert(rows * columns == colors.count)
42 |
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:58:38: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
56 | /// - name: The palette name
57 | /// - colors: An array of colors
58 | public init(name: String, colors: [[NSColor?]]) {
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
59 | assert(DSFColorPickerPalette.validateGrid(colors))
60 | self.name = name
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:92:22: warning: static property 'emptyPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// A color palette
25 | public class DSFColorPickerPalette {
| `- note: class 'DSFColorPickerPalette' does not conform to the 'Sendable' protocol
26 | /// The name of the palette
27 | public let name: String
:
90 |
91 | /// Standard 'empty' palette
92 | internal static let emptyPalette = DSFColorPickerPalette(name: "", colors: [[NSColor.clear]])
| |- warning: static property 'emptyPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyPalette' 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
93 |
94 | private static func validateGrid<T>(_ gridData: [[T]]) -> Bool {
[34/35] Compiling DSFColorPicker DSFColorPickerPalette.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:106:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
104 | public static let palettes = DisplaySettings(rawValue: 1 << 6)
105 | /// The default settings
106 | public static let `default`: DisplaySettings = [.recents, .titles, .colorDropper, .current]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 |
108 | public let rawValue: Int
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:94:21: warning: static property 'recents' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
| |- warning: static property 'recents' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recents' 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
95 | /// Show titles on each of the colorpicker components
96 | public static let titles = DisplaySettings(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:96:21: warning: static property 'titles' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
95 | /// Show titles on each of the colorpicker components
96 | public static let titles = DisplaySettings(rawValue: 1 << 1)
| |- warning: static property 'titles' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'titles' 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
97 | /// Show the color picker
98 | public static let colorDropper = DisplaySettings(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:98:21: warning: static property 'colorDropper' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
96 | public static let titles = DisplaySettings(rawValue: 1 << 1)
97 | /// Show the color picker
98 | public static let colorDropper = DisplaySettings(rawValue: 1 << 3)
| |- warning: static property 'colorDropper' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'colorDropper' 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
99 | /// Show the current color
100 | public static let current = DisplaySettings(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:100:21: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
98 | public static let colorDropper = DisplaySettings(rawValue: 1 << 3)
99 | /// Show the current color
100 | public static let current = DisplaySettings(rawValue: 1 << 4)
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' 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 | /// Show the system color picker
102 | public static let colorPicker = DisplaySettings(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:102:21: warning: static property 'colorPicker' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
100 | public static let current = DisplaySettings(rawValue: 1 << 4)
101 | /// Show the system color picker
102 | public static let colorPicker = DisplaySettings(rawValue: 1 << 5)
| |- warning: static property 'colorPicker' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'colorPicker' 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
103 | /// Show the palette picker
104 | public static let palettes = DisplaySettings(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:104:21: warning: static property 'palettes' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
102 | public static let colorPicker = DisplaySettings(rawValue: 1 << 5)
103 | /// Show the palette picker
104 | public static let palettes = DisplaySettings(rawValue: 1 << 6)
| |- warning: static property 'palettes' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'palettes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | /// The default settings
106 | public static let `default`: DisplaySettings = [.recents, .titles, .colorDropper, .current]
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:40:62: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
38 | /// - columns: The column count
39 | /// - colors: An array of colors
40 | public init(name: String, rows: Int, columns: Int, colors: [NSColor?]) {
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
41 | assert(rows * columns == colors.count)
42 |
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:58:38: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
56 | /// - name: The palette name
57 | /// - colors: An array of colors
58 | public init(name: String, colors: [[NSColor?]]) {
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
59 | assert(DSFColorPickerPalette.validateGrid(colors))
60 | self.name = name
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:92:22: warning: static property 'emptyPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// A color palette
25 | public class DSFColorPickerPalette {
| `- note: class 'DSFColorPickerPalette' does not conform to the 'Sendable' protocol
26 | /// The name of the palette
27 | public let name: String
:
90 |
91 | /// Standard 'empty' palette
92 | internal static let emptyPalette = DSFColorPickerPalette(name: "", colors: [[NSColor.clear]])
| |- warning: static property 'emptyPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyPalette' 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
93 |
94 | private static func validateGrid<T>(_ gridData: [[T]]) -> Bool {
[35/35] Emitting module DSFColorPicker
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:106:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
104 | public static let palettes = DisplaySettings(rawValue: 1 << 6)
105 | /// The default settings
106 | public static let `default`: DisplaySettings = [.recents, .titles, .colorDropper, .current]
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
107 |
108 | public let rawValue: Int
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:94:21: warning: static property 'recents' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
| |- warning: static property 'recents' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'recents' 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
95 | /// Show titles on each of the colorpicker components
96 | public static let titles = DisplaySettings(rawValue: 1 << 1)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:96:21: warning: static property 'titles' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
95 | /// Show titles on each of the colorpicker components
96 | public static let titles = DisplaySettings(rawValue: 1 << 1)
| |- warning: static property 'titles' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'titles' 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
97 | /// Show the color picker
98 | public static let colorDropper = DisplaySettings(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:98:21: warning: static property 'colorDropper' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
96 | public static let titles = DisplaySettings(rawValue: 1 << 1)
97 | /// Show the color picker
98 | public static let colorDropper = DisplaySettings(rawValue: 1 << 3)
| |- warning: static property 'colorDropper' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'colorDropper' 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
99 | /// Show the current color
100 | public static let current = DisplaySettings(rawValue: 1 << 4)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:100:21: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
98 | public static let colorDropper = DisplaySettings(rawValue: 1 << 3)
99 | /// Show the current color
100 | public static let current = DisplaySettings(rawValue: 1 << 4)
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' 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 | /// Show the system color picker
102 | public static let colorPicker = DisplaySettings(rawValue: 1 << 5)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:102:21: warning: static property 'colorPicker' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
100 | public static let current = DisplaySettings(rawValue: 1 << 4)
101 | /// Show the system color picker
102 | public static let colorPicker = DisplaySettings(rawValue: 1 << 5)
| |- warning: static property 'colorPicker' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'colorPicker' 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
103 | /// Show the palette picker
104 | public static let palettes = DisplaySettings(rawValue: 1 << 6)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPicker+SwiftUI.swift:104:21: warning: static property 'palettes' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
90 | extension DSFColorPickerUI {
91 | /// The components of the color picker to display
92 | public struct DisplaySettings: OptionSet {
| `- note: consider making struct 'DisplaySettings' conform to the 'Sendable' protocol
93 | /// Show the recents line
94 | public static let recents = DisplaySettings(rawValue: 1 << 0)
:
102 | public static let colorPicker = DisplaySettings(rawValue: 1 << 5)
103 | /// Show the palette picker
104 | public static let palettes = DisplaySettings(rawValue: 1 << 6)
| |- warning: static property 'palettes' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerUI.DisplaySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'palettes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
105 | /// The default settings
106 | public static let `default`: DisplaySettings = [.recents, .titles, .colorDropper, .current]
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:40:62: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
38 | /// - columns: The column count
39 | /// - colors: An array of colors
40 | public init(name: String, rows: Int, columns: Int, colors: [NSColor?]) {
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
41 | assert(rows * columns == colors.count)
42 |
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:58:38: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
56 | /// - name: The palette name
57 | /// - colors: An array of colors
58 | public init(name: String, colors: [[NSColor?]]) {
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
59 | assert(DSFColorPickerPalette.validateGrid(colors))
60 | self.name = name
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:92:22: warning: static property 'emptyPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// A color palette
25 | public class DSFColorPickerPalette {
| `- note: class 'DSFColorPickerPalette' does not conform to the 'Sendable' protocol
26 | /// The name of the palette
27 | public let name: String
:
90 |
91 | /// Standard 'empty' palette
92 | internal static let emptyPalette = DSFColorPickerPalette(name: "", colors: [[NSColor.clear]])
| |- warning: static property 'emptyPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'emptyPalette' 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
93 |
94 | private static func validateGrid<T>(_ gridData: [[T]]) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerTheme.swift:67:13: warning: let '__defaultPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
65 |
66 | /// A palette that mimics the color palette in Preview
67 | private let __defaultPalette: DSFColorPickerPalette = {
| |- warning: let '__defaultPalette' is not concurrency-safe because non-'Sendable' type 'DSFColorPickerPalette' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '__defaultPalette' 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
68 | let colorLiterals = [
69 | [#colorLiteral(red: 0.880, green: 0.929, blue: 0.831, alpha: 1), #colorLiteral(red: 0.970, green: 0.983, blue: 0.859, alpha: 1), #colorLiteral(red: 0.991, green: 0.994, blue: 0.862, alpha: 1), #colorLiteral(red: 0.997, green: 0.949, blue: 0.831, alpha: 1), #colorLiteral(red: 1.000, green: 0.928, blue: 0.833, alpha: 1), #colorLiteral(red: 1.000, green: 0.886, blue: 0.837, alpha: 1), #colorLiteral(red: 0.998, green: 0.857, blue: 0.848, alpha: 1), #colorLiteral(red: 0.971, green: 0.829, blue: 0.876, alpha: 1), #colorLiteral(red: 0.941, green: 0.790, blue: 0.998, alpha: 1), #colorLiteral(red: 0.846, green: 0.791, blue: 0.999, alpha: 1), #colorLiteral(red: 0.832, green: 0.887, blue: 0.998, alpha: 1), #colorLiteral(red: 0.791, green: 0.941, blue: 0.999, alpha: 1)],
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerPalette.swift:25:14: note: class 'DSFColorPickerPalette' does not conform to the 'Sendable' protocol
23 |
24 | /// A color palette
25 | public class DSFColorPickerPalette {
| `- note: class 'DSFColorPickerPalette' does not conform to the 'Sendable' protocol
26 | /// The name of the palette
27 | public let name: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:39:38: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
37 |
38 | /// Optional callback if you don't want to rely on notifications
39 | public var colorSelectedCallback: ((NSColor?) -> Void)?
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
40 |
41 | /// Posted whenever the selected color changes. Dictionary key for selected color
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:113:34: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
111 |
112 | /// The color that's currently selected in the control
113 | @objc public var selectedColor: NSColor? {
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
114 | didSet {
115 | self.selectedColorButton?.color = self.selectedColor
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/DSFColorPickerView.swift:24:46: warning: cannot use class 'NSView' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
22 | // MARK: - Color picker view
23 |
24 | @IBDesignable open class DSFColorPickerView: NSView {
| `- warning: cannot use class 'NSView' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
25 | //static let defaultThemes = DSFColorPickerThemes()
26 |
AppKit.NSView:1:23: note: type declared here
1 | @MainActor open class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
| `- note: type declared here
2 | @MainActor public init(frame frameRect: NSRect)
3 | @MainActor public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/ColorPanelButton.swift:125:7: warning: main actor-isolated instance method 'appearanceDidChange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
25 | // Internal class for displaying the system color panel and handling the
26 | // well interactions
27 | internal class ColorPanelButton: NSButton, DSFAppearanceCacheNotifiable {
| `- note: add '@preconcurrency' to the 'DSFAppearanceCacheNotifiable' conformance to defer isolation checking to run time
28 | override init(frame frameRect: NSRect) {
29 | super.init(frame: frameRect)
:
123 |
124 | // Called when the system appearance changes
125 | func appearanceDidChange() {
| |- warning: main actor-isolated instance method 'appearanceDidChange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'appearanceDidChange()' to make this instance method not isolated to the actor
126 | self.usingEffectiveAppearance {
127 | if self.fakeWell.isActive {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFAppearanceManager/Sources/DSFAppearanceManager/DSFAppearanceCache.swift:38:13: note: mark the protocol requirement 'appearanceDidChange()' 'async' to allow actor-isolated conformances
36 | /// A protocol for receiving appearance notifications
37 | @objc public protocol DSFAppearanceCacheNotifiable: NSObjectProtocol {
38 | @objc func appearanceDidChange()
| `- note: mark the protocol requirement 'appearanceDidChange()' 'async' to allow actor-isolated conformances
39 | }
40 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerButton+Private.swift:30:11: warning: main actor-isolated property 'drawLayer' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
28 | if self.showSelected {
29 | self.stateObserver = self.observe(\.cell?.state, options: [.new]) { _, state in
30 | self.drawLayer?.selected = state.newValue == .on
| `- warning: main actor-isolated property 'drawLayer' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
31 | self.setNeedsDisplay()
32 | }
:
161 | // MARK: Implementation
162 |
163 | private var drawLayer: DSFColorPickerButton.Layer?
| `- note: property declared here
164 |
165 | var startDragPoint: NSPoint?
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerButton+Private.swift:31:11: warning: call to main actor-isolated instance method 'setNeedsDisplay()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
29 | self.stateObserver = self.observe(\.cell?.state, options: [.new]) { _, state in
30 | self.drawLayer?.selected = state.newValue == .on
31 | self.setNeedsDisplay()
| `- warning: call to main actor-isolated instance method 'setNeedsDisplay()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 | } else {
AppKit.NSControl:9:26: note: calls to instance method 'setNeedsDisplay()' from outside of its actor context are implicitly asynchronous
7 | open func selectedTag() -> Int
8 | @available(macOS, introduced: 10.0, deprecated: 10.14, message: "Set the needsDisplay property to YES instead")
9 | @MainActor open func setNeedsDisplay()
| `- note: calls to instance method 'setNeedsDisplay()' from outside of its actor context are implicitly asynchronous
10 | @available(macOS, introduced: 10.0, deprecated: 10.14, message: "Override -layout instead. This method should never be called")
11 | open func calcSize()
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerView+Private.swift:25:35: warning: cannot use class 'NSStackView' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
23 |
24 | extension DSFColorPickerView {
25 | public class DFColorPickerStack: NSStackView, NSAccessibilityGroup {
| `- warning: cannot use class 'NSStackView' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
26 | override init(frame frameRect: NSRect) {
27 | super.init(frame: frameRect)
AppKit.NSStackView:2:23: note: type declared here
1 | @available(macOS 10.9, *)
2 | @MainActor open class NSStackView : NSView {
| `- note: type declared here
3 | public convenience init(views: [NSView])
4 | @available(*, unavailable, renamed: "init(views:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/private/DSFColorPickerView+Private.swift:25:48: warning: cannot use protocol 'NSAccessibilityGroup' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
23 |
24 | extension DSFColorPickerView {
25 | public class DFColorPickerStack: NSStackView, NSAccessibilityGroup {
| `- warning: cannot use protocol 'NSAccessibilityGroup' in a public or '@usableFromInline' conformance; 'AppKit' was not imported by this file
26 | override init(frame frameRect: NSRect) {
27 | super.init(frame: frameRect)
AppKit.NSAccessibilityGroup:1:17: note: type declared here
1 | public protocol NSAccessibilityGroup : NSAccessibilityElementProtocol {
| `- note: type declared here
2 | }
Build complete! (21.46s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/Info.plist
Build complete.
{
"default_localization" : "en",
"dependencies" : [
{
"identity" : "dsfcolorsampler",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "3.1.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFColorSampler"
},
{
"identity" : "dsfappearancemanager",
"requirement" : {
"range" : [
{
"lower_bound" : "3.5.0",
"upper_bound" : "3.6.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFAppearanceManager"
}
],
"manifest_display_name" : "DSFColorPicker",
"name" : "DSFColorPicker",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "DSFColorPicker",
"targets" : [
"DSFColorPicker"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFColorPicker",
"module_type" : "SwiftTarget",
"name" : "DSFColorPicker",
"path" : "Sources/DSFColorPicker",
"product_dependencies" : [
"DSFColorSampler",
"DSFAppearanceManager"
],
"product_memberships" : [
"DSFColorPicker"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/DSFColorPicker/localizations/en.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
}
],
"sources" : [
"DSFColorPicker+SwiftUI.swift",
"DSFColorPickerPalette.swift",
"DSFColorPickerPopover.swift",
"DSFColorPickerTheme.swift",
"DSFColorPickerView.swift",
"private/ColorPanelButton.swift",
"private/DSFColorPickerButton+Private.swift",
"private/DSFColorPickerView+Private.swift",
"private/DSFColorSampler+icon.swift",
"private/NSColor+dsfextensions.swift",
"private/SemLock.swift",
"private/Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.