Build Information
Successful build of DSFAppKitBuilder, reference 11.10.2 (d188d6
), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 13:01:36 UTC.
Swift 6 data race errors: 126
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
89 | self.stepper.minimum = CGFloat(range.lowerBound)
90 | self.stepper.maximum = CGFloat(range.upperBound)
91 | self.stepper.increment = CGFloat(increment)
| `- warning: main actor-isolated property 'increment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
92 | self.stepper.allowsKeyboardInput = allowsKeyboardInput
93 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:101:28: note: mutation of this property is only permitted within the actor
99 |
100 | /// How much to increment/decrement the value when pressing the -/+ buttons
101 | @IBInspectable public var increment: CGFloat = 1 {
| `- note: mutation of this property is only permitted within the actor
102 | didSet {
103 | self.editField.increment = self.increment
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:92:16: warning: main actor-isolated property 'allowsKeyboardInput' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
90 | self.stepper.maximum = CGFloat(range.upperBound)
91 | self.stepper.increment = CGFloat(increment)
92 | self.stepper.allowsKeyboardInput = allowsKeyboardInput
| `- warning: main actor-isolated property 'allowsKeyboardInput' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
93 |
94 | if let i = initialValue {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:71:28: note: mutation of this property is only permitted within the actor
69 |
70 | /// Allow the user to manually enter text
71 | @IBInspectable public var allowsKeyboardInput: Bool = true {
| `- note: mutation of this property is only permitted within the actor
72 | didSet {
73 | self.editField.allowsKeyboardInput = self.allowsKeyboardInput
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:95:17: warning: main actor-isolated property 'floatValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
93 |
94 | if let i = initialValue {
95 | self.stepper.floatValue = CGFloat(i)
| `- warning: main actor-isolated property 'floatValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
96 | }
97 | else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:199:21: note: mutation of this property is only permitted within the actor
197 |
198 | /// The value being displayed in the control. nil represents an 'empty' value, so you can display 'inherited' or 'default' depending on your needs.
199 | public dynamic var floatValue: CGFloat? {
| `- note: mutation of this property is only permitted within the actor
200 | didSet {
201 | // Update the displayed value in the control
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:98:17: warning: main actor-isolated property 'floatValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
96 | }
97 | else {
98 | self.stepper.floatValue = nil
| `- warning: main actor-isolated property 'floatValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:199:21: note: mutation of this property is only permitted within the actor
197 |
198 | /// The value being displayed in the control. nil represents an 'empty' value, so you can display 'inherited' or 'default' depending on your needs.
199 | public dynamic var floatValue: CGFloat? {
| `- note: mutation of this property is only permitted within the actor
200 | didSet {
201 | // Update the displayed value in the control
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:102:41: warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
100 |
101 | if let style = style {
102 | if let f = style.font { self.stepper.font = f.font }
| `- warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
103 | if let c = style.textColor { self.stepper.foregroundColor = c }
104 | if let c = style.backgroundColor { self.stepper.borderBackground = c }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:166:13: note: mutation of this property is only permitted within the actor
164 |
165 | /// The font for the control.
166 | public var font: NSFont? {
| `- note: mutation of this property is only permitted within the actor
167 | get {
168 | return self.editField.font
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:103:46: warning: main actor-isolated property 'foregroundColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
101 | if let style = style {
102 | if let f = style.font { self.stepper.font = f.font }
103 | if let c = style.textColor { self.stepper.foregroundColor = c }
| `- warning: main actor-isolated property 'foregroundColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
104 | if let c = style.backgroundColor { self.stepper.borderBackground = c }
105 | if let c = style.borderColor { self.stepper.borderColor = c }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:134:28: note: mutation of this property is only permitted within the actor
132 |
133 | /// The font color (default is the standard text color)
134 | @IBInspectable public var foregroundColor: NSColor? {
| `- note: mutation of this property is only permitted within the actor
135 | didSet {
136 | self.editField.foregroundColor = self.foregroundColor
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:104:52: warning: main actor-isolated property 'borderBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
102 | if let f = style.font { self.stepper.font = f.font }
103 | if let c = style.textColor { self.stepper.foregroundColor = c }
104 | if let c = style.backgroundColor { self.stepper.borderBackground = c }
| `- warning: main actor-isolated property 'borderBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
105 | if let c = style.borderColor { self.stepper.borderColor = c }
106 | if let c = style.indicatorColor { self.stepper.indicatorColor = c }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:159:28: note: mutation of this property is only permitted within the actor
157 | ///
158 | /// NOTE: If you set this value, you will need to handle accessibility changes yourself.
159 | @IBInspectable public var borderBackground: NSColor? = nil {
| `- note: mutation of this property is only permitted within the actor
160 | didSet {
161 | self.editField.borderBackground = self.borderBackground
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:105:48: warning: main actor-isolated property 'borderColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
103 | if let c = style.textColor { self.stepper.foregroundColor = c }
104 | if let c = style.backgroundColor { self.stepper.borderBackground = c }
105 | if let c = style.borderColor { self.stepper.borderColor = c }
| `- warning: main actor-isolated property 'borderColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
106 | if let c = style.indicatorColor { self.stepper.indicatorColor = c }
107 | if let n = style.numberFormatter { self.stepper.numberFormatter = n }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:150:28: note: mutation of this property is only permitted within the actor
148 | ///
149 | /// NOTE: If you set this value, you will need to handle accessibility changes yourself.
150 | @IBInspectable public var borderColor: NSColor? = nil {
| `- note: mutation of this property is only permitted within the actor
151 | didSet {
152 | self.editField.borderColor = self.borderColor
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:106:51: warning: main actor-isolated property 'indicatorColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
104 | if let c = style.backgroundColor { self.stepper.borderBackground = c }
105 | if let c = style.borderColor { self.stepper.borderColor = c }
106 | if let c = style.indicatorColor { self.stepper.indicatorColor = c }
| `- warning: main actor-isolated property 'indicatorColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
107 | if let n = style.numberFormatter { self.stepper.numberFormatter = n }
108 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:141:28: note: mutation of this property is only permitted within the actor
139 |
140 | /// The color to draw the indicator. If not set, then no indicator is drawn
141 | @IBInspectable public var indicatorColor: NSColor? = nil {
| `- note: mutation of this property is only permitted within the actor
142 | didSet {
143 | self.editField.indicatorColor = self.indicatorColor
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:107:52: warning: main actor-isolated property 'numberFormatter' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
105 | if let c = style.borderColor { self.stepper.borderColor = c }
106 | if let c = style.indicatorColor { self.stepper.indicatorColor = c }
107 | if let n = style.numberFormatter { self.stepper.numberFormatter = n }
| `- warning: main actor-isolated property 'numberFormatter' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
108 | }
109 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:190:23: note: mutation of this property is only permitted within the actor
188 |
189 | /// A number formatter for display and validation within the control (optional)
190 | @IBOutlet public var numberFormatter: NumberFormatter? {
| `- note: mutation of this property is only permitted within the actor
191 | didSet {
192 | self.editField.valueFormatter = self.numberFormatter
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:111:17: warning: main actor-isolated property 'placeholder' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
109 |
110 | if let s = placeholderText {
111 | self.stepper.placeholder = s
| `- warning: main actor-isolated property 'placeholder' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:78:28: note: mutation of this property is only permitted within the actor
76 |
77 | /// Placeholder text to display if the field is empty
78 | @IBInspectable public var placeholder: String? {
| `- note: mutation of this property is only permitted within the actor
79 | didSet {
80 | if self.allowsEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:114:16: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | self.stepper.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
115 | }
116 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:47:19: note: mutation of this property is only permitted within the actor
45 |
46 | /// The (optional) callback delegate
47 | @objc public var delegate: DSFStepperViewDelegateProtocol? {
| `- note: mutation of this property is only permitted within the actor
48 | didSet {
49 | // Need to make sure the tooltip hit targets are created and checked
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:149:16: warning: main actor-isolated property 'placeholder' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
146 | public extension StepperView {
147 | /// Set the placeholder text to be used when there's no value in the control
148 | func plaeholderText(_ text: String) -> Self {
| `- note: add '@MainActor' to make instance method 'plaeholderText' part of global actor 'MainActor'
149 | self.stepper.placeholder = text
| `- warning: main actor-isolated property 'placeholder' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | return self
151 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:78:28: note: mutation of this property is only permitted within the actor
76 |
77 | /// Placeholder text to display if the field is empty
78 | @IBInspectable public var placeholder: String? {
| `- note: mutation of this property is only permitted within the actor
79 | didSet {
80 | if self.allowsEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:172:45: warning: main actor-isolated property 'floatValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | self.valueBinder = valueBinder
171 | valueBinder.register { newValue in
172 | let currentValue: Double? = self.stepper.floatValue == nil ? nil : Double(self.stepper.floatValue!)
| `- warning: main actor-isolated property 'floatValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
173 | if currentValue != newValue {
174 | self.stepper.floatValue = newValue == nil ? nil : CGFloat(newValue!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:199:21: note: property declared here
197 |
198 | /// The value being displayed in the control. nil represents an 'empty' value, so you can display 'inherited' or 'default' depending on your needs.
199 | public dynamic var floatValue: CGFloat? {
| `- note: property declared here
200 | didSet {
201 | // Update the displayed value in the control
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:172:91: warning: main actor-isolated property 'floatValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
170 | self.valueBinder = valueBinder
171 | valueBinder.register { newValue in
172 | let currentValue: Double? = self.stepper.floatValue == nil ? nil : Double(self.stepper.floatValue!)
| `- warning: main actor-isolated property 'floatValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
173 | if currentValue != newValue {
174 | self.stepper.floatValue = newValue == nil ? nil : CGFloat(newValue!)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:199:21: note: property declared here
197 |
198 | /// The value being displayed in the control. nil represents an 'empty' value, so you can display 'inherited' or 'default' depending on your needs.
199 | public dynamic var floatValue: CGFloat? {
| `- note: property declared here
200 | didSet {
201 | // Update the displayed value in the control
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:174:18: warning: main actor-isolated property 'floatValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
172 | let currentValue: Double? = self.stepper.floatValue == nil ? nil : Double(self.stepper.floatValue!)
173 | if currentValue != newValue {
174 | self.stepper.floatValue = newValue == nil ? nil : CGFloat(newValue!)
| `- warning: main actor-isolated property 'floatValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | }
176 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:199:21: note: mutation of this property is only permitted within the actor
197 |
198 | /// The value being displayed in the control. nil represents an 'empty' value, so you can display 'inherited' or 'default' depending on your needs.
199 | public dynamic var floatValue: CGFloat? {
| `- note: mutation of this property is only permitted within the actor
200 | didSet {
201 | // Update the displayed value in the control
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:183:18: warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
181 | func bindIsEnabled(_ enabledBinding: ValueBinder<Bool>) -> Self {
182 | enabledBinding.register { [weak self] newValue in
183 | self?.stepper.isEnabled = newValue
| `- warning: main actor-isolated property 'isEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
184 | }
185 | self.isEnabledBinder = enabledBinding
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:57:19: note: mutation of this property is only permitted within the actor
55 |
56 | /// Enable or disable the control
57 | @objc public var isEnabled: Bool = true {
| `- note: mutation of this property is only permitted within the actor
58 | didSet {
59 | self.editField.isEnabled = self.isEnabled
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:192:18: warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
190 | func bindFont(_ fontBinding: ValueBinder<NSFont?>) -> Self {
191 | fontBinding.register { [weak self] newValue in
192 | self?.stepper.font = newValue
| `- warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
193 | }
194 | self.fontBinder = fontBinding
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:166:13: note: mutation of this property is only permitted within the actor
164 |
165 | /// The font for the control.
166 | public var font: NSFont? {
| `- note: mutation of this property is only permitted within the actor
167 | get {
168 | return self.editField.font
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:201:18: warning: main actor-isolated property 'foregroundColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
199 | func bindTextColor(_ binding: ValueBinder<NSColor?>) -> Self {
200 | binding.register { [weak self] newValue in
201 | self?.stepper.foregroundColor = newValue
| `- warning: main actor-isolated property 'foregroundColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
202 | }
203 | self.textColorBinder = binding
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:134:28: note: mutation of this property is only permitted within the actor
132 |
133 | /// The font color (default is the standard text color)
134 | @IBInspectable public var foregroundColor: NSColor? {
| `- note: mutation of this property is only permitted within the actor
135 | didSet {
136 | self.editField.foregroundColor = self.foregroundColor
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:210:18: warning: main actor-isolated property 'borderColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
208 | func bindBorderColor(_ binding: ValueBinder<NSColor?>) -> Self {
209 | binding.register { [weak self] newValue in
210 | self?.stepper.borderColor = newValue
| `- warning: main actor-isolated property 'borderColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
211 | }
212 | self.borderColorBinder = binding
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:150:28: note: mutation of this property is only permitted within the actor
148 | ///
149 | /// NOTE: If you set this value, you will need to handle accessibility changes yourself.
150 | @IBInspectable public var borderColor: NSColor? = nil {
| `- note: mutation of this property is only permitted within the actor
151 | didSet {
152 | self.editField.borderColor = self.borderColor
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:219:18: warning: main actor-isolated property 'borderBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
217 | func bindBackgroundColor(_ binding: ValueBinder<NSColor?>) -> Self {
218 | binding.register { [weak self] newValue in
219 | self?.stepper.borderBackground = newValue
| `- warning: main actor-isolated property 'borderBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
220 | }
221 | self.backgroundColorBinder = binding
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:159:28: note: mutation of this property is only permitted within the actor
157 | ///
158 | /// NOTE: If you set this value, you will need to handle accessibility changes yourself.
159 | @IBInspectable public var borderBackground: NSColor? = nil {
| `- note: mutation of this property is only permitted within the actor
160 | didSet {
161 | self.editField.borderBackground = self.borderBackground
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/StepperView.swift:228:18: warning: main actor-isolated property 'indicatorColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
226 | func bindIndicatorColor(_ binding: ValueBinder<NSColor?>) -> Self {
227 | binding.register { [weak self] newValue in
228 | self?.stepper.indicatorColor = newValue
| `- warning: main actor-isolated property 'indicatorColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
229 | }
230 | self.indicatorColorBinder = binding
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFStepperView/Sources/DSFStepperView/DSFStepperView+macOS.swift:141:28: note: mutation of this property is only permitted within the actor
139 |
140 | /// The color to draw the indicator. If not set, then no indicator is drawn
141 | @IBInspectable public var indicatorColor: NSColor? = nil {
| `- note: mutation of this property is only permitted within the actor
142 | didSet {
143 | self.editField.indicatorColor = self.indicatorColor
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:67:6: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
65 | // Private
66 |
67 | let switchView = NSSwitch()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
68 | public override func view() -> NSView { return self.switchView }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:126:13: warning: let '__switchState' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
124 | import SwiftUI
125 |
126 | private let __switchState = ValueBinder<Bool>(true)
| `- warning: let '__switchState' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
127 | private let __switchState2 = ValueBinder<Bool>(false)
128 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:28:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
26 |
27 | import AppKit
28 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
29 |
30 | /// A switch element
:
124 | import SwiftUI
125 |
126 | private let __switchState = ValueBinder<Bool>(true)
| |- note: add '@MainActor' to make let '__switchState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
127 | private let __switchState2 = ValueBinder<Bool>(false)
128 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:127:13: warning: let '__switchState2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
125 |
126 | private let __switchState = ValueBinder<Bool>(true)
127 | private let __switchState2 = ValueBinder<Bool>(false)
| |- warning: let '__switchState2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Bool>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '__switchState2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:48:19: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
46 | ) {
47 | super.init()
48 | self.switchView.state = state
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 |
50 | self.switchView.target = self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSwitch.h:21:31: note: mutation of this property is only permitted within the actor
19 | If set through the animator proxy, the switch animates to the new value.
20 | */
21 | @property NSControlStateValue state;
| `- note: mutation of this property is only permitted within the actor
22 |
23 | @end
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:50:19: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | self.switchView.state = state
49 |
50 | self.switchView.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
51 | self.switchView.action = #selector(self.switchDidChange(_:))
52 | }
/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/DSFAppKitBuilder/components/Switch.swift:51:19: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
49 |
50 | self.switchView.target = self
51 | self.switchView.action = #selector(self.switchDidChange(_:))
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 |
/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/DSFAppKitBuilder/components/Switch.swift:60:19: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 | ) {
59 | super.init()
60 | self.switchView.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
61 | self.switchView.action = #selector(self.switchDidChange(_:))
62 | _ = self.bindOnOffState(onOffBinder)
/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/DSFAppKitBuilder/components/Switch.swift:61:19: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
59 | super.init()
60 | self.switchView.target = self
61 | self.switchView.action = #selector(self.switchDidChange(_:))
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
62 | _ = self.bindOnOffState(onOffBinder)
63 | }
/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/DSFAppKitBuilder/components/Switch.swift:87:31: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
84 | }
85 |
86 | @objc private func switchDidChange(_ sender: NSSwitch) {
| `- note: add '@MainActor' to make instance method 'switchDidChange' part of global actor 'MainActor'
87 | self.actionCallback?(sender.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
88 | self.stateBinder?.wrappedValue = self.switchView.state
89 | self.onOffBinder?.wrappedValue = (self.switchView.state == .off ? false : true)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSwitch.h:21:31: note: property declared here
19 | If set through the animator proxy, the switch animates to the new value.
20 | */
21 | @property NSControlStateValue state;
| `- note: property declared here
22 |
23 | @end
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:88:52: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
84 | }
85 |
86 | @objc private func switchDidChange(_ sender: NSSwitch) {
| `- note: add '@MainActor' to make instance method 'switchDidChange' part of global actor 'MainActor'
87 | self.actionCallback?(sender.state)
88 | self.stateBinder?.wrappedValue = self.switchView.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
89 | self.onOffBinder?.wrappedValue = (self.switchView.state == .off ? false : true)
90 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSwitch.h:21:31: note: property declared here
19 | If set through the animator proxy, the switch animates to the new value.
20 | */
21 | @property NSControlStateValue state;
| `- note: property declared here
22 |
23 | @end
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:89:53: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
84 | }
85 |
86 | @objc private func switchDidChange(_ sender: NSSwitch) {
| `- note: add '@MainActor' to make instance method 'switchDidChange' part of global actor 'MainActor'
87 | self.actionCallback?(sender.state)
88 | self.stateBinder?.wrappedValue = self.switchView.state
89 | self.onOffBinder?.wrappedValue = (self.switchView.state == .off ? false : true)
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
90 | }
91 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSwitch.h:21:31: note: property declared here
19 | If set through the animator proxy, the switch animates to the new value.
20 | */
21 | @property NSControlStateValue state;
| `- note: property declared here
22 |
23 | @end
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:103:21: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
101 | stateBinding.register { [weak self] newValue in
102 | let newState: NSControl.StateValue = (newValue == false) ? .off : .on
103 | self?.switchView.state = newState
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
104 | self?.stateBinder?.wrappedValue = newState
105 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSwitch.h:21:31: note: mutation of this property is only permitted within the actor
19 | If set through the animator proxy, the switch animates to the new value.
20 | */
21 | @property NSControlStateValue state;
| `- note: mutation of this property is only permitted within the actor
22 |
23 | @end
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Switch.swift:114:21: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
112 | self.stateBinder = stateBinding
113 | stateBinding.register { [weak self] newValue in
114 | self?.switchView.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
115 | self?.onOffBinder?.wrappedValue = newValue == .off ? false : true
116 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSwitch.h:21:31: note: mutation of this property is only permitted within the actor
19 | If set through the animator proxy, the switch animates to the new value.
20 | */
21 | @property NSControlStateValue state;
| `- note: mutation of this property is only permitted within the actor
22 |
23 | @end
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:125:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
123 |
124 | // Private
125 | private let tabView = NSTabView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
126 | public override func view() -> NSView { return self.tabView }
127 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:97:17: warning: main actor-isolated property 'tabViewType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
95 |
96 | if let type = tabViewType {
97 | self.tabView.tabViewType = type
| `- warning: main actor-isolated property 'tabViewType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
98 | }
99 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabView.h:68:25: note: mutation of this property is only permitted within the actor
66 | @property (nullable, readonly, strong) NSTabViewItem *selectedTabViewItem; // return nil if none are selected
67 | @property (strong) NSFont *font; // returns font used for all tab labels.
68 | @property NSTabViewType tabViewType; // Use tabPosition and tabViewBorderType instead. Setting this will also set the tabPosition and tabViewBorderType. Setting tabPosition or tabViewBorderType will affect tabViewType
| `- note: mutation of this property is only permitted within the actor
69 | @property NSTabPosition tabPosition API_AVAILABLE(macos(10.12));
70 | @property NSTabViewBorderType tabViewBorderType API_AVAILABLE(macos(10.12)); // This will only be respected if NSTabPosition is NSTabPositionNone.
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:101:17: warning: main actor-isolated property 'tabPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
99 |
100 | if let tabPos = tabPosition {
101 | self.tabView.tabPosition = tabPos.nsTabPosition ?? .top
| `- warning: main actor-isolated property 'tabPosition' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
102 | }
103 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabView.h:69:25: note: mutation of this property is only permitted within the actor
67 | @property (strong) NSFont *font; // returns font used for all tab labels.
68 | @property NSTabViewType tabViewType; // Use tabPosition and tabViewBorderType instead. Setting this will also set the tabPosition and tabViewBorderType. Setting tabPosition or tabViewBorderType will affect tabViewType
69 | @property NSTabPosition tabPosition API_AVAILABLE(macos(10.12));
| `- note: mutation of this property is only permitted within the actor
70 | @property NSTabViewBorderType tabViewBorderType API_AVAILABLE(macos(10.12)); // This will only be respected if NSTabPosition is NSTabPositionNone.
71 | @property (copy) NSArray<__kindof NSTabViewItem *> *tabViewItems;
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:108:12: warning: main actor-isolated property 'needsLayout' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
106 | t.label = item.title ?? ""
107 | t.toolTip = item.toolTip
108 | t.view?.needsLayout = true
| `- warning: main actor-isolated property 'needsLayout' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
109 |
110 | self.tabView.addTabViewItem(t)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:267:16: note: mutation of this property is only permitted within the actor
265 | - (void)layoutSubtreeIfNeeded API_AVAILABLE(macos(10.7));
266 | - (void)layout API_AVAILABLE(macos(10.7));
267 | @property BOOL needsLayout API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
268 |
269 | @property CGFloat alphaValue API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:110:17: warning: call to main actor-isolated instance method 'addTabViewItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | t.view?.needsLayout = true
109 |
110 | self.tabView.addTabViewItem(t)
| `- warning: call to main actor-isolated instance method 'addTabViewItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | }
112 |
AppKit.NSTabView.addTabViewItem:2:22: note: calls to instance method 'addTabViewItem' from outside of its actor context are implicitly asynchronous
1 | class NSTabView {
2 | @MainActor open func addTabViewItem(_ tabViewItem: NSTabViewItem)}
| |- note: calls to instance method 'addTabViewItem' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:113:16: warning: call to main actor-isolated instance method 'selectTabViewItem(at:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
111 | }
112 |
113 | self.tabView.selectTabViewItem(at: selectedIndex)
| `- warning: call to main actor-isolated instance method 'selectTabViewItem(at:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
114 | self.tabView.delegate = self
115 |
AppKit.NSTabView.selectTabViewItem:2:22: note: calls to instance method 'selectTabViewItem(at:)' from outside of its actor context are implicitly asynchronous
1 | class NSTabView {
2 | @MainActor open func selectTabViewItem(at index: Int)}
| |- note: calls to instance method 'selectTabViewItem(at:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:114:16: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
112 |
113 | self.tabView.selectTabViewItem(at: selectedIndex)
114 | self.tabView.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
115 |
116 | self.tabView.needsLayout = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTabView.h:85:50: note: mutation of this property is only permitted within the actor
83 | /* Delegate */
84 |
85 | @property (nullable, weak) id<NSTabViewDelegate> delegate;
| `- note: mutation of this property is only permitted within the actor
86 |
87 | /* Hit testing */
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:116:16: warning: main actor-isolated property 'needsLayout' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 | self.tabView.delegate = self
115 |
116 | self.tabView.needsLayout = true
| `- warning: main actor-isolated property 'needsLayout' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | self.tabView.needsDisplay = true
118 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:267:16: note: mutation of this property is only permitted within the actor
265 | - (void)layoutSubtreeIfNeeded API_AVAILABLE(macos(10.7));
266 | - (void)layout API_AVAILABLE(macos(10.7));
267 | @property BOOL needsLayout API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
268 |
269 | @property CGFloat alphaValue API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:117:16: warning: main actor-isolated property 'needsDisplay' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
115 |
116 | self.tabView.needsLayout = true
117 | self.tabView.needsDisplay = true
| `- warning: main actor-isolated property 'needsDisplay' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
118 | }
119 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:187:16: note: mutation of this property is only permitted within the actor
185 | @property (readonly) BOOL canDraw API_DEPRECATED("If a view needs display, -drawRect: or -updateLayer will be called automatically when the view is able to draw. To check whether a view is in a window, call -window. To check whether a view is hidden, call -isHiddenOrHasHiddenAncestor.", macos(10.0,10.14));
186 | - (void)setNeedsDisplayInRect:(NSRect)invalidRect;
187 | @property BOOL needsDisplay;
| `- note: mutation of this property is only permitted within the actor
188 | - (void)lockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
189 | - (void)unlockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:150:18: warning: call to main actor-isolated instance method 'selectTabViewItem(at:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
148 | self.tabIndexBinder = tabIndexBinder
149 | tabIndexBinder.register { [weak self] newValue in
150 | self?.tabView.selectTabViewItem(at: newValue)
| `- warning: call to main actor-isolated instance method 'selectTabViewItem(at:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
151 | }
152 | return self
AppKit.NSTabView.selectTabViewItem:2:22: note: calls to instance method 'selectTabViewItem(at:)' from outside of its actor context are implicitly asynchronous
1 | class NSTabView {
2 | @MainActor open func selectTabViewItem(at index: Int)}
| |- note: calls to instance method 'selectTabViewItem(at:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:192:37: warning: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | self.title = title
191 | self.toolTip = toolTip
192 | self.viewController = TabViewItem.Controller(content: content)
| `- warning: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 | }
194 |
:
204 | private let content: Element
205 |
206 | init(content: Element) {
| |- note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSViewController'
207 | self.content = content
208 | super.init(nibName: nil, bundle: nil)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:134:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
132 | }
133 |
134 | private let toggleButton = DSFToggleButton()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
135 | public override func view() -> NSView { return self.toggleButton }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:235:13: warning: let '__v1' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Toggle.State>' may have shared mutable state; this is an error in the Swift 6 language mode
233 | import SwiftUI
234 |
235 | private let __v1 = ValueBinder<Toggle.State>(.off)
| `- warning: let '__v1' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Toggle.State>' may have shared mutable state; this is an error in the Swift 6 language mode
236 | private let __v2 = ValueBinder<Toggle.State>(.on)
237 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:29:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
27 | import AppKit
28 | import DSFToggleButton
29 | import DSFValueBinders
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DSFValueBinders'
30 | import DSFAppearanceManager
31 |
:
233 | import SwiftUI
234 |
235 | private let __v1 = ValueBinder<Toggle.State>(.off)
| |- note: add '@MainActor' to make let '__v1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
236 | private let __v2 = ValueBinder<Toggle.State>(.on)
237 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:236:13: warning: let '__v2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Toggle.State>' may have shared mutable state; this is an error in the Swift 6 language mode
234 |
235 | private let __v1 = ValueBinder<Toggle.State>(.off)
236 | private let __v2 = ValueBinder<Toggle.State>(.on)
| |- warning: let '__v2' is not concurrency-safe because non-'Sendable' type 'ValueBinder<Toggle.State>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '__v2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
237 |
238 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFValueBinders/Sources/DSFValueBinders/ValueBinder.swift:41:14: note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
39 |
40 | /// A wrapped value binder for sharing dynamic values between elements
41 | public class ValueBinder<ValueType: Any>: ValueBinderRegistrable {
| `- note: generic class 'ValueBinder' does not conform to the 'Sendable' protocol
42 | /// An identifier for the binder for use when debugging
43 | public let identifier: String
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:74:21: warning: main actor-isolated property 'color' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
72 | self.size(width: 42, height: 25)
73 |
74 | self.toggleButton.color = color ?? DSFAppearanceCache.shared.accentColor
| `- warning: main actor-isolated property 'color' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
75 |
76 | if let onChange = onChange {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:52:36: note: mutation of this property is only permitted within the actor
50 |
51 | /// The color of the button when the state is on
52 | @IBInspectable public dynamic var color: NSColor {
| `- note: mutation of this property is only permitted within the actor
53 | didSet {
54 | self.needsDisplay = true
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:80:21: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
78 | }
79 |
80 | self.toggleButton.state = (state == .on) ? .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
81 |
82 | self.toggleButton.showLabels = showLabels
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:103:28: note: mutation of this property is only permitted within the actor
101 |
102 | // `didSet` is called when the user programatically changes the state
103 | @objc override public var state: NSControl.StateValue {
| `- note: mutation of this property is only permitted within the actor
104 | didSet {
105 | self.configureForCurrentState(animated: true)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:82:21: warning: main actor-isolated property 'showLabels' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
80 | self.toggleButton.state = (state == .on) ? .on : .off
81 |
82 | self.toggleButton.showLabels = showLabels
| `- warning: main actor-isolated property 'showLabels' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
83 | self.toggleButton.target = self
84 | self.toggleButton.action = #selector(self.performAction(_:))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:45:36: note: mutation of this property is only permitted within the actor
43 |
44 | /// Show labels (0 and 1) on the button to increase visual distinction between states
45 | @IBInspectable public dynamic var showLabels: Bool = false {
| `- note: mutation of this property is only permitted within the actor
46 | didSet {
47 | self.needsDisplay = true
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:83:21: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
81 |
82 | self.toggleButton.showLabels = showLabels
83 | self.toggleButton.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
84 | self.toggleButton.action = #selector(self.performAction(_:))
85 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:140:28: note: mutation of this property is only permitted within the actor
138 |
139 | private weak var _target: AnyObject?
140 | @objc override public var target: AnyObject? {
| `- note: mutation of this property is only permitted within the actor
141 | didSet {
142 | self.twiddleTarget()
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:84:21: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
82 | self.toggleButton.showLabels = showLabels
83 | self.toggleButton.target = self
84 | self.toggleButton.action = #selector(self.performAction(_:))
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 |
86 | self.customColor = color
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:122:28: note: mutation of this property is only permitted within the actor
120 |
121 | @objc private var _action: Selector?
122 | @objc override public var action: Selector? {
| `- note: mutation of this property is only permitted within the actor
123 | didSet {
124 | self.twiddleAction()
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:109:23: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
107 |
108 | state.register(self) { [weak self] newState in
109 | self?.toggleButton.state = (newState == .on) ? .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
110 | }
111 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:103:28: note: mutation of this property is only permitted within the actor
101 |
102 | // `didSet` is called when the user programatically changes the state
103 | @objc override public var state: NSControl.StateValue {
| `- note: mutation of this property is only permitted within the actor
104 | didSet {
105 | self.configureForCurrentState(animated: true)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:112:21: warning: main actor-isolated property 'color' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
110 | }
111 |
112 | self.toggleButton.color = color ?? DSFAppearanceCache.shared.accentColor
| `- warning: main actor-isolated property 'color' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
113 |
114 | self.toggleButton.showLabels = showLabels
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:52:36: note: mutation of this property is only permitted within the actor
50 |
51 | /// The color of the button when the state is on
52 | @IBInspectable public dynamic var color: NSColor {
| `- note: mutation of this property is only permitted within the actor
53 | didSet {
54 | self.needsDisplay = true
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:114:21: warning: main actor-isolated property 'showLabels' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
112 | self.toggleButton.color = color ?? DSFAppearanceCache.shared.accentColor
113 |
114 | self.toggleButton.showLabels = showLabels
| `- warning: main actor-isolated property 'showLabels' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
115 | self.toggleButton.target = self
116 | self.toggleButton.action = #selector(self.performAction(_:))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:45:36: note: mutation of this property is only permitted within the actor
43 |
44 | /// Show labels (0 and 1) on the button to increase visual distinction between states
45 | @IBInspectable public dynamic var showLabels: Bool = false {
| `- note: mutation of this property is only permitted within the actor
46 | didSet {
47 | self.needsDisplay = true
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:115:21: warning: main actor-isolated property 'target' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
113 |
114 | self.toggleButton.showLabels = showLabels
115 | self.toggleButton.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
116 | self.toggleButton.action = #selector(self.performAction(_:))
117 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:140:28: note: mutation of this property is only permitted within the actor
138 |
139 | private weak var _target: AnyObject?
140 | @objc override public var target: AnyObject? {
| `- note: mutation of this property is only permitted within the actor
141 | didSet {
142 | self.twiddleTarget()
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:116:21: warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
114 | self.toggleButton.showLabels = showLabels
115 | self.toggleButton.target = self
116 | self.toggleButton.action = #selector(self.performAction(_:))
| `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 |
118 | self.customColor = color
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:122:28: note: mutation of this property is only permitted within the actor
120 |
121 | @objc private var _action: Selector?
122 | @objc override public var action: Selector? {
| `- note: mutation of this property is only permitted within the actor
123 | didSet {
124 | self.twiddleAction()
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:148:22: warning: main actor-isolated property 'color' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
146 | if self.colorBinder == nil, self.customColor == nil {
147 | // If there's no forced color specified, update the control to use a new accent color
148 | self.toggleButton.color = DSFAppearanceCache.shared.accentColor
| `- warning: main actor-isolated property 'color' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
149 | }
150 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:52:36: note: mutation of this property is only permitted within the actor
50 |
51 | /// The color of the button when the state is on
52 | @IBInspectable public dynamic var color: NSColor {
| `- note: mutation of this property is only permitted within the actor
53 | didSet {
54 | self.needsDisplay = true
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:154:24: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
151 |
152 | // Called when the button state is changed
153 | @objc private func performAction(_ item: NSButton) {
| `- note: add '@MainActor' to make instance method 'performAction' part of global actor 'MainActor'
154 | let newState = (item.state != .off) ? State.on : 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
155 |
156 | // Call the action callback if it is set
/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/DSFAppKitBuilder/components/Toggle.swift:197:23: warning: main actor-isolated property 'color' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
195 | self.colorBinder = color
196 | color.register(self) { [weak self] newColor in
197 | self?.toggleButton.color = newColor
| `- warning: main actor-isolated property 'color' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
198 | }
199 | return self
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:52:36: note: mutation of this property is only permitted within the actor
50 |
51 | /// The color of the button when the state is on
52 | @IBInspectable public dynamic var color: NSColor {
| `- note: mutation of this property is only permitted within the actor
53 | didSet {
54 | self.needsDisplay = true
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Toggle.swift:206:23: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
204 | self.onOffBinder = state
205 | state.register(self) { [weak self] newState in
206 | self?.toggleButton.state = newState ? .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
207 | }
208 | return self
/Users/admin/builder/spi-builder-workspace/.build/checkouts/DSFToggleButton/Sources/DSFToggleButton/DSFToggleButton.swift:103:28: note: mutation of this property is only permitted within the actor
101 |
102 | // `didSet` is called when the user programatically changes the state
103 | @objc override public var state: NSControl.StateValue {
| `- note: mutation of this property is only permitted within the actor
104 | didSet {
105 | self.configureForCurrentState(animated: true)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/View+SwiftUI.swift:52:6: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
50 |
51 | // Private
52 | let containerView = NSView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
53 | public override func view() -> NSView { return containerView }
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/View+SwiftUI.swift:45:22: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
43 | override public init() {
44 | super.init()
45 | self.containerView.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
46 | let hostingView = NSHostingView(rootView: self.rootView())
47 | self.containerView.addSubview(hostingView)
/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/DSFAppKitBuilder/components/View+SwiftUI.swift:46:21: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | super.init()
45 | self.containerView.translatesAutoresizingMaskIntoConstraints = false
46 | let hostingView = NSHostingView(rootView: self.rootView())
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | self.containerView.addSubview(hostingView)
48 | hostingView.pinEdges(to: self.containerView)
SwiftUI.NSHostingView.init:2:44: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency required public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/View+SwiftUI.swift:47:22: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | self.containerView.translatesAutoresizingMaskIntoConstraints = false
46 | let hostingView = NSHostingView(rootView: self.rootView())
47 | self.containerView.addSubview(hostingView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
48 | hostingView.pinEdges(to: self.containerView)
49 | }
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView)}
| |- note: calls to instance method 'addSubview' 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/DSFAppKitBuilder/components/View+SwiftUI.swift:48:15: warning: call to main actor-isolated instance method 'pinEdges(to:edgeInset:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 | let hostingView = NSHostingView(rootView: self.rootView())
47 | self.containerView.addSubview(hostingView)
48 | hostingView.pinEdges(to: self.containerView)
| `- warning: call to main actor-isolated instance method 'pinEdges(to:edgeInset:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/Autolayout+helpers.swift:31:16: note: calls to instance method 'pinEdges(to:edgeInset:animate:)' from outside of its actor context are implicitly asynchronous
29 | extension NSView {
30 | // Pin 'self' within 'other' view
31 | internal func pinEdges(to other: NSView, edgeInset: CGFloat = 0, animate: Bool = false) {
| |- note: calls to instance method 'pinEdges(to:edgeInset:animate:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
32 | self.pinEdges(to: other, edgeInsets: NSEdgeInsets(edgeInset: edgeInset), animate: animate)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/View.swift:39:17: warning: main actor-isolated property 'needsLayout' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
37 | super.init()
38 |
39 | containedView.needsLayout = true
| `- warning: main actor-isolated property 'needsLayout' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
40 | containedView.layoutSubtreeIfNeeded()
41 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:267:16: note: mutation of this property is only permitted within the actor
265 | - (void)layoutSubtreeIfNeeded API_AVAILABLE(macos(10.7));
266 | - (void)layout API_AVAILABLE(macos(10.7));
267 | @property BOOL needsLayout API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
268 |
269 | @property CGFloat alphaValue API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/View.swift:40:17: warning: call to main actor-isolated instance method 'layoutSubtreeIfNeeded()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 |
39 | containedView.needsLayout = true
40 | containedView.layoutSubtreeIfNeeded()
| `- warning: call to main actor-isolated instance method 'layoutSubtreeIfNeeded()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
41 | }
42 |
AppKit.NSView.layoutSubtreeIfNeeded:3:24: note: calls to instance method 'layoutSubtreeIfNeeded()' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open func layoutSubtreeIfNeeded()}
| |- note: calls to instance method 'layoutSubtreeIfNeeded()' 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/DSFAppKitBuilder/components/View.swift:48:37: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 | /// responsibility to make sure it stays alive
47 | public convenience init(_ containedViewController: DSFAppKitBuilderViewController) {
48 | self.init(containedViewController.view)
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
49 | }
50 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:78:37: note: property declared here
76 | /* The default implementation of the getter first invokes [self loadView] if the view hasn't been set yet. After -loadView is called, -viewDidLoad will be called. The setter can be used to assign a view that's created in a different manner than what -view's default implementation would do.
77 | */
78 | @property (strong) IBOutlet NSView *view;
| `- note: property declared here
79 |
80 | /* Returns the view controller's view, or nil if the view has not been loaded.
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/VisualEffectView.swift:91:20: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
89 | if let content = self.content {
90 | let contentView = content.view()
91 | self.visualView.addSubview(contentView)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
92 | contentView.pinEdges(to: self.visualView, edgeInset: padding ?? 0)
93 | }
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView)}
| |- note: calls to instance method 'addSubview' 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/DSFAppKitBuilder/components/VisualEffectView.swift:92:16: warning: call to main actor-isolated instance method 'pinEdges(to:edgeInset:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
90 | let contentView = content.view()
91 | self.visualView.addSubview(contentView)
92 | contentView.pinEdges(to: self.visualView, edgeInset: padding ?? 0)
| `- warning: call to main actor-isolated instance method 'pinEdges(to:edgeInset:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/Autolayout+helpers.swift:31:16: note: calls to instance method 'pinEdges(to:edgeInset:animate:)' from outside of its actor context are implicitly asynchronous
29 | extension NSView {
30 | // Pin 'self' within 'other' view
31 | internal func pinEdges(to other: NSView, edgeInset: CGFloat = 0, animate: Bool = false) {
| |- note: calls to instance method 'pinEdges(to:edgeInset:animate:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
32 | self.pinEdges(to: other, edgeInsets: NSEdgeInsets(edgeInset: edgeInset), animate: animate)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/VisualEffectView.swift:120:21: warning: main actor-isolated property 'isEmphasized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
118 | self.isEmphasizedBinder = isEmphasizedBinder
119 | isEmphasizedBinder.register { [weak self] newValue in
120 | self?.visualView.isEmphasized = newValue
| `- warning: main actor-isolated property 'isEmphasized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
121 | }
122 | return self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:110:38: note: mutation of this property is only permitted within the actor
108 |
109 | /// When YES, the material takes on the emphasized look. Defaults to NO. Some, but not all, materials change their look when emphasized. This is used to indicate that an associated view has firstResponder status.
110 | @property (getter=isEmphasized) BOOL emphasized API_AVAILABLE(macos(10.12));
| `- note: mutation of this property is only permitted within the actor
111 |
112 | // Some things this class overrides. It is required to call super if you subclass NSVisualEffectView and override these.
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/VisualEffectView.swift:166:17: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
159 |
160 | // Make a visual effect view using the provided settings
161 | public static func MakeView(
| `- note: add '@MainActor' to make static method 'MakeView(material:blendingMode:isEmphasized:)' part of global actor 'MainActor'
162 | material: NSVisualEffectView.Material? = nil,
163 | blendingMode: NSVisualEffectView.BlendingMode? = nil,
164 | isEmphasized: Bool = false
165 | ) -> NSVisualEffectView {
166 | let newView = NSVisualEffectView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | newView.wantsLayer = true
168 | newView.translatesAutoresizingMaskIntoConstraints = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:23:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
21 | @interface NSResponder : NSObject <NSCoding>
22 |
23 | - (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 'NSView'
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/VisualEffectView.swift:167:11: warning: main actor-isolated property 'wantsLayer' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
159 |
160 | // Make a visual effect view using the provided settings
161 | public static func MakeView(
| `- note: add '@MainActor' to make static method 'MakeView(material:blendingMode:isEmphasized:)' part of global actor 'MainActor'
162 | material: NSVisualEffectView.Material? = nil,
163 | blendingMode: NSVisualEffectView.BlendingMode? = nil,
:
165 | ) -> NSVisualEffectView {
166 | let newView = NSVisualEffectView()
167 | newView.wantsLayer = true
| `- warning: main actor-isolated property 'wantsLayer' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
168 | newView.translatesAutoresizingMaskIntoConstraints = false
169 | material.withUnwrapped { newView.material = $0 }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:247:16: note: mutation of this property is only permitted within the actor
245 | /* Indicates if this view should be a "Layer Backed View". When layer backed, all subviews will subsequently also have a layer set on them (however, wantsLayer will only be YES on views that have had it explicitly set). Contents for a layer are specified in one of two ways: if -wantsUpdateLayer returns YES, then one can directly update the layer's contents (or other properties) in -updateLayer. If -wantsUpdateLayer returns NO, then the layer's contents is filled with whatever is drawn by -drawRect:
246 | */
247 | @property BOOL wantsLayer API_AVAILABLE(macos(10.5));
| `- note: mutation of this property is only permitted within the actor
248 |
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/VisualEffectView.swift:168: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
159 |
160 | // Make a visual effect view using the provided settings
161 | public static func MakeView(
| `- note: add '@MainActor' to make static method 'MakeView(material:blendingMode:isEmphasized:)' part of global actor 'MainActor'
162 | material: NSVisualEffectView.Material? = nil,
163 | blendingMode: NSVisualEffectView.BlendingMode? = nil,
:
166 | let newView = NSVisualEffectView()
167 | newView.wantsLayer = true
168 | newView.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
169 | material.withUnwrapped { newView.material = $0 }
170 | blendingMode.withUnwrapped { newView.blendingMode = $0 }
/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/DSFAppKitBuilder/components/VisualEffectView.swift:169:36: warning: main actor-isolated property 'material' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | newView.wantsLayer = true
168 | newView.translatesAutoresizingMaskIntoConstraints = false
169 | material.withUnwrapped { newView.material = $0 }
| `- warning: main actor-isolated property 'material' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
170 | blendingMode.withUnwrapped { newView.blendingMode = $0 }
171 | newView.isEmphasized = isEmphasized
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:95:34: note: mutation of this property is only permitted within the actor
93 |
94 | /// A value indicating which material is shown by the NSVisualEffectView. See the comments on NSVisualEffectMaterial. Defaults to NSVisualEffectMaterialAppearanceBased. You should instead specify an appropriate semantic material value. See the comments on NSVisualEffectMaterial.
95 | @property NSVisualEffectMaterial material;
| `- note: mutation of this property is only permitted within the actor
96 |
97 | /// An NSBackgroundStyle value that most closely matches the look of the material shown by the NSVisualEffectView.
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/VisualEffectView.swift:170:40: warning: main actor-isolated property 'blendingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
168 | newView.translatesAutoresizingMaskIntoConstraints = false
169 | material.withUnwrapped { newView.material = $0 }
170 | blendingMode.withUnwrapped { newView.blendingMode = $0 }
| `- warning: main actor-isolated property 'blendingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
171 | newView.isEmphasized = isEmphasized
172 | return newView
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:101:38: note: mutation of this property is only permitted within the actor
99 |
100 | /// A value controlling how the NSVisualEffectView generates its material. See the comments on NSVisualEffectBlendingMode. Not all materials support both blending modes, so NSVisualEffectView may fall back to a more appropriate blending mode as needed. Defaults to NSVisualEffectBlendingModeBehindWindow.
101 | @property NSVisualEffectBlendingMode blendingMode;
| `- note: mutation of this property is only permitted within the actor
102 |
103 | /// A value controlling when the NSVisualEffectView takes on the active look. See the comments on NSVisualEffectState. Defaults to NSVisualEffectStateFollowsWindowActiveState.
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/VisualEffectView.swift:171:11: warning: main actor-isolated property 'isEmphasized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
159 |
160 | // Make a visual effect view using the provided settings
161 | public static func MakeView(
| `- note: add '@MainActor' to make static method 'MakeView(material:blendingMode:isEmphasized:)' part of global actor 'MainActor'
162 | material: NSVisualEffectView.Material? = nil,
163 | blendingMode: NSVisualEffectView.BlendingMode? = nil,
:
169 | material.withUnwrapped { newView.material = $0 }
170 | blendingMode.withUnwrapped { newView.blendingMode = $0 }
171 | newView.isEmphasized = isEmphasized
| `- warning: main actor-isolated property 'isEmphasized' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
172 | return newView
173 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSVisualEffectView.h:110:38: note: mutation of this property is only permitted within the actor
108 |
109 | /// When YES, the material takes on the emphasized look. Defaults to NO. Some, but not all, materials change their look when emphasized. This is used to indicate that an associated view has firstResponder status.
110 | @property (getter=isEmphasized) BOOL emphasized API_AVAILABLE(macos(10.12));
| `- note: mutation of this property is only permitted within the actor
111 |
112 | // Some things this class overrides. It is required to call super if you subclass NSVisualEffectView and override these.
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:167:16: warning: call to main actor-isolated instance method 'miniaturize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
164 | public extension Window {
165 | /// Minimise a window to the dock
166 | @inlinable func minimise() {
| `- note: add '@MainActor' to make instance method 'minimise()' part of global actor 'MainActor'
167 | self.window?.miniaturize(self)
| `- warning: call to main actor-isolated instance method 'miniaturize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 | }
169 |
AppKit.NSWindow.miniaturize:2:22: note: calls to instance method 'miniaturize' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func miniaturize(_ sender: Any?)}
| |- note: calls to instance method 'miniaturize' 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/DSFAppKitBuilder/components/Window.swift:172:16: warning: call to main actor-isolated instance method 'deminiaturize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 |
170 | /// Deminiaturize a window from the dock
171 | @inlinable func deminiaturize() {
| `- note: add '@MainActor' to make instance method 'deminiaturize()' part of global actor 'MainActor'
172 | self.window?.deminiaturize(self)
| `- warning: call to main actor-isolated instance method 'deminiaturize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | }
174 |
AppKit.NSWindow.deminiaturize:2:22: note: calls to instance method 'deminiaturize' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func deminiaturize(_ sender: Any?)}
| |- note: calls to instance method 'deminiaturize' 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/DSFAppKitBuilder/components/Window.swift:177:16: warning: call to main actor-isolated instance method 'performZoom' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
174 |
175 | /// Simulates the user clicking the zoom box by momentarily highlighting the button and then zooming the window.
176 | @inlinable func zoom() {
| `- note: add '@MainActor' to make instance method 'zoom()' part of global actor 'MainActor'
177 | self.window?.performZoom(self)
| `- warning: call to main actor-isolated instance method 'performZoom' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | }
179 |
AppKit.NSWindow.performZoom:2:22: note: calls to instance method 'performZoom' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func performZoom(_ sender: Any?)}
| |- note: calls to instance method 'performZoom' 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/DSFAppKitBuilder/components/Window.swift:183:17: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
179 |
180 | /// Make the window the key window
181 | @inlinable func makeKey(andOrderFront orderFront: Bool = false) {
| `- note: add '@MainActor' to make instance method 'makeKey(andOrderFront:)' part of global actor 'MainActor'
182 | if orderFront {
183 | self.window?.makeKeyAndOrderFront(self)
| `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
184 | }
185 | else {
AppKit.NSWindow.makeKeyAndOrderFront:2:22: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func makeKeyAndOrderFront(_ sender: Any?)}
| |- note: calls to instance method 'makeKeyAndOrderFront' 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/DSFAppKitBuilder/components/Window.swift:186:17: warning: call to main actor-isolated instance method 'makeKey()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
179 |
180 | /// Make the window the key window
181 | @inlinable func makeKey(andOrderFront orderFront: Bool = false) {
| `- note: add '@MainActor' to make instance method 'makeKey(andOrderFront:)' part of global actor 'MainActor'
182 | if orderFront {
183 | self.window?.makeKeyAndOrderFront(self)
184 | }
185 | else {
186 | self.window?.makeKey()
| `- warning: call to main actor-isolated instance method 'makeKey()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 | }
188 | }
AppKit.NSWindow.makeKey:2:22: note: calls to instance method 'makeKey()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func makeKey()}
| |- note: calls to instance method 'makeKey()' 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/DSFAppKitBuilder/components/Window.swift:192:16: warning: call to main actor-isolated instance method 'performClose' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
189 |
190 | /// Close the window if it is open
191 | func close() {
| `- note: add '@MainActor' to make instance method 'close()' part of global actor 'MainActor'
192 | self.window?.performClose(self)
| `- warning: call to main actor-isolated instance method 'performClose' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
193 | }
194 | }
AppKit.NSWindow.performClose:2:22: note: calls to instance method 'performClose' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func performClose(_ sender: Any?)}
| |- note: calls to instance method 'performClose' 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/DSFAppKitBuilder/components/Window.swift:233:18: warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
231 | self.titleBinder = textValue
232 | textValue.register { [weak self] newValue in
233 | self?.window?.title = newValue
| `- warning: main actor-isolated property 'title' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
234 | }
235 | return self
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:297:28: note: mutation of this property is only permitted within the actor
295 | - (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE; // Use initWithContentRect:. This method will throw an exception for coders that support allowsKeyedCoding, and is only available for compatibility with non keyed coding.
296 |
297 | @property (copy) NSString *title;
| `- note: mutation of this property is only permitted within the actor
298 |
299 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:260:16: warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
258 | }
259 |
260 | let window = NSWindow(
| `- warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
261 | contentRect: contentRect,
262 | styleMask: self.styleMask,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:293:1: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
291 | - (NSRect)contentRectForFrameRect:(NSRect)frameRect;
292 |
293 | - (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
294 | - (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)style backing:(NSBackingStoreType)backingStoreType defer:(BOOL)flag screen:(nullable NSScreen *)screen;
295 | - (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE; // Use initWithContentRect:. This method will throw an exception for coders that support allowsKeyedCoding, and is only available for compatibility with non keyed coding.
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:268: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
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
266 | self.window = window
267 |
268 | window.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
269 | window.isReleasedWhenClosed = true
270 | window.isMovableByWindowBackground = self.isMovableByWindowBackground
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:297:28: note: mutation of this property is only permitted within the actor
295 | - (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE; // Use initWithContentRect:. This method will throw an exception for coders that support allowsKeyedCoding, and is only available for compatibility with non keyed coding.
296 |
297 | @property (copy) NSString *title;
| `- note: mutation of this property is only permitted within the actor
298 |
299 | /*!
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:269:10: warning: main actor-isolated property 'isReleasedWhenClosed' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
267 |
268 | window.title = self.title
269 | window.isReleasedWhenClosed = true
| `- warning: main actor-isolated property 'isReleasedWhenClosed' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
270 | window.isMovableByWindowBackground = self.isMovableByWindowBackground
271 | window.autorecalculatesKeyViewLoop = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:393:46: note: mutation of this property is only permitted within the actor
391 | @property (readonly) NSEventModifierFlags resizeFlags;
392 | - (void)close;
393 | @property (getter=isReleasedWhenClosed) BOOL releasedWhenClosed;
| `- note: mutation of this property is only permitted within the actor
394 | - (void)miniaturize:(nullable id)sender;
395 | - (void)deminiaturize:(nullable id)sender;
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:270:10: warning: main actor-isolated property 'isMovableByWindowBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
268 | window.title = self.title
269 | window.isReleasedWhenClosed = true
270 | window.isMovableByWindowBackground = self.isMovableByWindowBackground
| `- warning: main actor-isolated property 'isMovableByWindowBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
271 | window.autorecalculatesKeyViewLoop = true
272 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:414:53: note: mutation of this property is only permitted within the actor
412 | @property (getter=isMovable) BOOL movable API_AVAILABLE(macos(10.6));
413 |
414 | @property (getter=isMovableByWindowBackground) BOOL movableByWindowBackground;
| `- note: mutation of this property is only permitted within the actor
415 |
416 | @property BOOL hidesOnDeactivate;
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:271:10: warning: main actor-isolated property 'autorecalculatesKeyViewLoop' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
269 | window.isReleasedWhenClosed = true
270 | window.isMovableByWindowBackground = self.isMovableByWindowBackground
271 | window.autorecalculatesKeyViewLoop = true
| `- warning: main actor-isolated property 'autorecalculatesKeyViewLoop' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
272 |
273 | self.setInitialWindowPosition(useSavedPosition: useSavedPosition)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:674:16: note: mutation of this property is only permitted within the actor
672 | - (void)disableKeyEquivalentForDefaultButtonCell;
673 | - (void)enableKeyEquivalentForDefaultButtonCell;
674 | @property BOOL autorecalculatesKeyViewLoop;
| `- note: mutation of this property is only permitted within the actor
675 | - (void)recalculateKeyViewLoop;
676 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:275:20: warning: call to main actor-isolated initializer 'init(window:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
273 | self.setInitialWindowPosition(useSavedPosition: useSavedPosition)
274 |
275 | let controller = WindowController(window: window)
| `- warning: call to main actor-isolated initializer 'init(window:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
276 | window.contentView = content.view()
277 | window.contentView?.needsLayout = true
:
342 | }
343 |
344 | private class WindowController: NSWindowController {
| |- note: calls to initializer 'init(window:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSWindowController'
345 | func setupWindowListener(_ completion: @escaping () -> Void) {
346 | NotificationCenter.default.addObserver(
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:276:10: warning: main actor-isolated property 'contentView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
274 |
275 | let controller = WindowController(window: window)
276 | window.contentView = content.view()
| `- warning: main actor-isolated property 'contentView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
277 | window.contentView?.needsLayout = true
278 | window.contentView?.needsDisplay = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: mutation of this property is only permitted within the actor
335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
| `- note: mutation of this property is only permitted within the actor
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
339 | @property (readonly) NSInteger windowNumber;
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:277:23: warning: main actor-isolated property 'needsLayout' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
275 | let controller = WindowController(window: window)
276 | window.contentView = content.view()
277 | window.contentView?.needsLayout = true
| `- warning: main actor-isolated property 'needsLayout' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
278 | window.contentView?.needsDisplay = true
279 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:267:16: note: mutation of this property is only permitted within the actor
265 | - (void)layoutSubtreeIfNeeded API_AVAILABLE(macos(10.7));
266 | - (void)layout API_AVAILABLE(macos(10.7));
267 | @property BOOL needsLayout API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
268 |
269 | @property CGFloat alphaValue API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:277:10: warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
275 | let controller = WindowController(window: window)
276 | window.contentView = content.view()
277 | window.contentView?.needsLayout = true
| `- warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
278 | window.contentView?.needsDisplay = true
279 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: property declared here
335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
| `- note: property declared here
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
339 | @property (readonly) NSInteger windowNumber;
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:278:23: warning: main actor-isolated property 'needsDisplay' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
276 | window.contentView = content.view()
277 | window.contentView?.needsLayout = true
278 | window.contentView?.needsDisplay = true
| `- warning: main actor-isolated property 'needsDisplay' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
279 |
280 | self.windowController = controller
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:187:16: note: mutation of this property is only permitted within the actor
185 | @property (readonly) BOOL canDraw API_DEPRECATED("If a view needs display, -drawRect: or -updateLayer will be called automatically when the view is able to draw. To check whether a view is in a window, call -window. To check whether a view is hidden, call -isHiddenOrHasHiddenAncestor.", macos(10.0,10.14));
186 | - (void)setNeedsDisplayInRect:(NSRect)invalidRect;
187 | @property BOOL needsDisplay;
| `- note: mutation of this property is only permitted within the actor
188 | - (void)lockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
189 | - (void)unlockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:278:10: warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
276 | window.contentView = content.view()
277 | window.contentView?.needsLayout = true
278 | window.contentView?.needsDisplay = true
| `- warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
279 |
280 | self.windowController = controller
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: property declared here
335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
| `- note: property declared here
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
339 | @property (readonly) NSInteger windowNumber;
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:281:14: warning: call to main actor-isolated instance method 'setupWindowListener' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
279 |
280 | self.windowController = controller
281 | controller.setupWindowListener { [weak self] in
| `- warning: call to main actor-isolated instance method 'setupWindowListener' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
282 | self?.windowWillClose()
283 | }
:
343 |
344 | private class WindowController: NSWindowController {
345 | func setupWindowListener(_ completion: @escaping () -> Void) {
| |- note: calls to instance method 'setupWindowListener' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSWindowController'
346 | NotificationCenter.default.addObserver(
347 | forName: NSWindow.willCloseNotification,
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:285:10: warning: call to main actor-isolated instance method 'recalculateKeyViewLoop()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
283 | }
284 |
285 | window.recalculateKeyViewLoop()
| `- warning: call to main actor-isolated instance method 'recalculateKeyViewLoop()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
286 |
287 | if #available(macOS 11.0, *) {
AppKit.NSWindow.recalculateKeyViewLoop:2:22: note: calls to instance method 'recalculateKeyViewLoop()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func recalculateKeyViewLoop()}
| |- note: calls to instance method 'recalculateKeyViewLoop()' 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/DSFAppKitBuilder/components/Window.swift:289:18: warning: main actor-isolated property 'toolbarStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
287 | if #available(macOS 11.0, *) {
288 | if let toolbarStyle = self.toolbarStyle {
289 | self.window?.toolbarStyle = NSWindow.ToolbarStyle(rawValue: toolbarStyle.rawValue)!
| `- warning: main actor-isolated property 'toolbarStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
290 | }
291 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:312:32: note: mutation of this property is only permitted within the actor
310 |
311 | /// Specifies how the titlebar area of the window should appear when the window displays an NSToolbar
312 | @property NSWindowToolbarStyle toolbarStyle API_AVAILABLE(macos(11.0));
| `- note: mutation of this property is only permitted within the actor
313 |
314 | /// The \c contentLayoutRect will return the area inside the window that is for non-obscured content. Typically, this is the same thing as the `contentView`'s frame. However, for windows with the \c NSFullSizeContentViewWindowMask set, there needs to be a way to determine the portion that is not under the toolbar. The \c contentLayoutRect returns the portion of the layout that is not obscured under the toolbar. \c contentLayoutRect is in window coordinates. It is KVO compliant. */
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:294:11: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
292 |
293 | if presentOnScreen {
294 | window.makeKeyAndOrderFront(self)
| `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
295 | }
296 |
AppKit.NSWindow.makeKeyAndOrderFront:2:22: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func makeKeyAndOrderFront(_ sender: Any?)}
| |- note: calls to instance method 'makeKeyAndOrderFront' 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/DSFAppKitBuilder/components/Window.swift:297:10: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
250 | /// - useSavedPosition: If true, tries to use a previously saved position for restoring the view.
251 | /// - presentOnScreen: If true, present the window on screen. If false, create the window but don't display it
252 | func show(contentRect: NSRect,
| `- note: add '@MainActor' to make instance method 'show(contentRect:useSavedPosition:presentOnScreen:)' part of global actor 'MainActor'
253 | useSavedPosition: Bool,
254 | presentOnScreen: Bool)
:
295 | }
296 |
297 | window.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
298 | }
299 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:338:49: note: mutation of this property is only permitted within the actor
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
| `- note: mutation of this property is only permitted within the actor
339 | @property (readonly) NSInteger windowNumber;
340 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:317:18: warning: call to main actor-isolated instance method 'setFrameUsingName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
315 | self.frameAutosaveName.withUnwrapped { value in
316 | if useSavedPosition {
317 | self.window?.setFrameUsingName(value)
| `- warning: call to main actor-isolated instance method 'setFrameUsingName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
318 | }
319 | self.window?.setFrameAutosaveName(value)
AppKit.NSWindow.setFrameUsingName:2:22: note: calls to instance method 'setFrameUsingName' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setFrameUsingName(_ name: NSWindow.FrameAutosaveName) -> Bool}
| |- note: calls to instance method 'setFrameUsingName' 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/DSFAppKitBuilder/components/Window.swift:319:17: warning: call to main actor-isolated instance method 'setFrameAutosaveName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
317 | self.window?.setFrameUsingName(value)
318 | }
319 | self.window?.setFrameAutosaveName(value)
| `- warning: call to main actor-isolated instance method 'setFrameAutosaveName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
320 | }
321 | }
AppKit.NSWindow.setFrameAutosaveName:2:22: note: calls to instance method 'setFrameAutosaveName' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setFrameAutosaveName(_ name: NSWindow.FrameAutosaveName) -> Bool}
| |- note: calls to instance method 'setFrameAutosaveName' 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/DSFAppKitBuilder/components/Window.swift:325:6: warning: call to main actor-isolated instance method 'saveFrame(usingName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
321 | }
322 |
323 | func saveLastWindowPosition() {
| `- note: add '@MainActor' to make instance method 'saveLastWindowPosition()' part of global actor 'MainActor'
324 | if let f = self.frameAutosaveName, let w = self.window {
325 | w.saveFrame(usingName: f)
| `- warning: call to main actor-isolated instance method 'saveFrame(usingName:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
326 | }
327 | }
AppKit.NSWindow.saveFrame:2:22: note: calls to instance method 'saveFrame(usingName:)' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func saveFrame(usingName name: NSWindow.FrameAutosaveName)}
| |- note: calls to instance method 'saveFrame(usingName:)' 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/DSFAppKitBuilder/components/Window.swift:351:4: warning: capture of 'completion' with non-sendable type '() -> Void' in a '@Sendable' closure
349 | queue: .main
350 | ) { _ in
351 | completion()
| |- warning: capture of 'completion' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
352 | }
353 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZStack.swift:84:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
82 | // Private
83 | public override func view() -> NSView { return self.containerView }
84 | private let containerView = NSView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
85 | private var elements: [Element] = []
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZStack.swift:72:18: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | self.elements.append(element)
72 | containerView.addSubview(v)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | switch layer.layoutType {
74 | case .pinEdges:
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView)}
| |- note: calls to instance method 'addSubview' 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/DSFAppKitBuilder/components/ZStack.swift:75:7: warning: call to main actor-isolated instance method 'pinEdges(to:edgeInset:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | switch layer.layoutType {
74 | case .pinEdges:
75 | v.pinEdges(to: containerView, edgeInset: edgeInset)
| `- warning: call to main actor-isolated instance method 'pinEdges(to:edgeInset:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
76 | case .center:
77 | v.center(in: containerView, edgeInset: edgeInset)
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/Autolayout+helpers.swift:31:16: note: calls to instance method 'pinEdges(to:edgeInset:animate:)' from outside of its actor context are implicitly asynchronous
29 | extension NSView {
30 | // Pin 'self' within 'other' view
31 | internal func pinEdges(to other: NSView, edgeInset: CGFloat = 0, animate: Bool = false) {
| |- note: calls to instance method 'pinEdges(to:edgeInset:animate:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
32 | self.pinEdges(to: other, edgeInsets: NSEdgeInsets(edgeInset: edgeInset), animate: animate)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZStack.swift:77:7: warning: call to main actor-isolated instance method 'center(in:edgeInset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
75 | v.pinEdges(to: containerView, edgeInset: edgeInset)
76 | case .center:
77 | v.center(in: containerView, edgeInset: edgeInset)
| `- warning: call to main actor-isolated instance method 'center(in:edgeInset:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
78 | }
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/Autolayout+helpers.swift:46:16: note: calls to instance method 'center(in:edgeInset:)' from outside of its actor context are implicitly asynchronous
44 | // Pin 'self' within 'other' view
45 | @discardableResult
46 | internal func center(in other: NSView, edgeInset: CGFloat = 0) -> [NSLayoutConstraint] {
| |- note: calls to instance method 'center(in:edgeInset:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
47 | return self.center(in: other, edgeInsets: NSEdgeInsets(edgeInset: edgeInset))
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZoomableScrollView.swift:83:19: warning: main actor-isolated property 'allowsMagnification' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
81 |
82 | override func customSetup() {
83 | self.scrollView.allowsMagnification = true
| `- warning: main actor-isolated property 'allowsMagnification' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
84 | self.scrollView.minMagnification = range.lowerBound
85 | self.scrollView.maxMagnification = range.upperBound
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrollView.h:96:16: note: mutation of this property is only permitted within the actor
94 | /* Allow the user to magnify the scrollview. Note: this does not prevent the developer from manually adjusting the magnification value. If magnification exceeds either the maximum or minimum limits for magnification, and allowsMagnification is YES, the scroll view temporarily animates the content magnification just past those limits before returning to them. The default value is NO.
95 | */
96 | @property BOOL allowsMagnification API_AVAILABLE(macos(10.8));
| `- note: mutation of this property is only permitted within the actor
97 |
98 | /* This value determines how much the content is currently scaled. To animate the magnification, use the object's animator. The default value is 1.0 */
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZoomableScrollView.swift:84:19: warning: main actor-isolated property 'minMagnification' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
82 | override func customSetup() {
83 | self.scrollView.allowsMagnification = true
84 | self.scrollView.minMagnification = range.lowerBound
| `- warning: main actor-isolated property 'minMagnification' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 | self.scrollView.maxMagnification = range.upperBound
86 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrollView.h:107:19: note: mutation of this property is only permitted within the actor
105 | /* This value determines how small the content can be magnified. The default value is 0.25.
106 | */
107 | @property CGFloat minMagnification API_AVAILABLE(macos(10.8));
| `- note: mutation of this property is only permitted within the actor
108 |
109 | /* Magnify content view proportionally such that the entire rect (in content view space) fits centered in the scroll view. The resulting magnification value is clipped to the minMagnification and maxMagnification values. To animate the magnification, use the object's animator.
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZoomableScrollView.swift:85:19: warning: main actor-isolated property 'maxMagnification' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
83 | self.scrollView.allowsMagnification = true
84 | self.scrollView.minMagnification = range.lowerBound
85 | self.scrollView.maxMagnification = range.upperBound
| `- warning: main actor-isolated property 'maxMagnification' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 |
87 | self.magnifyObserver = self.scrollView.observe(\.magnification, options: [.new]) { [weak self] scrollView, change in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrollView.h:103:19: note: mutation of this property is only permitted within the actor
101 | /* This value determines how large the content can be magnified. It must be greater than or equal to the minimum magnification. The default value is 4.0.
102 | */
103 | @property CGFloat maxMagnification API_AVAILABLE(macos(10.8));
| `- note: mutation of this property is only permitted within the actor
104 |
105 | /* This value determines how small the content can be magnified. The default value is 0.25.
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZoomableScrollView.swift:87:52: warning: cannot form key path to main actor-isolated property 'magnification'; this is an error in the Swift 6 language mode
85 | self.scrollView.maxMagnification = range.upperBound
86 |
87 | self.magnifyObserver = self.scrollView.observe(\.magnification, options: [.new]) { [weak self] scrollView, change in
| `- warning: cannot form key path to main actor-isolated property 'magnification'; this is an error in the Swift 6 language mode
88 | guard let `self` = self, let newValue = change.newValue else { return }
89 | self.updateScale.tryLock {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZoomableScrollView.swift:88:23: warning: capture of 'self' with non-sendable type 'ZoomableScrollView?' in a '@Sendable' closure
30 | // MARK: - Zoom scroll view
31 |
32 | public class ZoomableScrollView: ScrollView {
| `- note: class 'ZoomableScrollView' does not conform to the 'Sendable' protocol
33 | public override var clipType: NSClipView.Type { CenteringClipView.self }
34 |
:
86 |
87 | self.magnifyObserver = self.scrollView.observe(\.magnification, options: [.new]) { [weak self] scrollView, change in
88 | guard let `self` = self, let newValue = change.newValue else { return }
| `- warning: capture of 'self' with non-sendable type 'ZoomableScrollView?' in a '@Sendable' closure
89 | self.updateScale.tryLock {
90 | Swift.print("New value: \(newValue)")
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZoomableScrollView.swift:96:19: warning: main actor-isolated property 'allowsMagnification' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
94 | }
95 |
96 | self.scrollView.allowsMagnification = true
| `- warning: main actor-isolated property 'allowsMagnification' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
97 |
98 | self.scaleBinder.register(self) { [weak self] newScale in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrollView.h:96:16: note: mutation of this property is only permitted within the actor
94 | /* Allow the user to magnify the scrollview. Note: this does not prevent the developer from manually adjusting the magnification value. If magnification exceeds either the maximum or minimum limits for magnification, and allowsMagnification is YES, the scroll view temporarily animates the content magnification just past those limits before returning to them. The default value is NO.
95 | */
96 | @property BOOL allowsMagnification API_AVAILABLE(macos(10.8));
| `- note: mutation of this property is only permitted within the actor
97 |
98 | /* This value determines how much the content is currently scaled. To animate the magnification, use the object's animator. The default value is 1.0 */
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZoomableScrollView.swift:133:19: warning: main actor-isolated property 'magnification' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
129 |
130 | extension ZoomableScrollView {
131 | func scale(_ scaleFactor: CGFloat) {
| `- note: add '@MainActor' to make instance method 'scale' part of global actor 'MainActor'
132 | //self.scrollView.animator().magnification = scaleFactor
133 | self.scrollView.magnification = scaleFactor
| `- warning: main actor-isolated property 'magnification' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 | self.syncZoomFitScale()
135 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrollView.h:99:19: note: mutation of this property is only permitted within the actor
97 |
98 | /* This value determines how much the content is currently scaled. To animate the magnification, use the object's animator. The default value is 1.0 */
99 | @property CGFloat magnification API_AVAILABLE(macos(10.8));
| `- note: mutation of this property is only permitted within the actor
100 |
101 | /* This value determines how large the content can be magnified. It must be greater than or equal to the minimum magnification. The default value is 4.0.
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZoomableScrollView.swift:149:45: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | }
147 |
148 | func zoomToFit() {
| `- note: add '@MainActor' to make instance method 'zoomToFit()' part of global actor 'MainActor'
149 | if let sz = self.scrollView.documentView?.bounds {
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
150 | self.scrollView.magnify(toFit: sz)
151 | }
/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/DSFAppKitBuilder/components/ZoomableScrollView.swift:149:31: warning: main actor-isolated property 'documentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | }
147 |
148 | func zoomToFit() {
| `- note: add '@MainActor' to make instance method 'zoomToFit()' part of global actor 'MainActor'
149 | if let sz = self.scrollView.documentView?.bounds {
| `- warning: main actor-isolated property 'documentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
150 | self.scrollView.magnify(toFit: sz)
151 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSScrollView.h:48:47: note: property declared here
46 | @property (readonly) NSRect documentVisibleRect;
47 | @property (readonly) NSSize contentSize;
48 | @property (nullable, strong) __kindof NSView *documentView;
| `- note: property declared here
49 | @property (strong) NSClipView *contentView;
50 | @property (nullable, strong) NSCursor *documentCursor;
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZoomableScrollView.swift:150:20: warning: call to main actor-isolated instance method 'magnify(toFit:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
146 | }
147 |
148 | func zoomToFit() {
| `- note: add '@MainActor' to make instance method 'zoomToFit()' part of global actor 'MainActor'
149 | if let sz = self.scrollView.documentView?.bounds {
150 | self.scrollView.magnify(toFit: sz)
| `- warning: call to main actor-isolated instance method 'magnify(toFit:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
151 | }
152 | }
AppKit.NSScrollView.magnify:3:24: note: calls to instance method 'magnify(toFit:)' from outside of its actor context are implicitly asynchronous
1 | class NSScrollView {
2 | @available(macOS 10.8, *)
3 | @MainActor open func magnify(toFit rect: NSRect)}
| |- note: calls to instance method 'magnify(toFit:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/TabView.swift:192:37: warning: sending 'content' risks causing data races; this is an error in the Swift 6 language mode
190 | self.title = title
191 | self.toolTip = toolTip
192 | self.viewController = TabViewItem.Controller(content: content)
| |- warning: sending 'content' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'content' to main actor-isolated initializer 'init(content:)' risks causing data races between main actor-isolated and task-isolated uses
193 | }
194 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:281:14: warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
279 |
280 | self.windowController = controller
281 | controller.setupWindowListener { [weak self] in
| |- warning: sending value of non-Sendable type '() -> Void' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '() -> Void' to main actor-isolated instance method 'setupWindowListener' risks causing data races between main actor-isolated and local nonisolated uses
282 | self?.windowWillClose()
283 | }
:
286 |
287 | if #available(macOS 11.0, *) {
288 | if let toolbarStyle = self.toolbarStyle {
| `- note: access can happen concurrently
289 | self.window?.toolbarStyle = NSWindow.ToolbarStyle(rawValue: toolbarStyle.rawValue)!
290 | }
:
292 |
293 | if presentOnScreen {
294 | window.makeKeyAndOrderFront(self)
| `- note: access can happen concurrently
295 | }
296 |
297 | window.delegate = self
| `- note: access can happen concurrently
298 | }
299 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:294:11: warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
292 |
293 | if presentOnScreen {
294 | window.makeKeyAndOrderFront(self)
| |- warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type 'Window' to main actor-isolated instance method 'makeKeyAndOrderFront' risks causing races in between main actor-isolated and main actor-isolated uses
295 | }
296 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:167:16: warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
165 | /// Minimise a window to the dock
166 | @inlinable func minimise() {
167 | self.window?.miniaturize(self)
| |- warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Window' to main actor-isolated instance method 'miniaturize' risks causing races in between task-isolated and main actor-isolated uses
168 | }
169 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:172:16: warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
170 | /// Deminiaturize a window from the dock
171 | @inlinable func deminiaturize() {
172 | self.window?.deminiaturize(self)
| |- warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Window' to main actor-isolated instance method 'deminiaturize' risks causing races in between task-isolated and main actor-isolated uses
173 | }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:177:16: warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
175 | /// Simulates the user clicking the zoom box by momentarily highlighting the button and then zooming the window.
176 | @inlinable func zoom() {
177 | self.window?.performZoom(self)
| |- warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Window' to main actor-isolated instance method 'performZoom' risks causing races in between task-isolated and main actor-isolated uses
178 | }
179 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:183:17: warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
181 | @inlinable func makeKey(andOrderFront orderFront: Bool = false) {
182 | if orderFront {
183 | self.window?.makeKeyAndOrderFront(self)
| |- warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Window' to main actor-isolated instance method 'makeKeyAndOrderFront' risks causing races in between task-isolated and main actor-isolated uses
184 | }
185 | else {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/Window.swift:192:16: warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
190 | /// Close the window if it is open
191 | func close() {
192 | self.window?.performClose(self)
| |- warning: sending value of non-Sendable type 'Window' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'Window' to main actor-isolated instance method 'performClose' risks causing races in between task-isolated and main actor-isolated uses
193 | }
194 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/components/ZoomableScrollView.swift:139:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
137 | func syncZoomFitScale() {
138 | DispatchQueue.main.async { [weak self] in
139 | guard let `self` = self else { return }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
140 | let contentRect = self.scrollView.contentView.frame
141 | let documentRect = self.scrollView.documentView!.bounds
Fetching https://github.com/dagronf/DSFSearchField
Fetching https://github.com/dagronf/DSFComboButton
Fetching https://github.com/dagronf/DSFPagerControl
Fetching https://github.com/dagronf/DSFToggleButton
Fetching https://github.com/dagronf/DSFMenuBuilder
Fetching https://github.com/dagronf/DSFStepperView
Fetching https://github.com/dagronf/DSFValueBinders
[1/235] Fetching dsfvaluebinders
[9/729] Fetching dsfvaluebinders, dsftogglebutton
[256/1041] Fetching dsfvaluebinders, dsftogglebutton, dsfpagercontrol
[453/1739] Fetching dsfvaluebinders, dsftogglebutton, dsfpagercontrol, dsfstepperview
[509/1906] Fetching dsfvaluebinders, dsftogglebutton, dsfpagercontrol, dsfstepperview, dsfcombobutton
[616/2089] Fetching dsfvaluebinders, dsftogglebutton, dsfpagercontrol, dsfstepperview, dsfcombobutton, dsfsearchfield
[1062/2413] Fetching dsfvaluebinders, dsftogglebutton, dsfpagercontrol, dsfstepperview, dsfcombobutton, dsfsearchfield, dsfmenubuilder
Fetched https://github.com/dagronf/DSFSearchField from cache (0.79s)
[1689/2230] Fetching dsfvaluebinders, dsftogglebutton, dsfpagercontrol, dsfstepperview, dsfcombobutton, dsfmenubuilder
Fetched https://github.com/dagronf/DSFComboButton from cache (0.79s)
Fetched https://github.com/dagronf/DSFPagerControl from cache (0.79s)
[1286/1751] Fetching dsfvaluebinders, dsftogglebutton, dsfstepperview, dsfmenubuilder
Fetched https://github.com/dagronf/DSFToggleButton from cache (0.81s)
[867/1257] Fetching dsfvaluebinders, dsfstepperview, dsfmenubuilder
Fetched https://github.com/dagronf/DSFValueBinders from cache (0.87s)
Fetched https://github.com/dagronf/DSFStepperView from cache (0.87s)
Fetched https://github.com/dagronf/DSFMenuBuilder from cache (0.87s)
Computing version for https://github.com/dagronf/DSFSearchField
Computed https://github.com/dagronf/DSFSearchField at 2.2.2 (1.50s)
Computing version for https://github.com/dagronf/DSFToggleButton
Computed https://github.com/dagronf/DSFToggleButton at 7.1.0 (0.57s)
Fetching https://github.com/dagronf/DSFAppearanceManager
[1/459] Fetching dsfappearancemanager
Fetched https://github.com/dagronf/DSFAppearanceManager from cache (0.97s)
Computing version for https://github.com/dagronf/DSFComboButton
Computed https://github.com/dagronf/DSFComboButton at 1.0.0 (1.55s)
Computing version for https://github.com/dagronf/DSFMenuBuilder
Computed https://github.com/dagronf/DSFMenuBuilder at 1.2.1 (0.56s)
Computing version for https://github.com/dagronf/DSFPagerControl
Computed https://github.com/dagronf/DSFPagerControl at 2.5.2 (0.55s)
Computing version for https://github.com/dagronf/DSFStepperView
Computed https://github.com/dagronf/DSFStepperView at 4.4.0 (0.56s)
Computing version for https://github.com/dagronf/DSFAppearanceManager
Computed https://github.com/dagronf/DSFAppearanceManager at 3.5.1 (0.55s)
Computing version for https://github.com/dagronf/DSFValueBinders
Computed https://github.com/dagronf/DSFValueBinders at 1.0.1 (0.53s)
Creating working copy for https://github.com/dagronf/DSFPagerControl
Working copy of https://github.com/dagronf/DSFPagerControl resolved at 2.5.2
Creating working copy for https://github.com/dagronf/DSFToggleButton
Working copy of https://github.com/dagronf/DSFToggleButton resolved at 7.1.0
Creating working copy for https://github.com/dagronf/DSFValueBinders
Working copy of https://github.com/dagronf/DSFValueBinders resolved at 1.0.1
Creating working copy for https://github.com/dagronf/DSFStepperView
Working copy of https://github.com/dagronf/DSFStepperView resolved at 4.4.0
Creating working copy for https://github.com/dagronf/DSFAppearanceManager
Working copy of https://github.com/dagronf/DSFAppearanceManager resolved at 3.5.1
Creating working copy for https://github.com/dagronf/DSFComboButton
Working copy of https://github.com/dagronf/DSFComboButton resolved at 1.0.0
Creating working copy for https://github.com/dagronf/DSFMenuBuilder
Working copy of https://github.com/dagronf/DSFMenuBuilder resolved at 1.2.1
Creating working copy for https://github.com/dagronf/DSFSearchField
Working copy of https://github.com/dagronf/DSFSearchField resolved at 2.2.2
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-2F0A5646E1D333AE.txt
[2/49] Compiling DSFValueBinders PropertyWrapper.swift
[3/50] Compiling DSFValueBinders WrappedPublisher.swift
[4/50] Compiling DSFValueBinders ValueBinder+Binding.swift
[5/50] Compiling DSFValueBinders ValueBinder.swift
[6/50] Compiling DSFValueBinders KeyPathBinder.swift
[7/50] Compiling DSFAppearanceManager DSFAppearanceCache.swift
[8/50] Compiling DSFAppearanceManager DSFAppearanceManager+ChangeDetector.swift
[9/50] Emitting module DSFValueBinders
[10/50] Compiling DSFValueBinders EnumKeyPathBinder.swift
[11/50] Compiling DSFValueBinders ValueBinder+transformers.swift
[12/50] Compiling DSFValueBinders ValueBinder+transform.swift
[13/50] Compiling DSFAppearanceManager DSFDebounce.swift
[14/50] Compiling DSFAppearanceManager DSFSimpleLock.swift
[15/51] Compiling DSFAppearanceManager WeakBag.swift
[16/51] Compiling DSFAppearanceManager NSAppearance+extensions.swift
[17/51] Compiling DSFAppearanceManager NSWindow+Appearance.swift
[18/51] Compiling DSFSearchField resource_bundle_accessor.swift
[19/51] Compiling DSFSearchField SwiftUIHelpers.swift
[20/51] Compiling DSFSearchField LocalizationHelpers.swift
[21/51] Compiling DSFValueBinders SemLock.swift
[22/51] Compiling DSFMenuBuilder AnyMenuItem.swift
[23/51] Compiling DSFMenuBuilder SeparatorItem.swift
[24/51] Compiling DSFMenuBuilder ViewItem.swift
[25/51] Compiling DSFMenuBuilder MenuItemTarget.swift
[26/51] Compiling DSFMenuBuilder MenuItemCollection.swift
[27/51] Compiling DSFMenuBuilder ViewItem+NSViewController.swift
[28/52] Emitting module DSFMenuBuilder
[29/52] Compiling DSFMenuBuilder MenuItem.swift
[30/52] Compiling DSFMenuBuilder NSMenu+extensions.swift
[33/52] Compiling DSFAppearanceManager DSFAppearanceManager.swift
[34/52] Compiling DSFAppearanceManager NSView+Appearance.swift
[35/52] Compiling DSFAppearanceManager AutoplayAnimatedImages.swift
[36/52] Compiling DSFAppearanceManager DSFAppearanceManager+Listeners.swift
[39/52] Compiling DSFComboButton DelayedMenuButton.swift
[40/52] Compiling DSFSearchField DSFSearchField+SwiftUI.swift
[41/52] Emitting module DSFSearchField
[42/52] Compiling DSFSearchField DSFSearchField.swift
[43/52] Emitting module DSFAppearanceManager
[44/52] Compiling DSFAppearanceManager WeakBox.swift
[45/52] Emitting module DSFComboButton
[46/52] Compiling DSFComboButton DSFComboButton+private.swift
[47/52] Compiling DSFComboButton DSFComboButton.swift
[48/76] Compiling DSFMenuBuilder NSMenuItemHighlightableView.swift
[49/76] Compiling DSFPagerControl CGPath+extensions.swift
[50/76] Compiling DSFPagerControl CATransaction+extensions.swift
[51/76] Compiling DSFPagerControl DSFDebounce.swift
[52/76] Compiling DSFPagerControl DSFPagerControlHandling.swift
[53/77] Compiling DSFStepperView DSFStepperView+utils.swift
[54/78] Compiling DSFStepperView ClampedValue.swift
[55/78] Compiling DSFStepperView DSFDelayedRepeatingButton.swift
[56/78] Emitting module DSFPagerControl
[57/78] Emitting module DSFStepperView
[58/78] Compiling DSFPagerControl NSBezierPath+extensions.swift
[59/78] Compiling DSFToggleButton DSFToggleButton+extensions.swift
[60/78] Compiling DSFToggleButton DSFToggleButton+SwiftUI.swift
[61/78] Emitting module DSFToggleButton
[62/78] Compiling DSFToggleButton DSFToggleButton.swift
[63/78] Compiling DSFStepperView resource_bundle_accessor.swift
[64/78] Compiling DSFStepperView DSFStepperView+Delegate.swift
[65/78] Compiling DSFStepperView DSFStepperView+SwiftUI.swift
[66/78] Compiling DSFPagerControl DSFPagerControl+SwiftUI.swift
[67/78] Compiling DSFPagerControl DSFPagerControl+Shape.swift
[68/78] Compiling DSFPagerControl DSFPagerControl+CustomShapes.swift
[69/78] Compiling DSFPagerControl DSFPagerControl+Interation.swift
[70/78] Compiling DSFPagerControl DSFPagerControl.swift
[71/78] Compiling DSFStepperView DSFStepperView+iOS.swift
[72/78] Compiling DSFStepperView DSFStepperView+macOS.swift
[73/78] Compiling DSFStepperView DSFStepperView+localization.swift
[74/78] Compiling DSFStepperView DSFStepperView+textfield.swift
[75/176] Compiling DSFAppKitBuilder BindingBag.swift
[76/176] Compiling DSFAppKitBuilder CGColor+extensions.swift
[77/176] Compiling DSFAppKitBuilder CGSize+extensions.swift
[78/176] Compiling DSFAppKitBuilder CSFlatButton.swift
[79/176] Compiling DSFAppKitBuilder CenteringClipView.swift
[80/176] Compiling DSFAppKitBuilder CustomValueTransformers.swift
[81/176] Compiling DSFAppKitBuilder EmbeddedLayoutType.swift
[82/176] Compiling DSFAppKitBuilder Logging.swift
[83/176] Compiling DSFAppKitBuilder NSBezierPath+extensions.swift
[84/176] Compiling DSFAppKitBuilder NSColor+extensions.swift
[85/186] Compiling DSFAppKitBuilder LabelStyle.swift
[86/186] Compiling DSFAppKitBuilder LevelIndicator.swift
[87/186] Compiling DSFAppKitBuilder Link.swift
[88/186] Compiling DSFAppKitBuilder List.swift
[89/186] Compiling DSFAppKitBuilder ManagedWindow.swift
[90/186] Compiling DSFAppKitBuilder Maybe.swift
[91/186] Compiling DSFAppKitBuilder Nothing.swift
[92/186] Compiling DSFAppKitBuilder OneOf.swift
[93/186] Compiling DSFAppKitBuilder Pager.swift
[94/186] Compiling DSFAppKitBuilder PathControl.swift
[95/186] Compiling DSFAppKitBuilder PlainTextView.swift
[96/186] Compiling DSFAppKitBuilder Element+Alert.swift
[97/186] Compiling DSFAppKitBuilder Element+Change.swift
[98/186] Compiling DSFAppKitBuilder Element+Gestures.swift
[99/186] Compiling DSFAppKitBuilder Element+Panel.swift
[100/186] Compiling DSFAppKitBuilder Element+Popover.swift
[101/186] Compiling DSFAppKitBuilder Element+Sheet.swift
[102/186] Compiling DSFAppKitBuilder Element+Size.swift
[103/186] Compiling DSFAppKitBuilder Element.swift
[104/186] Compiling DSFAppKitBuilder NumberField.swift
[105/186] Compiling DSFAppKitBuilder SearchField.swift
[106/186] Compiling DSFAppKitBuilder TextField.swift
[107/186] Compiling DSFAppKitBuilder TokenField.swift
[108/186] Compiling DSFAppKitBuilder DynamicFont.swift
[109/186] Compiling DSFAppKitBuilder DynamicFontService.swift
[110/186] Compiling DSFAppKitBuilder Font.swift
[111/186] Compiling DSFAppKitBuilder DSFAppKitBuilderAssignableViewController.swift
[112/186] Compiling DSFAppKitBuilder DSFAppKitBuilderView.swift
[113/186] Compiling DSFAppKitBuilder DSFAppKitBuilderViewController.swift
[114/186] Compiling DSFAppKitBuilder SwiftUIPreviews.swift
[115/186] Compiling DSFAppKitBuilder Animations.swift
[116/186] Compiling DSFAppKitBuilder Autolayout+helpers.swift
[117/186] Emitting module DSFAppKitBuilder
[118/186] Compiling DSFAppKitBuilder DSFAppKitBuilder.swift
[119/186] Compiling DSFAppKitBuilder DSFAppKitBuilderViewHandler.swift
[120/186] Compiling DSFAppKitBuilder DoubleStringBinder.swift
[121/186] Compiling DSFAppKitBuilder ElementBinder.swift
[122/186] Compiling DSFAppKitBuilder WindowBinder.swift
[123/186] Compiling DSFAppKitBuilder Accessibility.swift
[124/186] Compiling DSFAppKitBuilder AttributedString.swift
[125/186] Compiling DSFAppKitBuilder AutoLayout.swift
[126/186] Compiling DSFAppKitBuilder Box.swift
[127/186] Compiling DSFAppKitBuilder Button+radio.swift
[128/186] Compiling DSFAppKitBuilder Button.swift
[129/186] Compiling DSFAppKitBuilder PopupButton.swift
[130/186] Compiling DSFAppKitBuilder ProgressBar.swift
[131/186] Compiling DSFAppKitBuilder RadioGroup.swift
[132/186] Compiling DSFAppKitBuilder ScrollView.swift
[133/186] Compiling DSFAppKitBuilder SecureTextField.swift
[134/186] Compiling DSFAppKitBuilder Segmented.swift
[135/186] Compiling DSFAppKitBuilder Shape.swift
[136/186] Compiling DSFAppKitBuilder Slider.swift
[137/186] Compiling DSFAppKitBuilder SplitView.swift
[138/186] Compiling DSFAppKitBuilder Stack.swift
[139/186] Compiling DSFAppKitBuilder StackStyle.swift
[140/186] Compiling DSFAppKitBuilder ButtonStyle.swift
[141/186] Compiling DSFAppKitBuilder CheckBox.swift
[142/186] Compiling DSFAppKitBuilder ColorWell.swift
[143/186] Compiling DSFAppKitBuilder ComboBox.swift
[144/186] Compiling DSFAppKitBuilder ComboButton.swift
[145/186] Compiling DSFAppKitBuilder Control.swift
[146/186] Compiling DSFAppKitBuilder DatePicker.swift
[147/186] Compiling DSFAppKitBuilder DisclosureGroup.swift
[148/186] Compiling DSFAppKitBuilder DisclosureView.swift
[149/186] Compiling DSFAppKitBuilder Divider.swift
[150/186] Compiling DSFAppKitBuilder DynamicElement.swift
[151/186] Compiling DSFAppKitBuilder Stepper.swift
[152/186] Compiling DSFAppKitBuilder StepperView.swift
[153/186] Compiling DSFAppKitBuilder Switch.swift
[154/186] Compiling DSFAppKitBuilder TabView.swift
[155/186] Compiling DSFAppKitBuilder Toggle.swift
[156/186] Compiling DSFAppKitBuilder View+SwiftUI.swift
[157/186] Compiling DSFAppKitBuilder View.swift
[158/186] Compiling DSFAppKitBuilder VisualEffectView.swift
[159/186] Compiling DSFAppKitBuilder Window.swift
[160/186] Compiling DSFAppKitBuilder ZStack.swift
[161/186] Compiling DSFAppKitBuilder ZoomableScrollView.swift
[162/186] Compiling DSFAppKitBuilder EmptyView.swift
[163/186] Compiling DSFAppKitBuilder FlatButton.swift
[164/186] Compiling DSFAppKitBuilder Flow.swift
[165/186] Compiling DSFAppKitBuilder ForEach.swift
[166/186] Compiling DSFAppKitBuilder Form.swift
[167/186] Compiling DSFAppKitBuilder Grid.swift
[168/186] Compiling DSFAppKitBuilder Group.swift
[169/186] Compiling DSFAppKitBuilder IfElse.swift
[170/186] Compiling DSFAppKitBuilder Image.swift
[171/186] Compiling DSFAppKitBuilder ImageView.swift
[172/186] Compiling DSFAppKitBuilder Label.swift
[173/186] Compiling DSFAppKitBuilder NSGestureRecognizer+actionblock.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
[174/186] Compiling DSFAppKitBuilder NumberFormatter+extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
[175/186] Compiling DSFAppKitBuilder PaddableTextField.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
[176/186] Compiling DSFAppKitBuilder ProtectedLock.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
[177/186] Compiling DSFAppKitBuilder RangeComponentBinder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
[178/186] Compiling DSFAppKitBuilder ScrollableTextView.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
[179/186] Compiling DSFAppKitBuilder Shadow.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
[180/186] Compiling DSFAppKitBuilder TrackingArea.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
[181/186] Compiling DSFAppKitBuilder Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
[182/186] Compiling DSFAppKitBuilder VerticalSizingTokenField.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:42:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | var actionBlock: ACTIONBLOCK? {
41 | get {
42 | objc_getAssociatedObject(self, &Self.objcKey) as? ACTIONBLOCK
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
/Users/admin/builder/spi-builder-workspace/Sources/DSFAppKitBuilder/utils/NSGestureRecognizer+actionblock.swift:45:35: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | }
44 | set {
45 | objc_setAssociatedObject(self, &Self.objcKey, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN)
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | if let _ = newValue {
47 | self.target = self
[182/186] Write Objects.LinkFileList
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning duplicate member name 'DSFDebounce.swift.o' from '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFAppearanceManager.build/DSFDebounce.swift.o(DSFDebounce.swift.o)' and '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFPagerControl.build/DSFDebounce.swift.o(DSFDebounce.swift.o)'
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning duplicate member name 'NSBezierPath+extensions.swift.o' from '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFPagerControl.build/NSBezierPath+extensions.swift.o(NSBezierPath+extensions.swift.o)' and '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFAppKitBuilder.build/NSBezierPath+extensions.swift.o(NSBezierPath+extensions.swift.o)'
/Applications/Xcode-16.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning duplicate member name 'resource_bundle_accessor.swift.o' from '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFStepperView.build/resource_bundle_accessor.swift.o(resource_bundle_accessor.swift.o)' and '/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/DSFSearchField.build/resource_bundle_accessor.swift.o(resource_bundle_accessor.swift.o)'
[184/186] Archiving libDSFAppKitBuilder-static.a
[185/186] Linking libDSFAppKitBuilder-shared.dylib
Build complete! (9.93s)
Build complete.
{
"dependencies" : [
{
"identity" : "dsfpagercontrol",
"requirement" : {
"range" : [
{
"lower_bound" : "2.5.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFPagerControl"
},
{
"identity" : "dsfmenubuilder",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFMenuBuilder"
},
{
"identity" : "dsfvaluebinders",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "1.1.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFValueBinders"
},
{
"identity" : "dsfcombobutton",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFComboButton"
},
{
"identity" : "dsftogglebutton",
"requirement" : {
"range" : [
{
"lower_bound" : "7.1.0",
"upper_bound" : "8.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFToggleButton"
},
{
"identity" : "dsfstepperview",
"requirement" : {
"range" : [
{
"lower_bound" : "4.3.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFStepperView"
},
{
"identity" : "dsfsearchfield",
"requirement" : {
"range" : [
{
"lower_bound" : "2.2.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dagronf/DSFSearchField"
}
],
"manifest_display_name" : "DSFAppKitBuilder",
"name" : "DSFAppKitBuilder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
}
],
"products" : [
{
"name" : "DSFAppKitBuilder",
"targets" : [
"DSFAppKitBuilder"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DSFAppKitBuilder-static",
"targets" : [
"DSFAppKitBuilder"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "DSFAppKitBuilder-shared",
"targets" : [
"DSFAppKitBuilder"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFAppKitBuilderTests",
"module_type" : "SwiftTarget",
"name" : "DSFAppKitBuilderTests",
"path" : "Tests/DSFAppKitBuilderTests",
"sources" : [
"DSFAppKitDSLTests.swift"
],
"target_dependencies" : [
"DSFAppKitBuilder"
],
"type" : "test"
},
{
"c99name" : "DSFAppKitBuilder",
"module_type" : "SwiftTarget",
"name" : "DSFAppKitBuilder",
"path" : "Sources/DSFAppKitBuilder",
"product_dependencies" : [
"DSFMenuBuilder",
"DSFPagerControl",
"DSFValueBinders",
"DSFComboButton",
"DSFToggleButton",
"DSFStepperView",
"DSFSearchField"
],
"product_memberships" : [
"DSFAppKitBuilder",
"DSFAppKitBuilder-static",
"DSFAppKitBuilder-shared"
],
"sources" : [
"DSFAppKitBuilder.swift",
"DSFAppKitBuilderViewHandler.swift",
"binders/DoubleStringBinder.swift",
"binders/ElementBinder.swift",
"binders/WindowBinder.swift",
"components/Accessibility.swift",
"components/AttributedString.swift",
"components/AutoLayout.swift",
"components/Box.swift",
"components/Button+radio.swift",
"components/Button.swift",
"components/ButtonStyle.swift",
"components/CheckBox.swift",
"components/ColorWell.swift",
"components/ComboBox.swift",
"components/ComboButton.swift",
"components/Control.swift",
"components/DatePicker.swift",
"components/DisclosureGroup.swift",
"components/DisclosureView.swift",
"components/Divider.swift",
"components/DynamicElement.swift",
"components/EmptyView.swift",
"components/FlatButton.swift",
"components/Flow.swift",
"components/ForEach.swift",
"components/Form.swift",
"components/Grid.swift",
"components/Group.swift",
"components/IfElse.swift",
"components/Image.swift",
"components/ImageView.swift",
"components/Label.swift",
"components/LabelStyle.swift",
"components/LevelIndicator.swift",
"components/Link.swift",
"components/List.swift",
"components/ManagedWindow.swift",
"components/Maybe.swift",
"components/Nothing.swift",
"components/OneOf.swift",
"components/Pager.swift",
"components/PathControl.swift",
"components/PlainTextView.swift",
"components/PopupButton.swift",
"components/ProgressBar.swift",
"components/RadioGroup.swift",
"components/ScrollView.swift",
"components/SecureTextField.swift",
"components/Segmented.swift",
"components/Shape.swift",
"components/Slider.swift",
"components/SplitView.swift",
"components/Stack.swift",
"components/StackStyle.swift",
"components/Stepper.swift",
"components/StepperView.swift",
"components/Switch.swift",
"components/TabView.swift",
"components/Toggle.swift",
"components/View+SwiftUI.swift",
"components/View.swift",
"components/VisualEffectView.swift",
"components/Window.swift",
"components/ZStack.swift",
"components/ZoomableScrollView.swift",
"components/element/Element+Alert.swift",
"components/element/Element+Change.swift",
"components/element/Element+Gestures.swift",
"components/element/Element+Panel.swift",
"components/element/Element+Popover.swift",
"components/element/Element+Sheet.swift",
"components/element/Element+Size.swift",
"components/element/Element.swift",
"components/text-field/NumberField.swift",
"components/text-field/SearchField.swift",
"components/text-field/TextField.swift",
"components/text-field/TokenField.swift",
"fonts/DynamicFont.swift",
"fonts/DynamicFontService.swift",
"fonts/Font.swift",
"presentation/DSFAppKitBuilderAssignableViewController.swift",
"presentation/DSFAppKitBuilderView.swift",
"presentation/DSFAppKitBuilderViewController.swift",
"presentation/SwiftUIPreviews.swift",
"utils/Animations.swift",
"utils/Autolayout+helpers.swift",
"utils/BindingBag.swift",
"utils/CGColor+extensions.swift",
"utils/CGSize+extensions.swift",
"utils/CSFlatButton.swift",
"utils/CenteringClipView.swift",
"utils/CustomValueTransformers.swift",
"utils/EmbeddedLayoutType.swift",
"utils/Logging.swift",
"utils/NSBezierPath+extensions.swift",
"utils/NSColor+extensions.swift",
"utils/NSGestureRecognizer+actionblock.swift",
"utils/NumberFormatter+extensions.swift",
"utils/PaddableTextField.swift",
"utils/ProtectedLock.swift",
"utils/RangeComponentBinder.swift",
"utils/ScrollableTextView.swift",
"utils/Shadow.swift",
"utils/TrackingArea.swift",
"utils/Utilities.swift",
"utils/VerticalSizingTokenField.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.