The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of DSFToolbar, reference 5.1.0 (f486eb), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 05:49:20 UTC.

Swift 6 data race errors: 15

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
    |                               `- note: mutation of this property is only permitted within the actor
 25 | @property (nullable) SEL action;
 26 | @property NSInteger tag;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:53:11: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 51 |
 52 | 			button.target = self
 53 | 			button.action = #selector(itemPressed(_:))
    |           `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 54 |
 55 | 			self.button = button
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:25:26: note: mutation of this property is only permitted within the actor
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
 25 | @property (nullable) SEL action;
    |                          `- note: mutation of this property is only permitted within the actor
 26 | @property NSInteger tag;
 27 | @property BOOL ignoresMultiClick;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:74:12: warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 72 |
 73 | 			self.button = button
 74 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
    |            `- warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 75 | 			a.view = self.button
 76 | 			self.buttonToolbarItem = a
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:39:1: note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
 37 |  Initialize the toolbar item with an identifier which is a development language string used by the toolbar and its delegate for identification purposes.
 38 |  */
 39 | - (instancetype)initWithItemIdentifier:(NSToolbarItemIdentifier)itemIdentifier NS_DESIGNATED_INITIALIZER;
    | `- note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
 40 | @property (readonly, copy) NSToolbarItemIdentifier itemIdentifier;
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:75:6: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 73 | 			self.button = button
 74 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
 75 | 			a.view = self.button
    |      `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 76 | 			self.buttonToolbarItem = a
 77 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:142:38: note: mutation of this property is only permitted within the actor
140 |  Note that, by default, many of the set/get methods will be implemented by calls forwarded to the view you set, if it responds to it.
141 |  */
142 | @property (nullable, strong) NSView *view API_UNAVAILABLE(ios);
    |                                      `- note: mutation of this property is only permitted within the actor
143 |
144 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:91:17: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 89 | 		/// Cleanup
 90 | 		override public func close() {
 91 | 			self.button?.target = nil
    |                 `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 92 | 			self.button = nil
 93 | 			self._titleBinding = nil
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:24:31: note: mutation of this property is only permitted within the actor
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
    |                               `- note: mutation of this property is only permitted within the actor
 25 | @property (nullable) SEL action;
 26 | @property NSInteger tag;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:100:28: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 98 | 			self._image = nil
 99 | 			self._alternateImage = nil
100 | 			self.buttonToolbarItem?.view = nil
    |                            `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
101 | 			self.buttonToolbarItem = nil
102 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:142:38: note: mutation of this property is only permitted within the actor
140 |  Note that, by default, many of the set/get methods will be implemented by calls forwarded to the view you set, if it responds to it.
141 |  */
142 | @property (nullable, strong) NSView *view API_UNAVAILABLE(ios);
    |                                      `- note: mutation of this property is only permitted within the actor
143 |
144 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:170:16: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | 	/// - Returns: self
168 | 	@discardableResult
169 | 	func bindState(_ stateBinder: ValueBinder<NSControl.StateValue>) -> Self {
    |       `- note: add '@MainActor' to make instance method 'bindState' part of global actor 'MainActor'
170 | 		self.button?.target = self
    |                `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
171 | 		self.button?.action = #selector(itemPressed(_:))
172 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:24:31: note: mutation of this property is only permitted within the actor
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
    |                               `- note: mutation of this property is only permitted within the actor
 25 | @property (nullable) SEL action;
 26 | @property NSInteger tag;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:171:16: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | 	/// - Returns: self
168 | 	@discardableResult
169 | 	func bindState(_ stateBinder: ValueBinder<NSControl.StateValue>) -> Self {
    |       `- note: add '@MainActor' to make instance method 'bindState' part of global actor 'MainActor'
170 | 		self.button?.target = self
171 | 		self.button?.action = #selector(itemPressed(_:))
    |                `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
172 |
173 | 		_stateBinder = stateBinder
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:25:26: note: mutation of this property is only permitted within the actor
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
 25 | @property (nullable) SEL action;
    |                          `- note: mutation of this property is only permitted within the actor
 26 | @property NSInteger tag;
 27 | @property BOOL ignoresMultiClick;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:175:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
173 | 		_stateBinder = stateBinder
174 | 		stateBinder.register(self) { [weak self] newValue in
175 | 			self?.button?.state = newValue
    |                  `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
176 | 		}
177 | 		return self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:148:31: note: mutation of this property is only permitted within the actor
146 |
147 | /*! The button's state. Buttons support the off and on states, and an additional mixed state depending on the value of the `allowsMixedState` property. */
148 | @property NSControlStateValue state;
    |                               `- note: mutation of this property is only permitted within the actor
149 |
150 | /*! A Boolean value that indicates whether the button allows a mixed state. If NO, the button has two states (on and off), and if YES, the button has three states (on, off, and mixed). The mixed state is commonly used with checkboxes and radio buttons to indicate a value which is partially on. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:186:16: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
183 | 	/// - Returns: self
184 | 	@discardableResult
185 | 	func bindOnOffState(_ stateOnOffBinder: ValueBinder<Bool>) -> Self {
    |       `- note: add '@MainActor' to make instance method 'bindOnOffState' part of global actor 'MainActor'
186 | 		self.button?.target = self
    |                `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
187 | 		self.button?.action = #selector(itemPressed(_:))
188 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:24:31: note: mutation of this property is only permitted within the actor
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
    |                               `- note: mutation of this property is only permitted within the actor
 25 | @property (nullable) SEL action;
 26 | @property NSInteger tag;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:187:16: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
183 | 	/// - Returns: self
184 | 	@discardableResult
185 | 	func bindOnOffState(_ stateOnOffBinder: ValueBinder<Bool>) -> Self {
    |       `- note: add '@MainActor' to make instance method 'bindOnOffState' part of global actor 'MainActor'
186 | 		self.button?.target = self
187 | 		self.button?.action = #selector(itemPressed(_:))
    |                `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
188 |
189 | 		_stateOnOffBinder = stateOnOffBinder
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:25:26: note: mutation of this property is only permitted within the actor
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
 25 | @property (nullable) SEL action;
    |                          `- note: mutation of this property is only permitted within the actor
 26 | @property NSInteger tag;
 27 | @property BOOL ignoresMultiClick;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:191:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
189 | 		_stateOnOffBinder = stateOnOffBinder
190 | 		stateOnOffBinder.register(self) { [weak self] newValue in
191 | 			self?.button?.state = newValue ? .on : .off
    |                  `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
192 | 		}
193 | 		return self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:148:31: note: mutation of this property is only permitted within the actor
146 |
147 | /*! The button's state. Buttons support the off and on states, and an additional mixed state depending on the value of the `allowsMixedState` property. */
148 | @property NSControlStateValue state;
    |                               `- note: mutation of this property is only permitted within the actor
149 |
150 | /*! A Boolean value that indicates whether the button allows a mixed state. If NO, the button has two states (on and off), and if YES, the button has three states (on, off, and mixed). The mixed state is commonly used with checkboxes and radio buttons to indicate a value which is partially on. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:221:16: warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
218 | 	/// - Returns: self
219 | 	@discardableResult
220 | 	func buttonType(_ type: NSButton.ButtonType) -> Self {
    |       `- note: add '@MainActor' to make instance method 'buttonType' part of global actor 'MainActor'
221 | 		self.button?.setButtonType(type)
    |                `- warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
222 | 		return self
223 | 	}
AppKit.NSButton.setButtonType:2:22: note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
1 | class NSButton {
2 | @MainActor open func setButtonType(_ type: NSButton.ButtonType)}
  |                      |- note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSControl'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:290:7: warning: call to main actor-isolated instance method 'addConstraint' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
277 | 	/// - Returns: self
278 | 	@discardableResult
279 | 	func width(minVal: CGFloat? = nil, maxVal: CGFloat? = nil) -> Self {
    |       `- note: add '@MainActor' to make instance method 'width(minVal:maxVal:)' part of global actor 'MainActor'
280 | 		guard let b = self.button else { fatalError() }
281 |
    :
288 | 					multiplier: 1, constant: 0
289 | 				)
290 | 				b.addConstraint(self.minWidth!)
    |       `- warning: call to main actor-isolated instance method 'addConstraint' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
291 | 			}
292 | 			if let w = self.minWidth {
AppKit.NSView.addConstraint:3:24: note: calls to instance method 'addConstraint' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.7, *)
3 |   @MainActor open func addConstraint(_ constraint: NSLayoutConstraint)}
  |                        |- note: calls to instance method 'addConstraint' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:305:7: warning: call to main actor-isolated instance method 'addConstraint' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
277 | 	/// - Returns: self
278 | 	@discardableResult
279 | 	func width(minVal: CGFloat? = nil, maxVal: CGFloat? = nil) -> Self {
    |       `- note: add '@MainActor' to make instance method 'width(minVal:maxVal:)' part of global actor 'MainActor'
280 | 		guard let b = self.button else { fatalError() }
281 |
    :
303 | 					multiplier: 1, constant: 0
304 | 				)
305 | 				b.addConstraint(self.maxWidth!)
    |       `- warning: call to main actor-isolated instance method 'addConstraint' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
306 | 			}
307 | 			if let w = self.maxWidth {
AppKit.NSView.addConstraint:3:24: note: calls to instance method 'addConstraint' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.7, *)
3 |   @MainActor open func addConstraint(_ constraint: NSLayoutConstraint)}
  |                        |- note: calls to instance method 'addConstraint' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:312:5: warning: main actor-isolated property 'needsUpdateConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
277 | 	/// - Returns: self
278 | 	@discardableResult
279 | 	func width(minVal: CGFloat? = nil, maxVal: CGFloat? = nil) -> Self {
    |       `- note: add '@MainActor' to make instance method 'width(minVal:maxVal:)' part of global actor 'MainActor'
280 | 		guard let b = self.button else { fatalError() }
281 |
    :
310 | 		}
311 |
312 | 		b.needsUpdateConstraints = true
    |     `- warning: main actor-isolated property 'needsUpdateConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
313 | 		return self
314 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:267:16: note: mutation of this property is only permitted within the actor
265 | - (void)updateConstraintsForSubtreeIfNeeded API_AVAILABLE(macos(10.7));
266 | - (void)updateConstraints API_AVAILABLE(macos(10.7)) NS_REQUIRES_SUPER;
267 | @property BOOL needsUpdateConstraints API_AVAILABLE(macos(10.7));
    |                `- note: mutation of this property is only permitted within the actor
268 | @end
269 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:342:40: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
338 | 	}
339 |
340 | 	@objc private func itemPressed(_: Any) {
    |                     `- note: add '@MainActor' to make instance method 'itemPressed' part of global actor 'MainActor'
341 | 		if let b = self.button {
342 | 			self._stateBinder?.wrappedValue = b.state
    |                                        `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
343 | 			self._stateOnOffBinder?.wrappedValue = (b.state != .off)
344 | 			self._actionBlock?(b)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:148:31: note: property declared here
146 |
147 | /*! The button's state. Buttons support the off and on states, and an additional mixed state depending on the value of the `allowsMixedState` property. */
148 | @property NSControlStateValue state;
    |                               `- note: property declared here
149 |
150 | /*! A Boolean value that indicates whether the button allows a mixed state. If NO, the button has two states (on and off), and if YES, the button has three states (on, off, and mixed). The mixed state is commonly used with checkboxes and radio buttons to indicate a value which is partially on. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:343:46: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
338 | 	}
339 |
340 | 	@objc private func itemPressed(_: Any) {
    |                     `- note: add '@MainActor' to make instance method 'itemPressed' part of global actor 'MainActor'
341 | 		if let b = self.button {
342 | 			self._stateBinder?.wrappedValue = b.state
343 | 			self._stateOnOffBinder?.wrappedValue = (b.state != .off)
    |                                              `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
344 | 			self._actionBlock?(b)
345 | 			if let custom = _targetAction {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:148:31: note: property declared here
146 |
147 | /*! The button's state. Buttons support the off and on states, and an additional mixed state depending on the value of the `allowsMixedState` property. */
148 | @property NSControlStateValue state;
    |                               `- note: property declared here
149 |
150 | /*! A Boolean value that indicates whether the button allows a mixed state. If NO, the button has two states (on and off), and if YES, the button has three states (on, off, and mixed). The mixed state is commonly used with checkboxes and radio buttons to indicate a value which is partially on. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:354:11: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | 		let b = NSButton(frame: .zero)
    |           `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
355 | 		b.translatesAutoresizingMaskIntoConstraints = false
356 | 		b.bezelStyle = .texturedRounded
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:21:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
 19 | @interface NSControl : NSView
 20 |
 21 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
    | |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
    | `- note: main actor isolation inferred from inheritance from class 'NSControl'
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:355:5: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | 		let b = NSButton(frame: .zero)
355 | 		b.translatesAutoresizingMaskIntoConstraints = false
    |     `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
356 | 		b.bezelStyle = .texturedRounded
357 | 		b.title = self._title
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position.  To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 |  */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
    |                `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it.  If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint.  To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:356:5: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | 		let b = NSButton(frame: .zero)
355 | 		b.translatesAutoresizingMaskIntoConstraints = false
356 | 		b.bezelStyle = .texturedRounded
    |     `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
357 | 		b.title = self._title
358 | 		b.image = self._image
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /*! The bezel style of the button, which provides a set of bezel artwork, layout metrics, and content styling from a set of system-provided styles. See the NSBezelStyle enumeration for a list of available styles. The bezel style is not used if the `bordered` property is set to `NO`. */
105 | @property NSBezelStyle bezelStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /*! A Boolean value that determines whether the button draws a border. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:357:5: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | 		let b = NSButton(frame: .zero)
355 | 		b.translatesAutoresizingMaskIntoConstraints = false
356 | 		b.bezelStyle = .texturedRounded
357 | 		b.title = self._title
    |     `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
358 | 		b.image = self._image
359 | 		b.imagePosition = self._imagePosition
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:75:28: note: mutation of this property is only permitted within the actor
 73 |
 74 | /*! The title displayed on the button when it’s in an off state, or an empty string if the button does not display a title. By default, a button's title is "Button". */
 75 | @property (copy) NSString *title;
    |                            `- note: mutation of this property is only permitted within the actor
 76 |
 77 | /*! The button's title, expressed as an attributed string. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:358:5: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | 		let b = NSButton(frame: .zero)
355 | 		b.translatesAutoresizingMaskIntoConstraints = false
356 | 		b.bezelStyle = .texturedRounded
357 | 		b.title = self._title
358 | 		b.image = self._image
    |     `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
359 | 		b.imagePosition = self._imagePosition
360 | 		b.setButtonType(type)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:126:39: note: mutation of this property is only permitted within the actor
124 |
125 | /*! The image that appears on the button when it’s in an off state, or nil if there is no such image. */
126 | @property (nullable, strong) NSImage *image;
    |                                       `- note: mutation of this property is only permitted within the actor
127 |
128 | /*! An alternate image that appears on the button when the button is in an on state, or nil if there is no such image. Note that some button types do not display an alternate image. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:359:5: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | 		let b = NSButton(frame: .zero)
355 | 		b.translatesAutoresizingMaskIntoConstraints = false
    :
357 | 		b.title = self._title
358 | 		b.image = self._image
359 | 		b.imagePosition = self._imagePosition
    |     `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
360 | 		b.setButtonType(type)
361 | 		return b
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:360:5: warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
351 |
352 | extension DSFToolbar.Button {
353 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
354 | 		let b = NSButton(frame: .zero)
355 | 		b.translatesAutoresizingMaskIntoConstraints = false
    :
358 | 		b.image = self._image
359 | 		b.imagePosition = self._imagePosition
360 | 		b.setButtonType(type)
    |     `- warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
361 | 		return b
362 | 	}
AppKit.NSButton.setButtonType:2:22: note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
1 | class NSButton {
2 | @MainActor open func setButtonType(_ type: NSButton.ButtonType)}
  |                      |- note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSControl'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:369:11: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | 	}
363 |
364 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | 		guard let button = self.button else { fatalError() }
366 |
367 | 		// If there's an image and no title, set the state to imageOnly
368 | 		if self._title.count == 0, self._image != nil {
369 | 			button.imagePosition = .imageOnly
    |           `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
370 | 		}
371 | 		else if self._title.count > 0, self._image == nil {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:372:11: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | 	}
363 |
364 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | 		guard let button = self.button else { fatalError() }
366 |
    :
370 | 		}
371 | 		else if self._title.count > 0, self._image == nil {
372 | 			button.imagePosition = .noImage
    |           `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
373 | 		}
374 | 		else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:375:11: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | 	}
363 |
364 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | 		guard let button = self.button else { fatalError() }
366 |
    :
373 | 		}
374 | 		else {
375 | 			button.imagePosition = self._imagePosition
    |           `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
376 | 			button.imageScaling = self._imageScaling
377 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:376:11: warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | 	}
363 |
364 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | 		guard let button = self.button else { fatalError() }
366 |
    :
374 | 		else {
375 | 			button.imagePosition = self._imagePosition
376 | 			button.imageScaling = self._imageScaling
    |           `- warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
377 | 		}
378 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:135:26: note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
135 | @property NSImageScaling imageScaling API_AVAILABLE(macos(10.5));
    |                          `- note: mutation of this property is only permitted within the actor
136 |
137 | /*! A Boolean value that determines how the button's image and title are positioned together within the button bezel. If false, the image is positioned according to the imagePosition property at the edge of the button bezel, and the title is positioned within the remaining space. If true, the button’s image is positioned directly adjacent to the title based on the imagePosition property, and the image and title are positioned within the button bezel as a single unit. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:379:10: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | 	}
363 |
364 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | 		guard let button = self.button else { fatalError() }
366 |
    :
377 | 		}
378 |
379 | 		button.image = self._image
    |          `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
380 | 		button.alternateImage = self._alternateImage
381 | 		button.title = self._title
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:126:39: note: mutation of this property is only permitted within the actor
124 |
125 | /*! The image that appears on the button when it’s in an off state, or nil if there is no such image. */
126 | @property (nullable, strong) NSImage *image;
    |                                       `- note: mutation of this property is only permitted within the actor
127 |
128 | /*! An alternate image that appears on the button when the button is in an on state, or nil if there is no such image. Note that some button types do not display an alternate image. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:380:10: warning: main actor-isolated property 'alternateImage' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | 	}
363 |
364 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | 		guard let button = self.button else { fatalError() }
366 |
    :
378 |
379 | 		button.image = self._image
380 | 		button.alternateImage = self._alternateImage
    |          `- warning: main actor-isolated property 'alternateImage' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
381 | 		button.title = self._title
382 | 		button.bezelStyle = self._bezelStyle
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:129:39: note: mutation of this property is only permitted within the actor
127 |
128 | /*! An alternate image that appears on the button when the button is in an on state, or nil if there is no such image. Note that some button types do not display an alternate image. */
129 | @property (nullable, strong) NSImage *alternateImage;
    |                                       `- note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:381:10: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | 	}
363 |
364 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | 		guard let button = self.button else { fatalError() }
366 |
    :
379 | 		button.image = self._image
380 | 		button.alternateImage = self._alternateImage
381 | 		button.title = self._title
    |          `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
382 | 		button.bezelStyle = self._bezelStyle
383 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:75:28: note: mutation of this property is only permitted within the actor
 73 |
 74 | /*! The title displayed on the button when it’s in an off state, or an empty string if the button does not display a title. By default, a button's title is "Button". */
 75 | @property (copy) NSString *title;
    |                            `- note: mutation of this property is only permitted within the actor
 76 |
 77 | /*! The button's title, expressed as an attributed string. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:382:10: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
362 | 	}
363 |
364 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
365 | 		guard let button = self.button else { fatalError() }
366 |
    :
380 | 		button.alternateImage = self._alternateImage
381 | 		button.title = self._title
382 | 		button.bezelStyle = self._bezelStyle
    |          `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
383 | 	}
384 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /*! The bezel style of the button, which provides a set of bezel artwork, layout metrics, and content styling from a set of system-provided styles. See the NSBezelStyle enumeration for a list of available styles. The bezel style is not used if the `bordered` property is set to `NO`. */
105 | @property NSBezelStyle bezelStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /*! A Boolean value that determines whether the button draws a border. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:395:5: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
393 |
394 | 		// If we're using legacy sizing, we have to remove the constraints first
395 | 		b.translatesAutoresizingMaskIntoConstraints = true
    |     `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
396 | 		b.removeConstraints(b.constraints)
397 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position.  To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 |  */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
    |                `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it.  If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint.  To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:396:5: warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
394 | 		// If we're using legacy sizing, we have to remove the constraints first
395 | 		b.translatesAutoresizingMaskIntoConstraints = true
396 | 		b.removeConstraints(b.constraints)
    |     `- warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
397 | 	}
398 | }
AppKit.NSView.removeConstraints:3:24: note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.7, *)
3 |   @MainActor open func removeConstraints(_ constraints: [NSLayoutConstraint])}
  |                        |- note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:396:25: warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
394 | 		// If we're using legacy sizing, we have to remove the constraints first
395 | 		b.translatesAutoresizingMaskIntoConstraints = true
396 | 		b.removeConstraints(b.constraints)
    |                         `- warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
397 | 	}
398 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:237:59: note: property declared here
235 | @property (readonly, strong) NSLayoutYAxisAnchor *lastBaselineAnchor API_AVAILABLE(macos(10.11));
236 |
237 | @property (readonly, copy) NSArray<NSLayoutConstraint *> *constraints API_AVAILABLE(macos(10.7));	// This property is deprecated and should be avoided.  Instead, create IB outlets or otherwise maintain references to constraints you need to reference directly.
    |                                                           `- note: property declared here
238 |
239 | - (void)addConstraint:(NSLayoutConstraint *)constraint API_AVAILABLE(macos(10.7));	// This method is deprecated and should be avoided.  Instead, set NSLayoutConstraint's active property to YES.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:38:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 36 | 		}
 37 |
 38 | 		lazy var rootItem = NSToolbarItem(itemIdentifier: self.identifier)
    |            `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 39 |
 40 | 		var toolbarItem: NSToolbarItem? {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:46:29: warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 44 | 		/// The label for the toolbar item
 45 | 		public var label: String {
 46 | 			return self.toolbarItem?.label ?? ""
    |                             `- warning: main actor-isolated property 'label' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 47 | 		}
 48 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:55:28: note: property declared here
 53 |  Also, developers should make sure the length of the label is appropriate and not too long.
 54 |  */
 55 | @property (copy) NSString *label;
    |                            `- note: property declared here
 56 |
 57 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:98:21: warning: main actor-isolated property 'toolTip' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 95 | 	/// - Returns: self
 96 | 	@discardableResult
 97 | 	public func tooltip(_ msg: String) -> Self {
    |              `- note: add '@MainActor' to make instance method 'tooltip' part of global actor 'MainActor'
 98 | 		self.toolbarItem?.toolTip = msg
    |                     `- warning: main actor-isolated property 'toolTip' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 99 | 		return self
100 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:72:38: note: mutation of this property is only permitted within the actor
 70 |  Use this to set a tooltip to be used when the item is displayed in the toolbar. (forwards to `-view` if it responds)
 71 |  */
 72 | @property (nullable, copy) NSString *toolTip;
    |                                      `- note: mutation of this property is only permitted within the actor
 73 |
 74 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:123:6: warning: main actor-isolated property 'label' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
116 | 	/// set for the toolbar
117 | 	@discardableResult
118 | 	public func label(_ label: String) -> Self {
    |              `- note: add '@MainActor' to make instance method 'label' part of global actor 'MainActor'
119 | 		guard let ti = self.toolbarItem else {
120 | 			fatalError()
121 | 		}
122 |
123 | 		ti.label = label
    |      `- warning: main actor-isolated property 'label' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 |
125 | 		// If the user hasn't provided a palette label, set it to the label (older version support)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:55:28: note: mutation of this property is only permitted within the actor
 53 |  Also, developers should make sure the length of the label is appropriate and not too long.
 54 |  */
 55 | @property (copy) NSString *label;
    |                            `- note: mutation of this property is only permitted within the actor
 56 |
 57 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:126:9: warning: main actor-isolated property 'paletteLabel' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | 	/// set for the toolbar
117 | 	@discardableResult
118 | 	public func label(_ label: String) -> Self {
    |              `- note: add '@MainActor' to make instance method 'label' part of global actor 'MainActor'
119 | 		guard let ti = self.toolbarItem else {
120 | 			fatalError()
    :
124 |
125 | 		// If the user hasn't provided a palette label, set it to the label (older version support)
126 | 		if ti.paletteLabel.count == 0 {
    |         `- warning: main actor-isolated property 'paletteLabel' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 | 			ti.paletteLabel = label
128 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:61:28: note: property declared here
 59 |  All Items must have a palette label, and for most things it is reasonable to set them to the same string as the label used in the toolbar.
 60 |  */
 61 | @property (copy) NSString *paletteLabel;
    |                            `- note: property declared here
 62 |
 63 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:127:7: warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
116 | 	/// set for the toolbar
117 | 	@discardableResult
118 | 	public func label(_ label: String) -> Self {
    |              `- note: add '@MainActor' to make instance method 'label' part of global actor 'MainActor'
119 | 		guard let ti = self.toolbarItem else {
120 | 			fatalError()
    :
125 | 		// If the user hasn't provided a palette label, set it to the label (older version support)
126 | 		if ti.paletteLabel.count == 0 {
127 | 			ti.paletteLabel = label
    |       `- warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
128 | 		}
129 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:61:28: note: mutation of this property is only permitted within the actor
 59 |  All Items must have a palette label, and for most things it is reasonable to set them to the same string as the label used in the toolbar.
 60 |  */
 61 | @property (copy) NSString *paletteLabel;
    |                            `- note: mutation of this property is only permitted within the actor
 62 |
 63 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:141:21: warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
138 | 	/// more descriptive text than the 'label'
139 | 	@discardableResult
140 | 	public func paletteLabel(_ label: String) -> Self {
    |              `- note: add '@MainActor' to make instance method 'paletteLabel' part of global actor 'MainActor'
141 | 		self.toolbarItem?.paletteLabel = label
    |                     `- warning: main actor-isolated property 'paletteLabel' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
142 | 		return self
143 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:61:28: note: mutation of this property is only permitted within the actor
 59 |  All Items must have a palette label, and for most things it is reasonable to set them to the same string as the label used in the toolbar.
 60 |  */
 61 | @property (copy) NSString *paletteLabel;
    |                            `- note: mutation of this property is only permitted within the actor
 62 |
 63 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:153:22: warning: main actor-isolated property 'isBordered' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
149 | 	/// Only available on 10.15 and later, however will silently be ignored on earlier versions to allow backwards
150 | 	/// compatibility
151 | 	@objc public func isBordered(_ state: Bool) -> Self {
    |                    `- note: add '@MainActor' to make instance method 'isBordered' part of global actor 'MainActor'
152 | 		if #available(macOS 10.15, *) {
153 | 			self.toolbarItem?.isBordered = state
    |                      `- warning: main actor-isolated property 'isBordered' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
154 | 		}
155 | 		return self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:128:36: note: mutation of this property is only permitted within the actor
126 |  Defaults to NO.
127 |  */
128 | @property (getter=isBordered) BOOL bordered API_AVAILABLE(macos(10.15), ios(13.0));
    |                                    `- note: mutation of this property is only permitted within the actor
129 |
130 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:163:21: warning: main actor-isolated property 'visibilityPriority' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
160 | 	/// - Returns: self
161 | 	@discardableResult
162 | 	public func visibilityPriority(_ priority: NSToolbarItem.VisibilityPriority) -> Self {
    |              `- note: add '@MainActor' to make instance method 'visibilityPriority' part of global actor 'MainActor'
163 | 		self.toolbarItem?.visibilityPriority = priority
    |                     `- warning: main actor-isolated property 'visibilityPriority' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 | 		return self
165 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:171:43: note: mutation of this property is only permitted within the actor
169 |  In 10.7, users can no longer modify the toolbar item visibility priority.
170 |  */
171 | @property NSToolbarItemVisibilityPriority visibilityPriority;
    |                                           `- note: mutation of this property is only permitted within the actor
172 |
173 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:202:23: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
200 | 		self._isEnabledBinder = isEnabledBinder
201 | 		isEnabledBinder.register(self) { [weak self] newEnabledState in
202 | 			self?.toolbarItem?.isEnabled = newEnabledState
    |                       `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
203 | 			self?.isEnabledDidChange(to: newEnabledState)
204 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:106:35: note: mutation of this property is only permitted within the actor
104 |  For custom views, this method will call `-setEnabled:` on the view if it responds. (forwards to `-view` if it responds)
105 |  */
106 | @property (getter=isEnabled) BOOL enabled;
    |                                   `- note: mutation of this property is only permitted within the actor
107 |
108 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:251:22: warning: main actor-isolated property 'minSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
236 | 	/// Setting a legacy size will only affect layouts pre 10.13 (High Sierra) - newer systems
237 | 	/// will just ignore these if they are set.
238 | 	public func legacySizes(minSize: NSSize? = nil, maxSize: NSSize? = nil) -> Self {
    |              `- note: add '@MainActor' to make instance method 'legacySizes(minSize:maxSize:)' part of global actor 'MainActor'
239 | 		if #available(macOS 10.14, *) {
240 | 			return self
    :
249 |
250 | 		if let s = minSize {
251 | 			self.toolbarItem?.minSize = s
    |                      `- warning: main actor-isolated property 'minSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
252 | 		}
253 | 		if let s = maxSize {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:161:18: note: mutation of this property is only permitted within the actor
159 |  In general, apps should rely on the automatic measurements and constraints to define min/max sizes rather than setting these properties since this will account for localizations.
160 |  */
161 | @property NSSize minSize API_DEPRECATED("This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.", macos(10.0, 12.0)) API_UNAVAILABLE(ios);
    |                  `- note: mutation of this property is only permitted within the actor
162 | @property NSSize maxSize API_DEPRECATED("This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.", macos(10.0, 12.0)) API_UNAVAILABLE(ios);
163 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:254:22: warning: main actor-isolated property 'maxSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
236 | 	/// Setting a legacy size will only affect layouts pre 10.13 (High Sierra) - newer systems
237 | 	/// will just ignore these if they are set.
238 | 	public func legacySizes(minSize: NSSize? = nil, maxSize: NSSize? = nil) -> Self {
    |              `- note: add '@MainActor' to make instance method 'legacySizes(minSize:maxSize:)' part of global actor 'MainActor'
239 | 		if #available(macOS 10.14, *) {
240 | 			return self
    :
252 | 		}
253 | 		if let s = maxSize {
254 | 			self.toolbarItem?.maxSize = s
    |                      `- warning: main actor-isolated property 'maxSize' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
255 | 		}
256 | 		return self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:162:18: note: mutation of this property is only permitted within the actor
160 |  */
161 | @property NSSize minSize API_DEPRECATED("This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.", macos(10.0, 12.0)) API_UNAVAILABLE(ios);
162 | @property NSSize maxSize API_DEPRECATED("This property is no longer recommended. Instead, let the system automatically measure the size of the view using constraints.", macos(10.0, 12.0)) API_UNAVAILABLE(ios);
    |                  `- note: mutation of this property is only permitted within the actor
163 |
164 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:290:7: warning: sending 'self.minWidth' risks causing data races; this is an error in the Swift 6 language mode
288 | 					multiplier: 1, constant: 0
289 | 				)
290 | 				b.addConstraint(self.minWidth!)
    |       |- warning: sending 'self.minWidth' risks causing data races; this is an error in the Swift 6 language mode
    |       `- note: sending task-isolated 'self.minWidth' to main actor-isolated instance method 'addConstraint' risks causing data races between main actor-isolated and task-isolated uses
291 | 			}
292 | 			if let w = self.minWidth {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Button.swift:305:7: warning: sending 'self.maxWidth' risks causing data races; this is an error in the Swift 6 language mode
303 | 					multiplier: 1, constant: 0
304 | 				)
305 | 				b.addConstraint(self.maxWidth!)
    |       |- warning: sending 'self.maxWidth' risks causing data races; this is an error in the Swift 6 language mode
    |       `- note: sending task-isolated 'self.maxWidth' to main actor-isolated instance method 'addConstraint' risks causing data races between main actor-isolated and task-isolated uses
306 | 			}
307 | 			if let w = self.maxWidth {
[31/37] Emitting module DSFToolbar
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:38:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 36 | 		}
 37 |
 38 | 		lazy var rootItem = NSToolbarItem(itemIdentifier: self.identifier)
    |            `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 39 |
 40 | 		var toolbarItem: NSToolbarItem? {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Group.swift:164:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
162 | 		}
163 |
164 | 		lazy var groupToolbarItem: NSToolbarItemGroup = AppKit.NSToolbarItemGroup(itemIdentifier: self.identifier)
    |            `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
165 |
166 | 		private func mapGroupMode(selectionMode: SelectionMode) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Item.swift:79:12: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 77 | 		private var _imageBinder: ValueBinder<DSFImage>?
 78 |
 79 | 		lazy var imageToolbarItem: NSToolbarItem = {
    |            `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 80 | 			NSToolbarItem(itemIdentifier: self.identifier)
 81 | 		}()
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:76:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 74 | 		// Private
 75 |
 76 | 		private var _popupButton = NSPopUpButton(frame: .zero, pullsDown: true)
    |               `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 77 | 		private var _popupMenu: NSMenu?
 78 | 		private var _popupButtonItem: NSToolbarItem?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupMenu.swift:68:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 66 | 		// Private
 67 |
 68 | 		private let _popupButton = NSPopUpButton(frame: .zero, pullsDown: false)
    |               `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 69 | 		private let _popupMenu: NSMenu
 70 | 		private var _popupButtonItem: NSToolbarItem?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Search.swift:87:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 85 | 		private let maxWidth: CGFloat
 86 | 		private weak var _delegate: NSSearchFieldDelegate?
 87 | 		private var _searchField = NSSearchField()
    |               `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 88 |
 89 | 		private var _searchChange: ((NSSearchField, String) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Segmented.swift:173:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
171 | 		override var toolbarItem: NSToolbarItem? { self.segmentedItem }
172 |
173 | 		private let segmented = NSSegmentedControl(frame: .zero)
    |               `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
174 | 		private var segmentedItem: NSToolbarItem?
175 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Standard.swift:32:21: warning: static property '_showColors' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public extension DSFToolbar {
31 | 	/// An item to display the standard color palette
32 | 	private static let _showColors: Core = { Core(.showColors) }()
   |                     |- warning: static property '_showColors' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property '_showColors' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | 	static func ShowColors() -> Core { return DSFToolbar._showColors }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:32:8: note: class 'Core' does not conform to the 'Sendable' protocol
 30 | public extension DSFToolbar {
 31 | 	/// The common base for all toolbar items
 32 | 	class Core: NSObject {
    |        `- note: class 'Core' does not conform to the 'Sendable' protocol
 33 | 		let identifier: NSToolbarItem.Identifier
 34 | 		internal init(_ identifier: NSToolbarItem.Identifier) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Standard.swift:36:21: warning: static property '_fixedSpace' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | 	/// A fixed space toolbar item
36 | 	private static let _fixedSpace: Core = { Core(.space) }()
   |                     |- warning: static property '_fixedSpace' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property '_fixedSpace' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | 	static func FixedSpace() -> Core { return DSFToolbar._fixedSpace }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:32:8: note: class 'Core' does not conform to the 'Sendable' protocol
 30 | public extension DSFToolbar {
 31 | 	/// The common base for all toolbar items
 32 | 	class Core: NSObject {
    |        `- note: class 'Core' does not conform to the 'Sendable' protocol
 33 | 		let identifier: NSToolbarItem.Identifier
 34 | 		internal init(_ identifier: NSToolbarItem.Identifier) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Standard.swift:40:21: warning: static property '_flexibleSpace' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | 	/// A flexible space toolbar item
40 | 	private static let _flexibleSpace: Core = { Core(.flexibleSpace) }()
   |                     |- warning: static property '_flexibleSpace' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property '_flexibleSpace' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | 	static func FlexibleSpace() -> Core { return DSFToolbar._flexibleSpace }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:32:8: note: class 'Core' does not conform to the 'Sendable' protocol
 30 | public extension DSFToolbar {
 31 | 	/// The common base for all toolbar items
 32 | 	class Core: NSObject {
    |        `- note: class 'Core' does not conform to the 'Sendable' protocol
 33 | 		let identifier: NSToolbarItem.Identifier
 34 | 		internal init(_ identifier: NSToolbarItem.Identifier) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Standard.swift:44:21: warning: static property '_print' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
42 |
43 | 	/// Print
44 | 	private static let _print: Core = { Core(.print) }()
   |                     |- warning: static property '_print' is not concurrency-safe because non-'Sendable' type 'DSFToolbar.Core' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: add '@MainActor' to make static property '_print' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | 	static func Print() -> Core { return DSFToolbar._print }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.Core.swift:32:8: note: class 'Core' does not conform to the 'Sendable' protocol
 30 | public extension DSFToolbar {
 31 | 	/// The common base for all toolbar items
 32 | 	class Core: NSObject {
    |        `- note: class 'Core' does not conform to the 'Sendable' protocol
 33 | 		let identifier: NSToolbarItem.Identifier
 34 | 		internal init(_ identifier: NSToolbarItem.Identifier) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.swift:35:20: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 33 |
 34 | 	/// The created NSToolbar.
 35 | 	internal lazy var toolbar: NSToolbar = {
    |                    `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 36 | 		let tb: NSToolbar
 37 | 		tb = NSToolbar(identifier: self.identifier)
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.swift:98:20: warning: main actor-isolated property 'toolbar' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 96 | 			if let attachedWindow = self.attachedWindow {
 97 | 				// Hook in our toolbar
 98 | 				attachedWindow.toolbar = self.toolbar
    |                    `- warning: main actor-isolated property 'toolbar' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 99 | 			}
100 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:679:41: note: mutation of this property is only permitted within the actor
 677 | #pragma mark - Toolbar Support
 678 |
 679 | @property (nullable, strong) NSToolbar *toolbar;
     |                                         `- note: mutation of this property is only permitted within the actor
 680 | - (void)toggleToolbarShown:(nullable id)sender;
 681 | - (void)runToolbarCustomizationPalette:(nullable id)sender;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.swift:269:19: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
267 |
268 | 	// A binder for the selectedItemIdentifier of the control's toolbar
269 | 	private lazy var _selectionBinding = try! KeyPathBinder(self.toolbar, keyPath: \.selectedItemIdentifier)
    |                   `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
270 |
271 | 	/// Supply a callback block to be called when the selection state of the toolbar changes
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/logging.swift:27:21: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | extension OSLog {
27 | 	private static var subsystem = Bundle.main.bundleIdentifier!
   |                     |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: add '@MainActor' to make static property 'subsystem' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | 	@available(macOS 10.12, iOS 10.0, *)
29 | 	static let memoryAlloc = OSLog(subsystem: subsystem, category: "memory")
[32/37] Compiling DSFToolbar DSFToolbar.PopoverButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:67:17: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 65 | 			}
 66 |
 67 | 			self.button?.target = self
    |                 `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 68 | 			self.button?.action = #selector(self.action(_:))
 69 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:24:31: note: mutation of this property is only permitted within the actor
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
    |                               `- note: mutation of this property is only permitted within the actor
 25 | @property (nullable) SEL action;
 26 | @property NSInteger tag;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:68:17: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 66 |
 67 | 			self.button?.target = self
 68 | 			self.button?.action = #selector(self.action(_:))
    |                 `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 69 |
 70 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:25:26: note: mutation of this property is only permitted within the actor
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
 25 | @property (nullable) SEL action;
    |                          `- note: mutation of this property is only permitted within the actor
 26 | @property NSInteger tag;
 27 | @property BOOL ignoresMultiClick;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:70:12: warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 68 | 			self.button?.action = #selector(self.action(_:))
 69 |
 70 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
    |            `- warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 71 | 			a.view = self.button
 72 | 			a.label = "fish"
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:39:1: note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
 37 |  Initialize the toolbar item with an identifier which is a development language string used by the toolbar and its delegate for identification purposes.
 38 |  */
 39 | - (instancetype)initWithItemIdentifier:(NSToolbarItemIdentifier)itemIdentifier NS_DESIGNATED_INITIALIZER;
    | `- note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
 40 | @property (readonly, copy) NSToolbarItemIdentifier itemIdentifier;
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:71:6: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 69 |
 70 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
 71 | 			a.view = self.button
    |      `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 72 | 			a.label = "fish"
 73 | 			self.buttonToolbarItem = a
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:142:38: note: mutation of this property is only permitted within the actor
140 |  Note that, by default, many of the set/get methods will be implemented by calls forwarded to the view you set, if it responds to it.
141 |  */
142 | @property (nullable, strong) NSView *view API_UNAVAILABLE(ios);
    |                                      `- note: mutation of this property is only permitted within the actor
143 |
144 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:72:6: warning: main actor-isolated property 'label' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 70 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
 71 | 			a.view = self.button
 72 | 			a.label = "fish"
    |      `- warning: main actor-isolated property 'label' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 73 | 			self.buttonToolbarItem = a
 74 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:55:28: note: mutation of this property is only permitted within the actor
 53 |  Also, developers should make sure the length of the label is appropriate and not too long.
 54 |  */
 55 | @property (copy) NSString *label;
    |                            `- note: mutation of this property is only permitted within the actor
 56 |
 57 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:90:19: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 88 | 		override public func close() {
 89 | 			// Make sure the popover is closed
 90 | 			self._popover?.close()
    |                   `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 91 | 			self._popover = nil
 92 |
AppKit.NSPopover.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func close()}
  |                      |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:93:17: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 91 | 			self._popover = nil
 92 |
 93 | 			self.button?.target = nil
    |                 `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 94 | 			self.button = nil
 95 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:24:31: note: mutation of this property is only permitted within the actor
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
    |                               `- note: mutation of this property is only permitted within the actor
 25 | @property (nullable) SEL action;
 26 | @property NSInteger tag;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:96:28: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 94 | 			self.button = nil
 95 |
 96 | 			self.buttonToolbarItem?.view = nil
    |                            `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 97 | 			self.buttonToolbarItem = nil
 98 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:142:38: note: mutation of this property is only permitted within the actor
140 |  Note that, by default, many of the set/get methods will be implemented by calls forwarded to the view you set, if it responds to it.
141 |  */
142 | @property (nullable, strong) NSView *view API_UNAVAILABLE(ios);
    |                                      `- note: mutation of this property is only permitted within the actor
143 |
144 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:118:17: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 | 		/// - Returns: self
115 | 		@discardableResult
116 | 		public func image(_ image: NSImage) -> Self {
    |               `- note: add '@MainActor' to make instance method 'image' part of global actor 'MainActor'
117 | 			self._image = image
118 | 			self.button?.image = image
    |                 `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
119 | 			return self
120 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:126:39: note: mutation of this property is only permitted within the actor
124 |
125 | /*! The image that appears on the button when it’s in an off state, or nil if there is no such image. */
126 | @property (nullable, strong) NSImage *image;
    |                                       `- note: mutation of this property is only permitted within the actor
127 |
128 | /*! An alternate image that appears on the button when the button is in an on state, or nil if there is no such image. Note that some button types do not display an alternate image. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:128:7: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.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
129 | 				self._popover = nil
130 | 			}
AppKit.NSPopover.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func close()}
  |                      |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:132:12: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
130 | 			}
131 |
132 | 			let p = NSPopover()
    |            `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 | 			p.contentViewController = self._controller
134 | 			p.behavior = .transient
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:62:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 60 | #endif
 61 |
 62 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
    | |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
    | `- note: main actor isolation inferred from inheritance from class 'NSResponder'
 63 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 64 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:133:6: warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
131 |
132 | 			let p = NSPopover()
133 | 			p.contentViewController = self._controller
    |      `- warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 | 			p.behavior = .transient
135 | 			p.delegate = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:121:56: note: mutation of this property is only permitted within the actor
119 | /*  The view controller that manages the content of the popover.  The default value is nil.  You must set the content view controller of the popover to a non-nil value before the popover is shown.  Changes to the popover's content view controller while the popover is shown will animate (provided animates is YES).
120 |  */
121 | @property(nullable, retain) IBOutlet NSViewController *contentViewController;
    |                                                        `- note: mutation of this property is only permitted within the actor
122 |
123 | /*  The content size of the popover.  The popover's content size is set to match the size of the content view when the content view controller is set.  Changes to the content size of the popover will animate while the popover is shown (provided animates is YES).
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:134:6: warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
132 | 			let p = NSPopover()
133 | 			p.contentViewController = self._controller
134 | 			p.behavior = .transient
    |      `- warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
135 | 			p.delegate = self
136 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:113:29: note: mutation of this property is only permitted within the actor
111 | /*  The behavior of the popover.  The default behavior is NSPopoverBehaviorApplicationDefined. See the declaration of NSPopoverBehavior above for more information about popover behaviors.
112 |  */
113 | @property NSPopoverBehavior behavior;
    |                             `- note: mutation of this property is only permitted within the actor
114 |
115 | /*  Should the popover be animated when it shows, closes, or appears to transition to a detachable window.  This property also controls whether the popover animates when the content view or content size changes. AppKit does not guarantee which behaviors will be animated or that this property will be respected; it is regarded as a hint.  The default value is YES.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:135:6: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
133 | 			p.contentViewController = self._controller
134 | 			p.behavior = .transient
135 | 			p.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
136 |
137 | 			p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:82:59: note: mutation of this property is only permitted within the actor
 80 | /*  The delegate of the popover. The delegate is not retained.
 81 |  */
 82 | @property(nullable, weak) IBOutlet id <NSPopoverDelegate> delegate;
    |                                                           `- note: mutation of this property is only permitted within the actor
 83 |
 84 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:137:6: 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
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
135 | 			p.delegate = self
136 |
137 | 			p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
    |      `- 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
138 | 		}
139 | 	}
AppKit.NSPopover.show:2:22: note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func show(relativeTo positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)}
  |                      |- note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:137:36: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
135 | 			p.delegate = self
136 |
137 | 			p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
    |                                    `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
138 | 		}
139 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
    |                  `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:144:11: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | 		let b = NSButton(frame: .zero)
    |           `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
145 | 		b.translatesAutoresizingMaskIntoConstraints = false
146 | 		b.bezelStyle = .regularSquare //  .texturedRounded
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:21:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
 19 | @interface NSControl : NSView
 20 |
 21 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
    | |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
    | `- note: main actor isolation inferred from inheritance from class 'NSControl'
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:145:5: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | 		let b = NSButton(frame: .zero)
145 | 		b.translatesAutoresizingMaskIntoConstraints = false
    |     `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
146 | 		b.bezelStyle = .regularSquare //  .texturedRounded
147 | 		b.setButtonType(type)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position.  To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 |  */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
    |                `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it.  If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint.  To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:146:5: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | 		let b = NSButton(frame: .zero)
145 | 		b.translatesAutoresizingMaskIntoConstraints = false
146 | 		b.bezelStyle = .regularSquare //  .texturedRounded
    |     `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 | 		b.setButtonType(type)
148 | 		return b
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /*! The bezel style of the button, which provides a set of bezel artwork, layout metrics, and content styling from a set of system-provided styles. See the NSBezelStyle enumeration for a list of available styles. The bezel style is not used if the `bordered` property is set to `NO`. */
105 | @property NSBezelStyle bezelStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /*! A Boolean value that determines whether the button draws a border. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:147:5: warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | 		let b = NSButton(frame: .zero)
145 | 		b.translatesAutoresizingMaskIntoConstraints = false
146 | 		b.bezelStyle = .regularSquare //  .texturedRounded
147 | 		b.setButtonType(type)
    |     `- warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
148 | 		return b
149 | 	}
AppKit.NSButton.setButtonType:2:22: note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
1 | class NSButton {
2 | @MainActor open func setButtonType(_ type: NSButton.ButtonType)}
  |                      |- note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSControl'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:165:5: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
163 | 			fatalError()
164 | 		}
165 | 		b.translatesAutoresizingMaskIntoConstraints = true
    |     `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
166 | 		b.removeConstraints(b.constraints)
167 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position.  To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 |  */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
    |                `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it.  If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint.  To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:166:5: warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
164 | 		}
165 | 		b.translatesAutoresizingMaskIntoConstraints = true
166 | 		b.removeConstraints(b.constraints)
    |     `- warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | 	}
168 | }
AppKit.NSView.removeConstraints:3:24: note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.7, *)
3 |   @MainActor open func removeConstraints(_ constraints: [NSLayoutConstraint])}
  |                        |- note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:166:25: warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
164 | 		}
165 | 		b.translatesAutoresizingMaskIntoConstraints = true
166 | 		b.removeConstraints(b.constraints)
    |                         `- warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | 	}
168 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:237:59: note: property declared here
235 | @property (readonly, strong) NSLayoutYAxisAnchor *lastBaselineAnchor API_AVAILABLE(macos(10.11));
236 |
237 | @property (readonly, copy) NSArray<NSLayoutConstraint *> *constraints API_AVAILABLE(macos(10.7));	// This property is deprecated and should be avoided.  Instead, create IB outlets or otherwise maintain references to constraints you need to reference directly.
    |                                                           `- note: property declared here
238 |
239 | - (void)addConstraint:(NSLayoutConstraint *)constraint API_AVAILABLE(macos(10.7));	// This method is deprecated and should be avoided.  Instead, set NSLayoutConstraint's active property to YES.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:76:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 74 | 		// Private
 75 |
 76 | 		private var _popupButton = NSPopUpButton(frame: .zero, pullsDown: true)
    |               `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 77 | 		private var _popupMenu: NSMenu?
 78 | 		private var _popupButtonItem: NSToolbarItem?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:48:11: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 46 |
 47 | 			let button = self._popupButton
 48 | 			button.translatesAutoresizingMaskIntoConstraints = true
    |           `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 49 | 			button.bezelStyle = .texturedRounded
 50 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position.  To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 |  */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
    |                `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it.  If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint.  To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:49:11: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 47 | 			let button = self._popupButton
 48 | 			button.translatesAutoresizingMaskIntoConstraints = true
 49 | 			button.bezelStyle = .texturedRounded
    |           `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 50 |
 51 | 			button.imagePosition = .imageOnly
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /*! The bezel style of the button, which provides a set of bezel artwork, layout metrics, and content styling from a set of system-provided styles. See the NSBezelStyle enumeration for a list of available styles. The bezel style is not used if the `bordered` property is set to `NO`. */
105 | @property NSBezelStyle bezelStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /*! A Boolean value that determines whether the button draws a border. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:51:11: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 49 | 			button.bezelStyle = .texturedRounded
 50 |
 51 | 			button.imagePosition = .imageOnly
    |           `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 52 | 			button.imageScaling = .scaleProportionallyDown
 53 | 			(button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:52:11: warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 50 |
 51 | 			button.imagePosition = .imageOnly
 52 | 			button.imageScaling = .scaleProportionallyDown
    |           `- warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 53 | 			(button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
 54 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:135:26: note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
135 | @property NSImageScaling imageScaling API_AVAILABLE(macos(10.5));
    |                          `- note: mutation of this property is only permitted within the actor
136 |
137 | /*! A Boolean value that determines how the button's image and title are positioned together within the button bezel. If false, the image is positioned according to the imagePosition property at the edge of the button bezel, and the title is positioned within the remaining space. If true, the button’s image is positioned directly adjacent to the title based on the imagePosition property, and the image and title are positioned within the button bezel as a single unit. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:53:41: warning: main actor-isolated property 'arrowPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 51 | 			button.imagePosition = .imageOnly
 52 | 			button.imageScaling = .scaleProportionallyDown
 53 | 			(button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
    |                                         `- warning: main actor-isolated property 'arrowPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 54 |
 55 | 			button.menu = self._popupMenu
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButtonCell.h:95:32: note: mutation of this property is only permitted within the actor
 93 |
 94 | // Arrow position for bezel style and borderless popups.
 95 | @property NSPopUpArrowPosition arrowPosition;
    |                                `- note: mutation of this property is only permitted within the actor
 96 |
 97 | @end
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:53:12: warning: main actor-isolated property 'cell' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 51 | 			button.imagePosition = .imageOnly
 52 | 			button.imageScaling = .scaleProportionallyDown
 53 | 			(button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
    |            `- warning: main actor-isolated property 'cell' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 54 |
 55 | 			button.menu = self._popupMenu
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:129:47: note: property declared here
127 | @property (class, nullable) Class cellClass;
128 |
129 | @property (nullable, strong) __kindof NSCell *cell;
    |                                               `- note: property declared here
130 |
131 | - (nullable __kindof NSCell *)selectedCell;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:55:11: warning: main actor-isolated property 'menu' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 53 | 			(button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
 54 |
 55 | 			button.menu = self._popupMenu
    |           `- warning: main actor-isolated property 'menu' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 56 |
 57 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButton.h:64:38: note: mutation of this property is only permitted within the actor
 62 |
 63 | /*! The menu that is presented by the popup button. This overrides the inherited NSView property and replaces NSView's standard context menu behavior. */
 64 | @property (nullable, strong) NSMenu *menu;
    |                                      `- note: mutation of this property is only permitted within the actor
 65 |
 66 | /*! When the value of this property is `YES` the button adopts 'pull-down' behavior, displaying static button contents and presenting its menu at the edge of the button. When the value of this property is `NO` the button behaves as a popup, displaying the currently-selected menu item and presenting its menu above the button, positioning the selected menu item to match the button's contents. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:57:12: warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 55 | 			button.menu = self._popupMenu
 56 |
 57 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
    |            `- warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 58 | 			a.view = self._popupButton
 59 | 			a.target = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:39:1: note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
 37 |  Initialize the toolbar item with an identifier which is a development language string used by the toolbar and its delegate for identification purposes.
 38 |  */
 39 | - (instancetype)initWithItemIdentifier:(NSToolbarItemIdentifier)itemIdentifier NS_DESIGNATED_INITIALIZER;
    | `- note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
 40 | @property (readonly, copy) NSToolbarItemIdentifier itemIdentifier;
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:58:6: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 56 |
 57 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
 58 | 			a.view = self._popupButton
    |      `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 | 			a.target = self
 60 | 			a.action = #selector(self.dummyTargetSelector(_:))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:142:38: note: mutation of this property is only permitted within the actor
140 |  Note that, by default, many of the set/get methods will be implemented by calls forwarded to the view you set, if it responds to it.
141 |  */
142 | @property (nullable, strong) NSView *view API_UNAVAILABLE(ios);
    |                                      `- note: mutation of this property is only permitted within the actor
143 |
144 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:59:6: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 57 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
 58 | 			a.view = self._popupButton
 59 | 			a.target = self
    |      `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 60 | 			a.action = #selector(self.dummyTargetSelector(_:))
 61 | 			self._popupButtonItem = a
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:94:31: note: mutation of this property is only permitted within the actor
 92 |  Set and get the action of an item. (forwards to `-view` if it responds)
 93 |  */
 94 | @property (nullable, weak) id target;
    |                               `- note: mutation of this property is only permitted within the actor
 95 |
 96 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:60:6: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 58 | 			a.view = self._popupButton
 59 | 			a.target = self
 60 | 			a.action = #selector(self.dummyTargetSelector(_:))
    |      `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 61 | 			self._popupButtonItem = a
 62 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:100:26: note: mutation of this property is only permitted within the actor
 98 |  For custom views, this method will call `-setAction:` on the view if it responds. (forwards to `-view` if it responds)
 99 |  */
100 | @property (nullable) SEL action;
    |                          `- note: mutation of this property is only permitted within the actor
101 |
102 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:85:27: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 83 |
 84 | 		override func isEnabledDidChange(to state: Bool) {
 85 | 			self._popupButtonItem?.isEnabled = state
    |                           `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 86 | 			self._popupButton.isEnabled = state
 87 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:106:35: note: mutation of this property is only permitted within the actor
104 |  For custom views, this method will call `-setEnabled:` on the view if it responds. (forwards to `-view` if it responds)
105 |  */
106 | @property (getter=isEnabled) BOOL enabled;
    |                                   `- note: mutation of this property is only permitted within the actor
107 |
108 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:86:22: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 84 | 		override func isEnabledDidChange(to state: Bool) {
 85 | 			self._popupButtonItem?.isEnabled = state
 86 | 			self._popupButton.isEnabled = state
    |                      `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 87 | 		}
 88 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:29:35: note: mutation of this property is only permitted within the actor
 27 | @property BOOL ignoresMultiClick;
 28 | @property (getter=isContinuous) BOOL continuous;
 29 | @property (getter=isEnabled) BOOL enabled;
    |                                   `- note: mutation of this property is only permitted within the actor
 30 | @property BOOL refusesFirstResponder;
 31 | @property (getter=isHighlighted) BOOL highlighted API_AVAILABLE(macos(10.10));
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:102:17: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
100 | 		override func changeToUseLegacySizing() {
101 | 			// If we're using legacy sizing, we have to remove the constraints first
102 | 			_popupButton.translatesAutoresizingMaskIntoConstraints = true
    |                 `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
103 | 			_popupButton.removeConstraints(_popupButton.constraints)
104 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position.  To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 |  */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
    |                `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it.  If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint.  To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:103:17: warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 | 			// If we're using legacy sizing, we have to remove the constraints first
102 | 			_popupButton.translatesAutoresizingMaskIntoConstraints = true
103 | 			_popupButton.removeConstraints(_popupButton.constraints)
    |                 `- warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | 		}
105 |
AppKit.NSView.removeConstraints:3:24: note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.7, *)
3 |   @MainActor open func removeConstraints(_ constraints: [NSLayoutConstraint])}
  |                        |- note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:103:48: warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
101 | 			// If we're using legacy sizing, we have to remove the constraints first
102 | 			_popupButton.translatesAutoresizingMaskIntoConstraints = true
103 | 			_popupButton.removeConstraints(_popupButton.constraints)
    |                                                `- warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
104 | 		}
105 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:237:59: note: property declared here
235 | @property (readonly, strong) NSLayoutYAxisAnchor *lastBaselineAnchor API_AVAILABLE(macos(10.11));
236 |
237 | @property (readonly, copy) NSArray<NSLayoutConstraint *> *constraints API_AVAILABLE(macos(10.7));	// This property is deprecated and should be avoided.  Instead, create IB outlets or otherwise maintain references to constraints you need to reference directly.
    |                                                           `- note: property declared here
238 |
239 | - (void)addConstraint:(NSLayoutConstraint *)constraint API_AVAILABLE(macos(10.7));	// This method is deprecated and should be avoided.  Instead, set NSLayoutConstraint's active property to YES.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:165:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | 		guard let p = self._popupMenu,
151 | 				p.items.count > 0,
    :
163 | 		// If there's an image and no title, set the state to imageOnly
164 | 		if self._title.count == 0, self._image != nil {
165 | 			self._popupButton.imagePosition = .imageOnly
    |                      `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
166 | 		}
167 | 		else if self._title.count > 0, self._image == nil {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:168:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | 		guard let p = self._popupMenu,
151 | 				p.items.count > 0,
    :
166 | 		}
167 | 		else if self._title.count > 0, self._image == nil {
168 | 			self._popupButton.imagePosition = .noImage
    |                      `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
169 | 		}
170 | 		else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:171:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | 		guard let p = self._popupMenu,
151 | 				p.items.count > 0,
    :
169 | 		}
170 | 		else {
171 | 			self._popupButton.imagePosition = self._imagePosition
    |                      `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
172 | 		}
173 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
[33/37] Compiling DSFToolbar DSFToolbar.PopupButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:67:17: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 65 | 			}
 66 |
 67 | 			self.button?.target = self
    |                 `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 68 | 			self.button?.action = #selector(self.action(_:))
 69 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:24:31: note: mutation of this property is only permitted within the actor
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
    |                               `- note: mutation of this property is only permitted within the actor
 25 | @property (nullable) SEL action;
 26 | @property NSInteger tag;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:68:17: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 66 |
 67 | 			self.button?.target = self
 68 | 			self.button?.action = #selector(self.action(_:))
    |                 `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 69 |
 70 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:25:26: note: mutation of this property is only permitted within the actor
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
 25 | @property (nullable) SEL action;
    |                          `- note: mutation of this property is only permitted within the actor
 26 | @property NSInteger tag;
 27 | @property BOOL ignoresMultiClick;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:70:12: warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 68 | 			self.button?.action = #selector(self.action(_:))
 69 |
 70 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
    |            `- warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 71 | 			a.view = self.button
 72 | 			a.label = "fish"
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:39:1: note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
 37 |  Initialize the toolbar item with an identifier which is a development language string used by the toolbar and its delegate for identification purposes.
 38 |  */
 39 | - (instancetype)initWithItemIdentifier:(NSToolbarItemIdentifier)itemIdentifier NS_DESIGNATED_INITIALIZER;
    | `- note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
 40 | @property (readonly, copy) NSToolbarItemIdentifier itemIdentifier;
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:71:6: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 69 |
 70 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
 71 | 			a.view = self.button
    |      `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 72 | 			a.label = "fish"
 73 | 			self.buttonToolbarItem = a
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:142:38: note: mutation of this property is only permitted within the actor
140 |  Note that, by default, many of the set/get methods will be implemented by calls forwarded to the view you set, if it responds to it.
141 |  */
142 | @property (nullable, strong) NSView *view API_UNAVAILABLE(ios);
    |                                      `- note: mutation of this property is only permitted within the actor
143 |
144 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:72:6: warning: main actor-isolated property 'label' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 70 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
 71 | 			a.view = self.button
 72 | 			a.label = "fish"
    |      `- warning: main actor-isolated property 'label' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 73 | 			self.buttonToolbarItem = a
 74 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:55:28: note: mutation of this property is only permitted within the actor
 53 |  Also, developers should make sure the length of the label is appropriate and not too long.
 54 |  */
 55 | @property (copy) NSString *label;
    |                            `- note: mutation of this property is only permitted within the actor
 56 |
 57 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:90:19: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 88 | 		override public func close() {
 89 | 			// Make sure the popover is closed
 90 | 			self._popover?.close()
    |                   `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 91 | 			self._popover = nil
 92 |
AppKit.NSPopover.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func close()}
  |                      |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:93:17: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 91 | 			self._popover = nil
 92 |
 93 | 			self.button?.target = nil
    |                 `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 94 | 			self.button = nil
 95 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:24:31: note: mutation of this property is only permitted within the actor
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
 24 | @property (nullable, weak) id target; // Target is weak for zeroing-weak compatible objects in apps linked on 10.10 or later. Otherwise the behavior of this property is 'assign’.
    |                               `- note: mutation of this property is only permitted within the actor
 25 | @property (nullable) SEL action;
 26 | @property NSInteger tag;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:96:28: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 94 | 			self.button = nil
 95 |
 96 | 			self.buttonToolbarItem?.view = nil
    |                            `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 97 | 			self.buttonToolbarItem = nil
 98 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:142:38: note: mutation of this property is only permitted within the actor
140 |  Note that, by default, many of the set/get methods will be implemented by calls forwarded to the view you set, if it responds to it.
141 |  */
142 | @property (nullable, strong) NSView *view API_UNAVAILABLE(ios);
    |                                      `- note: mutation of this property is only permitted within the actor
143 |
144 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:118:17: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 | 		/// - Returns: self
115 | 		@discardableResult
116 | 		public func image(_ image: NSImage) -> Self {
    |               `- note: add '@MainActor' to make instance method 'image' part of global actor 'MainActor'
117 | 			self._image = image
118 | 			self.button?.image = image
    |                 `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
119 | 			return self
120 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:126:39: note: mutation of this property is only permitted within the actor
124 |
125 | /*! The image that appears on the button when it’s in an off state, or nil if there is no such image. */
126 | @property (nullable, strong) NSImage *image;
    |                                       `- note: mutation of this property is only permitted within the actor
127 |
128 | /*! An alternate image that appears on the button when the button is in an on state, or nil if there is no such image. Note that some button types do not display an alternate image. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:128:7: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.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
129 | 				self._popover = nil
130 | 			}
AppKit.NSPopover.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func close()}
  |                      |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:132:12: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
130 | 			}
131 |
132 | 			let p = NSPopover()
    |            `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 | 			p.contentViewController = self._controller
134 | 			p.behavior = .transient
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:62:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 60 | #endif
 61 |
 62 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
    | |- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
    | `- note: main actor isolation inferred from inheritance from class 'NSResponder'
 63 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 64 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:133:6: warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
131 |
132 | 			let p = NSPopover()
133 | 			p.contentViewController = self._controller
    |      `- warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 | 			p.behavior = .transient
135 | 			p.delegate = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:121:56: note: mutation of this property is only permitted within the actor
119 | /*  The view controller that manages the content of the popover.  The default value is nil.  You must set the content view controller of the popover to a non-nil value before the popover is shown.  Changes to the popover's content view controller while the popover is shown will animate (provided animates is YES).
120 |  */
121 | @property(nullable, retain) IBOutlet NSViewController *contentViewController;
    |                                                        `- note: mutation of this property is only permitted within the actor
122 |
123 | /*  The content size of the popover.  The popover's content size is set to match the size of the content view when the content view controller is set.  Changes to the content size of the popover will animate while the popover is shown (provided animates is YES).
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:134:6: warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
132 | 			let p = NSPopover()
133 | 			p.contentViewController = self._controller
134 | 			p.behavior = .transient
    |      `- warning: main actor-isolated property 'behavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
135 | 			p.delegate = self
136 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:113:29: note: mutation of this property is only permitted within the actor
111 | /*  The behavior of the popover.  The default behavior is NSPopoverBehaviorApplicationDefined. See the declaration of NSPopoverBehavior above for more information about popover behaviors.
112 |  */
113 | @property NSPopoverBehavior behavior;
    |                             `- note: mutation of this property is only permitted within the actor
114 |
115 | /*  Should the popover be animated when it shows, closes, or appears to transition to a detachable window.  This property also controls whether the popover animates when the content view or content size changes. AppKit does not guarantee which behaviors will be animated or that this property will be respected; it is regarded as a hint.  The default value is YES.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:135:6: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
133 | 			p.contentViewController = self._controller
134 | 			p.behavior = .transient
135 | 			p.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
136 |
137 | 			p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopover.h:82:59: note: mutation of this property is only permitted within the actor
 80 | /*  The delegate of the popover. The delegate is not retained.
 81 |  */
 82 | @property(nullable, weak) IBOutlet id <NSPopoverDelegate> delegate;
    |                                                           `- note: mutation of this property is only permitted within the actor
 83 |
 84 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_10
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:137:6: 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
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
135 | 			p.delegate = self
136 |
137 | 			p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
    |      `- 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
138 | 		}
139 | 	}
AppKit.NSPopover.show:2:22: note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func show(relativeTo positioningRect: NSRect, of positioningView: NSView, preferredEdge: NSRectEdge)}
  |                      |- note: calls to instance method 'show(relativeTo:of:preferredEdge:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:137:36: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
124 | 		}
125 |
126 | 		private func showPopover() {
    |                `- note: add '@MainActor' to make instance method 'showPopover()' part of global actor 'MainActor'
127 | 			if let p = _popover {
128 | 				p.close()
    :
135 | 			p.delegate = self
136 |
137 | 			p.show(relativeTo: self.button!.bounds, of: self.button!, preferredEdge: .maxY)
    |                                    `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
138 | 		}
139 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
    |                  `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:144:11: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | 		let b = NSButton(frame: .zero)
    |           `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
145 | 		b.translatesAutoresizingMaskIntoConstraints = false
146 | 		b.bezelStyle = .regularSquare //  .texturedRounded
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:21:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
 19 | @interface NSControl : NSView
 20 |
 21 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
    | |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
    | `- note: main actor isolation inferred from inheritance from class 'NSControl'
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:145:5: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | 		let b = NSButton(frame: .zero)
145 | 		b.translatesAutoresizingMaskIntoConstraints = false
    |     `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
146 | 		b.bezelStyle = .regularSquare //  .texturedRounded
147 | 		b.setButtonType(type)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position.  To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 |  */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
    |                `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it.  If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint.  To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:146:5: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | 		let b = NSButton(frame: .zero)
145 | 		b.translatesAutoresizingMaskIntoConstraints = false
146 | 		b.bezelStyle = .regularSquare //  .texturedRounded
    |     `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 | 		b.setButtonType(type)
148 | 		return b
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /*! The bezel style of the button, which provides a set of bezel artwork, layout metrics, and content styling from a set of system-provided styles. See the NSBezelStyle enumeration for a list of available styles. The bezel style is not used if the `bordered` property is set to `NO`. */
105 | @property NSBezelStyle bezelStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /*! A Boolean value that determines whether the button draws a border. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:147:5: warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
141 |
142 | extension DSFToolbar.PopoverButton {
143 | 	private func buildButton(type: NSButton.ButtonType) -> NSButton {
    |               `- note: add '@MainActor' to make instance method 'buildButton(type:)' part of global actor 'MainActor'
144 | 		let b = NSButton(frame: .zero)
145 | 		b.translatesAutoresizingMaskIntoConstraints = false
146 | 		b.bezelStyle = .regularSquare //  .texturedRounded
147 | 		b.setButtonType(type)
    |     `- warning: call to main actor-isolated instance method 'setButtonType' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
148 | 		return b
149 | 	}
AppKit.NSButton.setButtonType:2:22: note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
1 | class NSButton {
2 | @MainActor open func setButtonType(_ type: NSButton.ButtonType)}
  |                      |- note: calls to instance method 'setButtonType' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSControl'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:165:5: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
163 | 			fatalError()
164 | 		}
165 | 		b.translatesAutoresizingMaskIntoConstraints = true
    |     `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
166 | 		b.removeConstraints(b.constraints)
167 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position.  To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 |  */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
    |                `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it.  If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint.  To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:166:5: warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
164 | 		}
165 | 		b.translatesAutoresizingMaskIntoConstraints = true
166 | 		b.removeConstraints(b.constraints)
    |     `- warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | 	}
168 | }
AppKit.NSView.removeConstraints:3:24: note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.7, *)
3 |   @MainActor open func removeConstraints(_ constraints: [NSLayoutConstraint])}
  |                        |- note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopoverButton.swift:166:25: warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
164 | 		}
165 | 		b.translatesAutoresizingMaskIntoConstraints = true
166 | 		b.removeConstraints(b.constraints)
    |                         `- warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | 	}
168 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:237:59: note: property declared here
235 | @property (readonly, strong) NSLayoutYAxisAnchor *lastBaselineAnchor API_AVAILABLE(macos(10.11));
236 |
237 | @property (readonly, copy) NSArray<NSLayoutConstraint *> *constraints API_AVAILABLE(macos(10.7));	// This property is deprecated and should be avoided.  Instead, create IB outlets or otherwise maintain references to constraints you need to reference directly.
    |                                                           `- note: property declared here
238 |
239 | - (void)addConstraint:(NSLayoutConstraint *)constraint API_AVAILABLE(macos(10.7));	// This method is deprecated and should be avoided.  Instead, set NSLayoutConstraint's active property to YES.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:76:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 74 | 		// Private
 75 |
 76 | 		private var _popupButton = NSPopUpButton(frame: .zero, pullsDown: true)
    |               `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
 77 | 		private var _popupMenu: NSMenu?
 78 | 		private var _popupButtonItem: NSToolbarItem?
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:48:11: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 46 |
 47 | 			let button = self._popupButton
 48 | 			button.translatesAutoresizingMaskIntoConstraints = true
    |           `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 49 | 			button.bezelStyle = .texturedRounded
 50 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position.  To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 |  */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
    |                `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it.  If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint.  To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:49:11: warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 47 | 			let button = self._popupButton
 48 | 			button.translatesAutoresizingMaskIntoConstraints = true
 49 | 			button.bezelStyle = .texturedRounded
    |           `- warning: main actor-isolated property 'bezelStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 50 |
 51 | 			button.imagePosition = .imageOnly
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /*! The bezel style of the button, which provides a set of bezel artwork, layout metrics, and content styling from a set of system-provided styles. See the NSBezelStyle enumeration for a list of available styles. The bezel style is not used if the `bordered` property is set to `NO`. */
105 | @property NSBezelStyle bezelStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /*! A Boolean value that determines whether the button draws a border. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:51:11: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 49 | 			button.bezelStyle = .texturedRounded
 50 |
 51 | 			button.imagePosition = .imageOnly
    |           `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 52 | 			button.imageScaling = .scaleProportionallyDown
 53 | 			(button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:52:11: warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 50 |
 51 | 			button.imagePosition = .imageOnly
 52 | 			button.imageScaling = .scaleProportionallyDown
    |           `- warning: main actor-isolated property 'imageScaling' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 53 | 			(button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
 54 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:135:26: note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
135 | @property NSImageScaling imageScaling API_AVAILABLE(macos(10.5));
    |                          `- note: mutation of this property is only permitted within the actor
136 |
137 | /*! A Boolean value that determines how the button's image and title are positioned together within the button bezel. If false, the image is positioned according to the imagePosition property at the edge of the button bezel, and the title is positioned within the remaining space. If true, the button’s image is positioned directly adjacent to the title based on the imagePosition property, and the image and title are positioned within the button bezel as a single unit. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:53:41: warning: main actor-isolated property 'arrowPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 51 | 			button.imagePosition = .imageOnly
 52 | 			button.imageScaling = .scaleProportionallyDown
 53 | 			(button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
    |                                         `- warning: main actor-isolated property 'arrowPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 54 |
 55 | 			button.menu = self._popupMenu
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButtonCell.h:95:32: note: mutation of this property is only permitted within the actor
 93 |
 94 | // Arrow position for bezel style and borderless popups.
 95 | @property NSPopUpArrowPosition arrowPosition;
    |                                `- note: mutation of this property is only permitted within the actor
 96 |
 97 | @end
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:53:12: warning: main actor-isolated property 'cell' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 51 | 			button.imagePosition = .imageOnly
 52 | 			button.imageScaling = .scaleProportionallyDown
 53 | 			(button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
    |            `- warning: main actor-isolated property 'cell' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 54 |
 55 | 			button.menu = self._popupMenu
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:129:47: note: property declared here
127 | @property (class, nullable) Class cellClass;
128 |
129 | @property (nullable, strong) __kindof NSCell *cell;
    |                                               `- note: property declared here
130 |
131 | - (nullable __kindof NSCell *)selectedCell;
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:55:11: warning: main actor-isolated property 'menu' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 53 | 			(button.cell as? NSPopUpButtonCell)?.arrowPosition = .arrowAtBottom
 54 |
 55 | 			button.menu = self._popupMenu
    |           `- warning: main actor-isolated property 'menu' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 56 |
 57 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSPopUpButton.h:64:38: note: mutation of this property is only permitted within the actor
 62 |
 63 | /*! The menu that is presented by the popup button. This overrides the inherited NSView property and replaces NSView's standard context menu behavior. */
 64 | @property (nullable, strong) NSMenu *menu;
    |                                      `- note: mutation of this property is only permitted within the actor
 65 |
 66 | /*! When the value of this property is `YES` the button adopts 'pull-down' behavior, displaying static button contents and presenting its menu at the edge of the button. When the value of this property is `NO` the button behaves as a popup, displaying the currently-selected menu item and presenting its menu above the button, positioning the selected menu item to match the button's contents. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:57:12: warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 55 | 			button.menu = self._popupMenu
 56 |
 57 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
    |            `- warning: call to main actor-isolated initializer 'init(itemIdentifier:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 58 | 			a.view = self._popupButton
 59 | 			a.target = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:39:1: note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
 37 |  Initialize the toolbar item with an identifier which is a development language string used by the toolbar and its delegate for identification purposes.
 38 |  */
 39 | - (instancetype)initWithItemIdentifier:(NSToolbarItemIdentifier)itemIdentifier NS_DESIGNATED_INITIALIZER;
    | `- note: calls to initializer 'init(itemIdentifier:)' from outside of its actor context are implicitly asynchronous
 40 | @property (readonly, copy) NSToolbarItemIdentifier itemIdentifier;
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:58:6: warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 56 |
 57 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
 58 | 			a.view = self._popupButton
    |      `- warning: main actor-isolated property 'view' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 59 | 			a.target = self
 60 | 			a.action = #selector(self.dummyTargetSelector(_:))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:142:38: note: mutation of this property is only permitted within the actor
140 |  Note that, by default, many of the set/get methods will be implemented by calls forwarded to the view you set, if it responds to it.
141 |  */
142 | @property (nullable, strong) NSView *view API_UNAVAILABLE(ios);
    |                                      `- note: mutation of this property is only permitted within the actor
143 |
144 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:59:6: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 57 | 			let a = NSToolbarItem(itemIdentifier: self.identifier)
 58 | 			a.view = self._popupButton
 59 | 			a.target = self
    |      `- warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 60 | 			a.action = #selector(self.dummyTargetSelector(_:))
 61 | 			self._popupButtonItem = a
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:94:31: note: mutation of this property is only permitted within the actor
 92 |  Set and get the action of an item. (forwards to `-view` if it responds)
 93 |  */
 94 | @property (nullable, weak) id target;
    |                               `- note: mutation of this property is only permitted within the actor
 95 |
 96 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:60:6: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 58 | 			a.view = self._popupButton
 59 | 			a.target = self
 60 | 			a.action = #selector(self.dummyTargetSelector(_:))
    |      `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 61 | 			self._popupButtonItem = a
 62 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:100:26: note: mutation of this property is only permitted within the actor
 98 |  For custom views, this method will call `-setAction:` on the view if it responds. (forwards to `-view` if it responds)
 99 |  */
100 | @property (nullable) SEL action;
    |                          `- note: mutation of this property is only permitted within the actor
101 |
102 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:85:27: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 83 |
 84 | 		override func isEnabledDidChange(to state: Bool) {
 85 | 			self._popupButtonItem?.isEnabled = state
    |                           `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 86 | 			self._popupButton.isEnabled = state
 87 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:106:35: note: mutation of this property is only permitted within the actor
104 |  For custom views, this method will call `-setEnabled:` on the view if it responds. (forwards to `-view` if it responds)
105 |  */
106 | @property (getter=isEnabled) BOOL enabled;
    |                                   `- note: mutation of this property is only permitted within the actor
107 |
108 | /**
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:86:22: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 84 | 		override func isEnabledDidChange(to state: Bool) {
 85 | 			self._popupButtonItem?.isEnabled = state
 86 | 			self._popupButton.isEnabled = state
    |                      `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 87 | 		}
 88 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:29:35: note: mutation of this property is only permitted within the actor
 27 | @property BOOL ignoresMultiClick;
 28 | @property (getter=isContinuous) BOOL continuous;
 29 | @property (getter=isEnabled) BOOL enabled;
    |                                   `- note: mutation of this property is only permitted within the actor
 30 | @property BOOL refusesFirstResponder;
 31 | @property (getter=isHighlighted) BOOL highlighted API_AVAILABLE(macos(10.10));
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:102:17: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
100 | 		override func changeToUseLegacySizing() {
101 | 			// If we're using legacy sizing, we have to remove the constraints first
102 | 			_popupButton.translatesAutoresizingMaskIntoConstraints = true
    |                 `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
103 | 			_popupButton.removeConstraints(_popupButton.constraints)
104 | 		}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position.  To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 |  */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
    |                `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it.  If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint.  To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:103:17: warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 | 			// If we're using legacy sizing, we have to remove the constraints first
102 | 			_popupButton.translatesAutoresizingMaskIntoConstraints = true
103 | 			_popupButton.removeConstraints(_popupButton.constraints)
    |                 `- warning: call to main actor-isolated instance method 'removeConstraints' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
104 | 		}
105 |
AppKit.NSView.removeConstraints:3:24: note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.7, *)
3 |   @MainActor open func removeConstraints(_ constraints: [NSLayoutConstraint])}
  |                        |- note: calls to instance method 'removeConstraints' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:103:48: warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
101 | 			// If we're using legacy sizing, we have to remove the constraints first
102 | 			_popupButton.translatesAutoresizingMaskIntoConstraints = true
103 | 			_popupButton.removeConstraints(_popupButton.constraints)
    |                                                `- warning: main actor-isolated property 'constraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
104 | 		}
105 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:237:59: note: property declared here
235 | @property (readonly, strong) NSLayoutYAxisAnchor *lastBaselineAnchor API_AVAILABLE(macos(10.11));
236 |
237 | @property (readonly, copy) NSArray<NSLayoutConstraint *> *constraints API_AVAILABLE(macos(10.7));	// This property is deprecated and should be avoided.  Instead, create IB outlets or otherwise maintain references to constraints you need to reference directly.
    |                                                           `- note: property declared here
238 |
239 | - (void)addConstraint:(NSLayoutConstraint *)constraint API_AVAILABLE(macos(10.7));	// This method is deprecated and should be avoided.  Instead, set NSLayoutConstraint's active property to YES.
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:165:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | 		guard let p = self._popupMenu,
151 | 				p.items.count > 0,
    :
163 | 		// If there's an image and no title, set the state to imageOnly
164 | 		if self._title.count == 0, self._image != nil {
165 | 			self._popupButton.imagePosition = .imageOnly
    |                      `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
166 | 		}
167 | 		else if self._title.count > 0, self._image == nil {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:168:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | 		guard let p = self._popupMenu,
151 | 				p.items.count > 0,
    :
166 | 		}
167 | 		else if self._title.count > 0, self._image == nil {
168 | 			self._popupButton.imagePosition = .noImage
    |                      `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
169 | 		}
170 | 		else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFToolbar/DSFToolbar.PopupButton.swift:171:22: warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |
148 | extension DSFToolbar.PopupButton {
149 | 	private func updateDisplay() {
    |               `- note: add '@MainActor' to make instance method 'updateDisplay()' part of global actor 'MainActor'
150 | 		guard let p = self._popupMenu,
151 | 				p.items.count > 0,
    :
169 | 		}
170 | 		else {
171 | 			self._popupButton.imagePosition = self._imagePosition
    |                      `- warning: main actor-isolated property 'imagePosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
172 | 		}
173 | 	}
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSButton.h:132:31: note: mutation of this property is only permitted within the actor
130 |
131 | /*! The position of the button's image relative to its title. See the NSCellImagePosition enumeration for possible values. */
132 | @property NSCellImagePosition imagePosition;
    |                               `- note: mutation of this property is only permitted within the actor
133 |
134 | /*! The scaling mode applied to make the button's image fit within its bounds. */
[33/37] Write Objects.LinkFileList
[35/37] Archiving libDSFToolbar-static.a
[36/37] Linking libDSFToolbar-shared.dylib
Build complete! (10.85s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "dsfvaluebinders",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.1",
            "upper_bound" : "1.1.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/dagronf/DSFValueBinders"
    }
  ],
  "manifest_display_name" : "DSFToolbar",
  "name" : "DSFToolbar",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "DSFToolbar",
      "targets" : [
        "DSFToolbar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "DSFToolbar-static",
      "targets" : [
        "DSFToolbar"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "DSFToolbar-shared",
      "targets" : [
        "DSFToolbar"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DSFToolbarTests",
      "module_type" : "SwiftTarget",
      "name" : "DSFToolbarTests",
      "path" : "Tests/DSFToolbarTests",
      "sources" : [
        "DSFToolbarTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "DSFToolbar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DSFToolbar",
      "module_type" : "SwiftTarget",
      "name" : "DSFToolbar",
      "path" : "Sources/DSFToolbar",
      "product_dependencies" : [
        "DSFValueBinders"
      ],
      "product_memberships" : [
        "DSFToolbar",
        "DSFToolbar-static",
        "DSFToolbar-shared"
      ],
      "sources" : [
        "DSFToolbar.Button.swift",
        "DSFToolbar.Core.swift",
        "DSFToolbar.Group.swift",
        "DSFToolbar.Item.swift",
        "DSFToolbar.PopoverButton.swift",
        "DSFToolbar.PopupButton.swift",
        "DSFToolbar.PopupMenu.swift",
        "DSFToolbar.ResultBuilders.swift",
        "DSFToolbar.Search.swift",
        "DSFToolbar.Segmented+catalyst.swift",
        "DSFToolbar.Segmented.swift",
        "DSFToolbar.Separator.swift",
        "DSFToolbar.Standard.swift",
        "DSFToolbar.View.swift",
        "DSFToolbar.swift",
        "logging.swift",
        "utilities.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Done.