The Swift Package Index logo.Swift Package Index

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

Build Information

Successful build of RichEditorSwiftUI, reference main (1ac778), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 06:34:06 UTC.

Swift 6 data race errors: 36

Build Command

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

Build Log

 73 | /// The descriptive text that provides more details about the reason for the alert.
 74 | /// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
 75 | @property (copy) NSString *informativeText;
    |                            `- note: mutation of this property is only permitted within the actor
 76 |
 77 | // MARK: - Accessing a Custom Alert Icon
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:196:13: warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
194 |       alert.messageText = title
195 |       alert.informativeText = message
196 |       alert.alertStyle = .informational
    |             `- warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
197 |       alert.addButton(withTitle: "OK")
198 |       alert.addButton(withTitle: "Cancel")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /// Indicates the alert’s severity level. See the `NSAlertStyle` enumeration for the list of alert style constants.
105 | @property NSAlertStyle alertStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /// Specifies whether the alert has a help button.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:197:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
195 |       alert.informativeText = message
196 |       alert.alertStyle = .informational
197 |       alert.addButton(withTitle: "OK")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 |       alert.addButton(withTitle: "Cancel")
199 |
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:198:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
196 |       alert.alertStyle = .informational
197 |       alert.addButton(withTitle: "OK")
198 |       alert.addButton(withTitle: "Cancel")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
199 |
200 |       // Show the alert
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:201:28: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
199 |
200 |       // Show the alert
201 |       let response = alert.runModal()
    |                            `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
202 |
203 |       // Handle actions based on the response
AppKit.NSAlert.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
  |                      `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
3 |
[136/138] Compiling RichEditorSwiftUI RichTextAlertController.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView+Theme.swift:47:27: warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |         ///
46 |         /// You can set a new value to change the global default.
47 |         public static var standard = Self()
   |                           |- warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |     }
49 | #endif
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
    |                  `- warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:23:40: note: add '@preconcurrency' to the 'RichTextViewComponent' conformance to defer isolation checking to run time
 21 |   /// property manually or by using a ``RichTextDataFormat`` that
 22 |   /// supports images.
 23 |   open class RichTextView: NSTextView, RichTextViewComponent {
    |                                        `- note: add '@preconcurrency' to the 'RichTextViewComponent' conformance to defer isolation checking to run time
 24 |
 25 |     // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:36:9: note: requirement 'frame' declared here
 34 |
 35 |     /// The text view's frame.
 36 |     var frame: CGRect { get }
    |         `- note: requirement 'frame' declared here
 37 |
 38 |     /// The style to use when highlighting text in the view.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:36:16: warning: main actor-isolated property 'highlightingStyle' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
 34 |
 35 |     /// The style to use when highlighting text in the view.
 36 |     public var highlightingStyle: RichTextHighlightingStyle = .standard
    |                `- warning: main actor-isolated property 'highlightingStyle' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The image configuration to use by the rich text view.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:39:9: note: requirement 'highlightingStyle' declared here
 37 |
 38 |     /// The style to use when highlighting text in the view.
 39 |     var highlightingStyle: RichTextHighlightingStyle { get set }
    |         `- note: requirement 'highlightingStyle' declared here
 40 |
 41 |     /// Whether or not the text view is the first responder.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:225:16: warning: main actor-isolated property 'isFirstResponder' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
223 |
224 |     /// Whether or not the text view is the first responder.
225 |     public var isFirstResponder: Bool {
    |                `- warning: main actor-isolated property 'isFirstResponder' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
226 |       window?.firstResponder == self
227 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:42:9: note: requirement 'isFirstResponder' declared here
 40 |
 41 |     /// Whether or not the text view is the first responder.
 42 |     var isFirstResponder: Bool { get }
    |         `- note: requirement 'isFirstResponder' declared here
 43 |
 44 |     #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS)
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:198:16: warning: main actor-isolated property 'layoutManagerWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
196 |
197 |     /// The text view's layout manager, if any.
198 |     public var layoutManagerWrapper: NSLayoutManager? {
    |                `- warning: main actor-isolated property 'layoutManagerWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
199 |       layoutManager
200 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:46:13: note: requirement 'layoutManagerWrapper' declared here
 44 |     #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS)
 45 |         /// The text view's layout manager, if any.
 46 |         var layoutManagerWrapper: NSLayoutManager? { get }
    |             `- note: requirement 'layoutManagerWrapper' declared here
 47 |
 48 |         /// The text view's text storage, if any.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:209:16: warning: main actor-isolated property 'textStorageWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
207 |
208 |     /// The text view's text storage, if any.
209 |     public var textStorageWrapper: NSTextStorage? {
    |                `- warning: main actor-isolated property 'textStorageWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
210 |       textStorage
211 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:49:13: note: requirement 'textStorageWrapper' declared here
 47 |
 48 |         /// The text view's text storage, if any.
 49 |         var textStorageWrapper: NSTextStorage? { get }
    |             `- note: requirement 'textStorageWrapper' declared here
 50 |     #endif
 51 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:235:16: warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
233 |
234 |     // Get the rich text that is managed by the view.
235 |     public var mutableAttributedString: NSMutableAttributedString? {
    |                `- warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
236 |       textStorage
237 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:53:9: note: requirement 'mutableAttributedString' declared here
 51 |
 52 |     /// The text view's mutable attributed string, if any.
 53 |     var mutableAttributedString: NSMutableAttributedString? { get }
    |         `- note: requirement 'mutableAttributedString' declared here
 54 |
 55 |     /// The spacing between the text view's edge and its text.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:203:16: warning: main actor-isolated property 'textContentInset' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
201 |
202 |     /// The spacing between the text view edges and its text.
203 |     public var textContentInset: CGSize {
    |                `- warning: main actor-isolated property 'textContentInset' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
204 |       get { textContainerInset }
205 |       set { textContainerInset = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:56:9: note: requirement 'textContentInset' declared here
 54 |
 55 |     /// The spacing between the text view's edge and its text.
 56 |     var textContentInset: CGSize { get set }
    |         `- note: requirement 'textContentInset' declared here
 57 |
 58 |     /// The text view current typing attributes.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:375:59: warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
373 | - (void)setSpellingState:(NSInteger)value range:(NSRange)charRange API_AVAILABLE(macos(10.5));
374 |
375 | @property (copy) NSDictionary<NSAttributedStringKey, id> *typingAttributes;
    |                                                           `- warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
376 |
377 | // These multiple-range methods supersede the corresponding single-range methods.  For the first method, the affectedRanges argument obeys the same restrictions as the argument to setSelectedRanges:, and the replacementStrings array should either be nil (for attribute-only changes) or have the same number of elements as affectedRanges.  For the remaining three methods, the return values obey the same restrictions as that for selectedRanges, except that they will be nil if the corresponding change is not permitted, where the corresponding single-range methods return (NSNotFound, 0).
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:59:9: note: requirement 'typingAttributes' declared here
 57 |
 58 |     /// The text view current typing attributes.
 59 |     var typingAttributes: RichTextAttributes { get set }
    |         `- note: requirement 'typingAttributes' declared here
 60 |
 61 |     // MARK: - Setup
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:107:15: warning: main actor-isolated instance method 'setup(with:format:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
105 |      - format: The rich text format to edit.
106 |      */
107 |     open func setup(
    |               |- warning: main actor-isolated instance method 'setup(with:format:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'setup(with:format:)' to make this instance method not isolated to the actor
108 |       with text: NSAttributedString,
109 |       format: RichTextDataFormat?
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:63:10: note: mark the protocol requirement 'setup(with:format:)' 'async' to allow actor-isolated conformances
 61 |     // MARK: - Setup
 62 |     /// Setup the view with a text and data format.
 63 |     func setup(
    |          `- note: mark the protocol requirement 'setup(with:format:)' 'async' to allow actor-isolated conformances
 64 |         with text: NSAttributedString,
 65 |         format: RichTextDataFormat?
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:121:17: warning: main actor-isolated instance method 'setup(with:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
119 |     }
120 |
121 |     public func setup(with richText: RichText) {
    |                 |- warning: main actor-isolated instance method 'setup(with:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |                 `- note: add 'nonisolated' to 'setup(with:)' to make this instance method not isolated to the actor
122 |       var tempSpans: [RichTextSpanInternal] = []
123 |       var text = ""
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:68:10: note: mark the protocol requirement 'setup(with:)' 'async' to allow actor-isolated conformances
 66 |     )
 67 |
 68 |     func setup(
    |          `- note: mark the protocol requirement 'setup(with:)' 'async' to allow actor-isolated conformances
 69 |         with text: RichText
 70 |     )
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:154:15: warning: main actor-isolated instance method 'alert(title:message:buttonTitle:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
152 |      - buttonTitle: The alert button title.
153 |      */
154 |     open func alert(title: String, message: String, buttonTitle: String) {
    |               |- warning: main actor-isolated instance method 'alert(title:message:buttonTitle:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'alert(title:message:buttonTitle:)' to make this instance method not isolated to the actor
155 |       let alert = NSAlert()
156 |       alert.messageText = title
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:75:10: note: mark the protocol requirement 'alert(title:message:buttonTitle:)' 'async' to allow actor-isolated conformances
 73 |
 74 |     /// Show an alert with a title, message and button text.
 75 |     func alert(title: String, message: String, buttonTitle: String)
    |          `- note: mark the protocol requirement 'alert(title:message:buttonTitle:)' 'async' to allow actor-isolated conformances
 76 |
 77 |     /// Copy the current selection.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:164:15: warning: main actor-isolated instance method 'copySelection()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
162 |
163 |     /// Copy the current selection.
164 |     open func copySelection() {
    |               |- warning: main actor-isolated instance method 'copySelection()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'copySelection()' to make this instance method not isolated to the actor
165 |       let pasteboard = NSPasteboard.general
166 |       let range = safeRange(for: selectedRange)
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:78:10: note: mark the protocol requirement 'copySelection()' 'async' to allow actor-isolated conformances
 76 |
 77 |     /// Copy the current selection.
 78 |     func copySelection()
    |          `- note: mark the protocol requirement 'copySelection()' 'async' to allow actor-isolated conformances
 79 |
 80 |     /// Try to redo the latest undone change.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:173:15: warning: main actor-isolated instance method 'redoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
171 |
172 |     /// Try to redo the latest undone change.
173 |     open func redoLatestChange() {
    |               |- warning: main actor-isolated instance method 'redoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'redoLatestChange()' to make this instance method not isolated to the actor
174 |       undoManager?.redo()
175 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:81:10: note: mark the protocol requirement 'redoLatestChange()' 'async' to allow actor-isolated conformances
 79 |
 80 |     /// Try to redo the latest undone change.
 81 |     func redoLatestChange()
    |          `- note: mark the protocol requirement 'redoLatestChange()' 'async' to allow actor-isolated conformances
 82 |
 83 |     /// Scroll to a certain range.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:178:15: warning: main actor-isolated instance method 'scroll(to:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
176 |
177 |     /// Scroll to a certain range.
178 |     open func scroll(to range: NSRange) {
    |               |- warning: main actor-isolated instance method 'scroll(to:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'scroll(to:)' to make this instance method not isolated to the actor
179 |       scrollRangeToVisible(range)
180 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:84:10: note: mark the protocol requirement 'scroll(to:)' 'async' to allow actor-isolated conformances
 82 |
 83 |     /// Scroll to a certain range.
 84 |     func scroll(to range: NSRange)
    |          `- note: mark the protocol requirement 'scroll(to:)' 'async' to allow actor-isolated conformances
 85 |
 86 |     /// Set the rich text in the text view.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:183:15: warning: main actor-isolated instance method 'setRichText' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
181 |
182 |     /// Set the rich text in the text view.
183 |     open func setRichText(_ text: NSAttributedString) {
    |               |- warning: main actor-isolated instance method 'setRichText' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'setRichText' to make this instance method not isolated to the actor
184 |       attributedString = text
185 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:87:10: note: mark the protocol requirement 'setRichText' 'async' to allow actor-isolated conformances
 85 |
 86 |     /// Set the rich text in the text view.
 87 |     func setRichText(_ text: NSAttributedString)
    |          `- note: mark the protocol requirement 'setRichText' 'async' to allow actor-isolated conformances
 88 |
 89 |     /// Set the selected range in the text view.
AppKit.NSTextView.setSelectedRange:2:22: warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
  |                      |- warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
  |                      `- note: add 'nonisolated' to 'setSelectedRange' to make this instance method not isolated to the actor
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:90:10: note: mark the protocol requirement 'setSelectedRange' 'async' to allow actor-isolated conformances
 88 |
 89 |     /// Set the selected range in the text view.
 90 |     func setSelectedRange(_ range: NSRange)
    |          `- note: mark the protocol requirement 'setSelectedRange' 'async' to allow actor-isolated conformances
 91 |
 92 |     /// Undo the latest change.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:188:15: warning: main actor-isolated instance method 'undoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
186 |
187 |     /// Undo the latest change.
188 |     open func undoLatestChange() {
    |               |- warning: main actor-isolated instance method 'undoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'undoLatestChange()' to make this instance method not isolated to the actor
189 |       undoManager?.undo()
190 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:93:10: note: mark the protocol requirement 'undoLatestChange()' 'async' to allow actor-isolated conformances
 91 |
 92 |     /// Undo the latest change.
 93 |     func undoLatestChange()
    |          `- note: mark the protocol requirement 'undoLatestChange()' 'async' to allow actor-isolated conformances
 94 | }
 95 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextPresenter'; this is an error in the Swift 6 language mode
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextPresenter'; this is an error in the Swift 6 language mode
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/BaseFoundation/RichTextPresenter.swift:19:9: note: requirement 'selectedRange' declared here
17 |
18 |     /// Get the currently selected range.
19 |     var selectedRange: NSRange { get }
   |         `- note: requirement 'selectedRange' declared here
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:219:16: warning: main actor-isolated property 'attributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextReader'; this is an error in the Swift 6 language mode
217 |
218 |     /// Get the rich text that is managed by the view.
219 |     public var attributedString: NSAttributedString {
    |                `- warning: main actor-isolated property 'attributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextReader'; this is an error in the Swift 6 language mode
220 |       get { attributedString() }
221 |       set { textStorage?.setAttributedString(newValue) }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Helper/RichTextReader.swift:18:9: note: requirement 'attributedString' declared here
16 |
17 |     /// The attributed string to use as rich text.
18 |     var attributedString: NSAttributedString { get }
   |         `- note: requirement 'attributedString' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:235:16: warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextWriter'; this is an error in the Swift 6 language mode
233 |
234 |     // Get the rich text that is managed by the view.
235 |     public var mutableAttributedString: NSMutableAttributedString? {
    |                `- warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextWriter'; this is an error in the Swift 6 language mode
236 |       textStorage
237 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Attributes/RichTextWriter.swift:18:9: note: requirement 'mutableAttributedString' declared here
16 |
17 |     /// Get the writable attributed string for the type.
18 |     var mutableAttributedString: NSMutableAttributedString? { get }
   |         `- note: requirement 'mutableAttributedString' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:132:20: warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 |     // Root Window or ViewController
131 |     internal var rootWindow: NSWindow? {
132 |       return NSApp.mainWindow
    |                    `- warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
133 |     }
134 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:201:48: note: property declared here
199 | - (nullable NSWindow *)windowWithWindowNumber:(NSInteger)windowNum;
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
    |                                                `- note: property declared here
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
203 | @property (getter=isActive, readonly) BOOL active;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:132:14: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 |     // Root Window or ViewController
131 |     internal var rootWindow: NSWindow? {
132 |       return NSApp.mainWindow
    |              `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
133 |     }
134 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
    |                                                          `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:148:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
146 |
147 |       // Create the alert
148 |       let alert = NSAlert()
    |                   `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
149 |       alert.messageText = title
150 |       alert.informativeText = message
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 64 |
 65 | + (void)initialize;
 66 | - (instancetype)init
    | `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
 68 |     NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:149:13: warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
147 |       // Create the alert
148 |       let alert = NSAlert()
149 |       alert.messageText = title
    |             `- warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 |       alert.informativeText = message
151 |       alert.alertStyle = .informational
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:71:28: note: mutation of this property is only permitted within the actor
 69 | /// The text that is displayed prominently in the alert.
 70 | /// - Note: Use this string to get the user’s attention and communicate the reason for displaying the alert.
 71 | @property (copy) NSString *messageText;
    |                            `- note: mutation of this property is only permitted within the actor
 72 |
 73 | /// The descriptive text that provides more details about the reason for the alert.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:150:13: warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
148 |       let alert = NSAlert()
149 |       alert.messageText = title
150 |       alert.informativeText = message
    |             `- warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 |       alert.alertStyle = .informational
152 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:75:28: note: mutation of this property is only permitted within the actor
 73 | /// The descriptive text that provides more details about the reason for the alert.
 74 | /// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
 75 | @property (copy) NSString *informativeText;
    |                            `- note: mutation of this property is only permitted within the actor
 76 |
 77 | // MARK: - Accessing a Custom Alert Icon
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:151:13: warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
149 |       alert.messageText = title
150 |       alert.informativeText = message
151 |       alert.alertStyle = .informational
    |             `- warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
152 |
153 |       // Create an input text field
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /// Indicates the alert’s severity level. See the `NSAlertStyle` enumeration for the list of alert style constants.
105 | @property NSAlertStyle alertStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /// Specifies whether the alert has a help button.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:154:23: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
152 |
153 |       // Create an input text field
154 |       let textField = NSTextField(
    |                       `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
155 |         frame: NSRect(x: 0, y: 0, width: 200, height: 24))
156 |       textField.placeholderString = placeholder
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:21:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
 19 | @interface NSControl : NSView
 20 |
 21 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
    | |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
    | `- note: main actor isolation inferred from inheritance from class 'NSControl'
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:156:17: warning: main actor-isolated property 'placeholderString' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
154 |       let textField = NSTextField(
155 |         frame: NSRect(x: 0, y: 0, width: 200, height: 24))
156 |       textField.placeholderString = placeholder
    |                 `- warning: main actor-isolated property 'placeholderString' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 |       textField.stringValue = defaultText ?? ""
158 |       alert.accessoryView = textField
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h:22:38: note: mutation of this property is only permitted within the actor
 20 | @interface NSTextField : NSControl <NSUserInterfaceValidations, NSAccessibilityNavigableStaticText, NSTextContent>
 21 |
 22 | @property (nullable, copy) NSString *placeholderString API_AVAILABLE(macos(10.10));
    |                                      `- note: mutation of this property is only permitted within the actor
 23 | @property (nullable, copy) NSAttributedString *placeholderAttributedString API_AVAILABLE(macos(10.10));
 24 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:157:17: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
155 |         frame: NSRect(x: 0, y: 0, width: 200, height: 24))
156 |       textField.placeholderString = placeholder
157 |       textField.stringValue = defaultText ?? ""
    |                 `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
158 |       alert.accessoryView = textField
159 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
 34 |
 35 | @property (nullable, copy) id  /* id<NSCopying> */ objectValue;
 36 | @property (copy) NSString *stringValue;
    |                            `- note: mutation of this property is only permitted within the actor
 37 | @property (copy) NSAttributedString *attributedStringValue;
 38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:158:13: warning: main actor-isolated property 'accessoryView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
156 |       textField.placeholderString = placeholder
157 |       textField.stringValue = defaultText ?? ""
158 |       alert.accessoryView = textField
    |             `- warning: main actor-isolated property 'accessoryView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
159 |
160 |       // Show real-time text updates
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:127:38: note: mutation of this property is only permitted within the actor
125 |
126 | /// The accessory view displayed in the alert, placed between the informative text or suppression checkbox (if present) and the response buttons. Before changing the location of the accessory view, first call the `-layout` method.
127 | @property (nullable, strong) NSView *accessoryView API_AVAILABLE(macos(10.5));
    |                                      `- note: mutation of this property is only permitted within the actor
128 |
129 | /// Specifies that the alert must do immediate layout instead of lazily just before display.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:162: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
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
160 |       // Show real-time text updates
161 |       if onTextChange != nil {
162 |         textField.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
163 |         textField.action = #selector(self.textFieldDidChange(_:))
164 |       }
/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/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:163: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
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
161 |       if onTextChange != nil {
162 |         textField.target = self
163 |         textField.action = #selector(self.textFieldDidChange(_:))
    |                   `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |       }
165 |
/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/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:167:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
165 |
166 |       // Add the OK and Cancel buttons
167 |       alert.addButton(withTitle: "OK")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 |       alert.addButton(withTitle: "Cancel")
169 |
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:168:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
166 |       // Add the OK and Cancel buttons
167 |       alert.addButton(withTitle: "OK")
168 |       alert.addButton(withTitle: "Cancel")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 |
170 |       // Show the alert
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:171:28: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
169 |
170 |       // Show the alert
171 |       let response = alert.runModal()
    |                            `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 |
173 |       // Handle completion based on the response
AppKit.NSAlert.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
  |                      `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:175:30: warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
173 |       // Handle completion based on the response
174 |       if response == .alertFirstButtonReturn {
175 |         completion(textField.stringValue)
    |                              `- warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
176 |       } else {
177 |         completion(nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: property declared here
 34 |
 35 | @property (nullable, copy) id  /* id<NSCopying> */ objectValue;
 36 | @property (copy) NSString *stringValue;
    |                            `- note: property declared here
 37 | @property (copy) NSAttributedString *attributedStringValue;
 38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:183:31: warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
179 |     }
180 |
181 |     @objc private func textFieldDidChange(_ textField: NSTextField) {
    |                        `- note: add '@MainActor' to make instance method 'textFieldDidChange' part of global actor 'MainActor'
182 |       // Call the closure with the updated text
183 |       onTextChange?(textField.stringValue)
    |                               `- warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
184 |     }
185 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: property declared here
 34 |
 35 | @property (nullable, copy) id  /* id<NSCopying> */ objectValue;
 36 | @property (copy) NSString *stringValue;
    |                            `- note: property declared here
 37 | @property (copy) NSAttributedString *attributedStringValue;
 38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:193:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
191 |       onCancel: (() -> Void)? = nil
192 |     ) {
193 |       let alert = NSAlert()
    |                   `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 |       alert.messageText = title
195 |       alert.informativeText = message
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 64 |
 65 | + (void)initialize;
 66 | - (instancetype)init
    | `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
 68 |     NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:194:13: warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
192 |     ) {
193 |       let alert = NSAlert()
194 |       alert.messageText = title
    |             `- warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
195 |       alert.informativeText = message
196 |       alert.alertStyle = .informational
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:71:28: note: mutation of this property is only permitted within the actor
 69 | /// The text that is displayed prominently in the alert.
 70 | /// - Note: Use this string to get the user’s attention and communicate the reason for displaying the alert.
 71 | @property (copy) NSString *messageText;
    |                            `- note: mutation of this property is only permitted within the actor
 72 |
 73 | /// The descriptive text that provides more details about the reason for the alert.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:195:13: warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
193 |       let alert = NSAlert()
194 |       alert.messageText = title
195 |       alert.informativeText = message
    |             `- warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
196 |       alert.alertStyle = .informational
197 |       alert.addButton(withTitle: "OK")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:75:28: note: mutation of this property is only permitted within the actor
 73 | /// The descriptive text that provides more details about the reason for the alert.
 74 | /// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
 75 | @property (copy) NSString *informativeText;
    |                            `- note: mutation of this property is only permitted within the actor
 76 |
 77 | // MARK: - Accessing a Custom Alert Icon
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:196:13: warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
194 |       alert.messageText = title
195 |       alert.informativeText = message
196 |       alert.alertStyle = .informational
    |             `- warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
197 |       alert.addButton(withTitle: "OK")
198 |       alert.addButton(withTitle: "Cancel")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /// Indicates the alert’s severity level. See the `NSAlertStyle` enumeration for the list of alert style constants.
105 | @property NSAlertStyle alertStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /// Specifies whether the alert has a help button.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:197:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
195 |       alert.informativeText = message
196 |       alert.alertStyle = .informational
197 |       alert.addButton(withTitle: "OK")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 |       alert.addButton(withTitle: "Cancel")
199 |
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:198:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
196 |       alert.alertStyle = .informational
197 |       alert.addButton(withTitle: "OK")
198 |       alert.addButton(withTitle: "Cancel")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
199 |
200 |       // Show the alert
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:201:28: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
199 |
200 |       // Show the alert
201 |       let response = alert.runModal()
    |                            `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
202 |
203 |       // Handle actions based on the response
AppKit.NSAlert.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
  |                      `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
3 |
[137/138] Compiling RichEditorSwiftUI RichTextLabelValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView+Theme.swift:47:27: warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |         ///
46 |         /// You can set a new value to change the global default.
47 |         public static var standard = Self()
   |                           |- warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |     }
49 | #endif
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
    |                  `- warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:23:40: note: add '@preconcurrency' to the 'RichTextViewComponent' conformance to defer isolation checking to run time
 21 |   /// property manually or by using a ``RichTextDataFormat`` that
 22 |   /// supports images.
 23 |   open class RichTextView: NSTextView, RichTextViewComponent {
    |                                        `- note: add '@preconcurrency' to the 'RichTextViewComponent' conformance to defer isolation checking to run time
 24 |
 25 |     // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:36:9: note: requirement 'frame' declared here
 34 |
 35 |     /// The text view's frame.
 36 |     var frame: CGRect { get }
    |         `- note: requirement 'frame' declared here
 37 |
 38 |     /// The style to use when highlighting text in the view.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:36:16: warning: main actor-isolated property 'highlightingStyle' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
 34 |
 35 |     /// The style to use when highlighting text in the view.
 36 |     public var highlightingStyle: RichTextHighlightingStyle = .standard
    |                `- warning: main actor-isolated property 'highlightingStyle' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The image configuration to use by the rich text view.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:39:9: note: requirement 'highlightingStyle' declared here
 37 |
 38 |     /// The style to use when highlighting text in the view.
 39 |     var highlightingStyle: RichTextHighlightingStyle { get set }
    |         `- note: requirement 'highlightingStyle' declared here
 40 |
 41 |     /// Whether or not the text view is the first responder.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:225:16: warning: main actor-isolated property 'isFirstResponder' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
223 |
224 |     /// Whether or not the text view is the first responder.
225 |     public var isFirstResponder: Bool {
    |                `- warning: main actor-isolated property 'isFirstResponder' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
226 |       window?.firstResponder == self
227 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:42:9: note: requirement 'isFirstResponder' declared here
 40 |
 41 |     /// Whether or not the text view is the first responder.
 42 |     var isFirstResponder: Bool { get }
    |         `- note: requirement 'isFirstResponder' declared here
 43 |
 44 |     #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS)
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:198:16: warning: main actor-isolated property 'layoutManagerWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
196 |
197 |     /// The text view's layout manager, if any.
198 |     public var layoutManagerWrapper: NSLayoutManager? {
    |                `- warning: main actor-isolated property 'layoutManagerWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
199 |       layoutManager
200 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:46:13: note: requirement 'layoutManagerWrapper' declared here
 44 |     #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS)
 45 |         /// The text view's layout manager, if any.
 46 |         var layoutManagerWrapper: NSLayoutManager? { get }
    |             `- note: requirement 'layoutManagerWrapper' declared here
 47 |
 48 |         /// The text view's text storage, if any.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:209:16: warning: main actor-isolated property 'textStorageWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
207 |
208 |     /// The text view's text storage, if any.
209 |     public var textStorageWrapper: NSTextStorage? {
    |                `- warning: main actor-isolated property 'textStorageWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
210 |       textStorage
211 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:49:13: note: requirement 'textStorageWrapper' declared here
 47 |
 48 |         /// The text view's text storage, if any.
 49 |         var textStorageWrapper: NSTextStorage? { get }
    |             `- note: requirement 'textStorageWrapper' declared here
 50 |     #endif
 51 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:235:16: warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
233 |
234 |     // Get the rich text that is managed by the view.
235 |     public var mutableAttributedString: NSMutableAttributedString? {
    |                `- warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
236 |       textStorage
237 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:53:9: note: requirement 'mutableAttributedString' declared here
 51 |
 52 |     /// The text view's mutable attributed string, if any.
 53 |     var mutableAttributedString: NSMutableAttributedString? { get }
    |         `- note: requirement 'mutableAttributedString' declared here
 54 |
 55 |     /// The spacing between the text view's edge and its text.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:203:16: warning: main actor-isolated property 'textContentInset' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
201 |
202 |     /// The spacing between the text view edges and its text.
203 |     public var textContentInset: CGSize {
    |                `- warning: main actor-isolated property 'textContentInset' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
204 |       get { textContainerInset }
205 |       set { textContainerInset = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:56:9: note: requirement 'textContentInset' declared here
 54 |
 55 |     /// The spacing between the text view's edge and its text.
 56 |     var textContentInset: CGSize { get set }
    |         `- note: requirement 'textContentInset' declared here
 57 |
 58 |     /// The text view current typing attributes.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:375:59: warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
373 | - (void)setSpellingState:(NSInteger)value range:(NSRange)charRange API_AVAILABLE(macos(10.5));
374 |
375 | @property (copy) NSDictionary<NSAttributedStringKey, id> *typingAttributes;
    |                                                           `- warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
376 |
377 | // These multiple-range methods supersede the corresponding single-range methods.  For the first method, the affectedRanges argument obeys the same restrictions as the argument to setSelectedRanges:, and the replacementStrings array should either be nil (for attribute-only changes) or have the same number of elements as affectedRanges.  For the remaining three methods, the return values obey the same restrictions as that for selectedRanges, except that they will be nil if the corresponding change is not permitted, where the corresponding single-range methods return (NSNotFound, 0).
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:59:9: note: requirement 'typingAttributes' declared here
 57 |
 58 |     /// The text view current typing attributes.
 59 |     var typingAttributes: RichTextAttributes { get set }
    |         `- note: requirement 'typingAttributes' declared here
 60 |
 61 |     // MARK: - Setup
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:107:15: warning: main actor-isolated instance method 'setup(with:format:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
105 |      - format: The rich text format to edit.
106 |      */
107 |     open func setup(
    |               |- warning: main actor-isolated instance method 'setup(with:format:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'setup(with:format:)' to make this instance method not isolated to the actor
108 |       with text: NSAttributedString,
109 |       format: RichTextDataFormat?
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:63:10: note: mark the protocol requirement 'setup(with:format:)' 'async' to allow actor-isolated conformances
 61 |     // MARK: - Setup
 62 |     /// Setup the view with a text and data format.
 63 |     func setup(
    |          `- note: mark the protocol requirement 'setup(with:format:)' 'async' to allow actor-isolated conformances
 64 |         with text: NSAttributedString,
 65 |         format: RichTextDataFormat?
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:121:17: warning: main actor-isolated instance method 'setup(with:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
119 |     }
120 |
121 |     public func setup(with richText: RichText) {
    |                 |- warning: main actor-isolated instance method 'setup(with:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |                 `- note: add 'nonisolated' to 'setup(with:)' to make this instance method not isolated to the actor
122 |       var tempSpans: [RichTextSpanInternal] = []
123 |       var text = ""
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:68:10: note: mark the protocol requirement 'setup(with:)' 'async' to allow actor-isolated conformances
 66 |     )
 67 |
 68 |     func setup(
    |          `- note: mark the protocol requirement 'setup(with:)' 'async' to allow actor-isolated conformances
 69 |         with text: RichText
 70 |     )
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:154:15: warning: main actor-isolated instance method 'alert(title:message:buttonTitle:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
152 |      - buttonTitle: The alert button title.
153 |      */
154 |     open func alert(title: String, message: String, buttonTitle: String) {
    |               |- warning: main actor-isolated instance method 'alert(title:message:buttonTitle:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'alert(title:message:buttonTitle:)' to make this instance method not isolated to the actor
155 |       let alert = NSAlert()
156 |       alert.messageText = title
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:75:10: note: mark the protocol requirement 'alert(title:message:buttonTitle:)' 'async' to allow actor-isolated conformances
 73 |
 74 |     /// Show an alert with a title, message and button text.
 75 |     func alert(title: String, message: String, buttonTitle: String)
    |          `- note: mark the protocol requirement 'alert(title:message:buttonTitle:)' 'async' to allow actor-isolated conformances
 76 |
 77 |     /// Copy the current selection.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:164:15: warning: main actor-isolated instance method 'copySelection()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
162 |
163 |     /// Copy the current selection.
164 |     open func copySelection() {
    |               |- warning: main actor-isolated instance method 'copySelection()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'copySelection()' to make this instance method not isolated to the actor
165 |       let pasteboard = NSPasteboard.general
166 |       let range = safeRange(for: selectedRange)
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:78:10: note: mark the protocol requirement 'copySelection()' 'async' to allow actor-isolated conformances
 76 |
 77 |     /// Copy the current selection.
 78 |     func copySelection()
    |          `- note: mark the protocol requirement 'copySelection()' 'async' to allow actor-isolated conformances
 79 |
 80 |     /// Try to redo the latest undone change.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:173:15: warning: main actor-isolated instance method 'redoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
171 |
172 |     /// Try to redo the latest undone change.
173 |     open func redoLatestChange() {
    |               |- warning: main actor-isolated instance method 'redoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'redoLatestChange()' to make this instance method not isolated to the actor
174 |       undoManager?.redo()
175 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:81:10: note: mark the protocol requirement 'redoLatestChange()' 'async' to allow actor-isolated conformances
 79 |
 80 |     /// Try to redo the latest undone change.
 81 |     func redoLatestChange()
    |          `- note: mark the protocol requirement 'redoLatestChange()' 'async' to allow actor-isolated conformances
 82 |
 83 |     /// Scroll to a certain range.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:178:15: warning: main actor-isolated instance method 'scroll(to:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
176 |
177 |     /// Scroll to a certain range.
178 |     open func scroll(to range: NSRange) {
    |               |- warning: main actor-isolated instance method 'scroll(to:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'scroll(to:)' to make this instance method not isolated to the actor
179 |       scrollRangeToVisible(range)
180 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:84:10: note: mark the protocol requirement 'scroll(to:)' 'async' to allow actor-isolated conformances
 82 |
 83 |     /// Scroll to a certain range.
 84 |     func scroll(to range: NSRange)
    |          `- note: mark the protocol requirement 'scroll(to:)' 'async' to allow actor-isolated conformances
 85 |
 86 |     /// Set the rich text in the text view.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:183:15: warning: main actor-isolated instance method 'setRichText' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
181 |
182 |     /// Set the rich text in the text view.
183 |     open func setRichText(_ text: NSAttributedString) {
    |               |- warning: main actor-isolated instance method 'setRichText' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'setRichText' to make this instance method not isolated to the actor
184 |       attributedString = text
185 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:87:10: note: mark the protocol requirement 'setRichText' 'async' to allow actor-isolated conformances
 85 |
 86 |     /// Set the rich text in the text view.
 87 |     func setRichText(_ text: NSAttributedString)
    |          `- note: mark the protocol requirement 'setRichText' 'async' to allow actor-isolated conformances
 88 |
 89 |     /// Set the selected range in the text view.
AppKit.NSTextView.setSelectedRange:2:22: warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
  |                      |- warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
  |                      `- note: add 'nonisolated' to 'setSelectedRange' to make this instance method not isolated to the actor
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:90:10: note: mark the protocol requirement 'setSelectedRange' 'async' to allow actor-isolated conformances
 88 |
 89 |     /// Set the selected range in the text view.
 90 |     func setSelectedRange(_ range: NSRange)
    |          `- note: mark the protocol requirement 'setSelectedRange' 'async' to allow actor-isolated conformances
 91 |
 92 |     /// Undo the latest change.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:188:15: warning: main actor-isolated instance method 'undoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
186 |
187 |     /// Undo the latest change.
188 |     open func undoLatestChange() {
    |               |- warning: main actor-isolated instance method 'undoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'undoLatestChange()' to make this instance method not isolated to the actor
189 |       undoManager?.undo()
190 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:93:10: note: mark the protocol requirement 'undoLatestChange()' 'async' to allow actor-isolated conformances
 91 |
 92 |     /// Undo the latest change.
 93 |     func undoLatestChange()
    |          `- note: mark the protocol requirement 'undoLatestChange()' 'async' to allow actor-isolated conformances
 94 | }
 95 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextPresenter'; this is an error in the Swift 6 language mode
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextPresenter'; this is an error in the Swift 6 language mode
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/BaseFoundation/RichTextPresenter.swift:19:9: note: requirement 'selectedRange' declared here
17 |
18 |     /// Get the currently selected range.
19 |     var selectedRange: NSRange { get }
   |         `- note: requirement 'selectedRange' declared here
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:219:16: warning: main actor-isolated property 'attributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextReader'; this is an error in the Swift 6 language mode
217 |
218 |     /// Get the rich text that is managed by the view.
219 |     public var attributedString: NSAttributedString {
    |                `- warning: main actor-isolated property 'attributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextReader'; this is an error in the Swift 6 language mode
220 |       get { attributedString() }
221 |       set { textStorage?.setAttributedString(newValue) }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Helper/RichTextReader.swift:18:9: note: requirement 'attributedString' declared here
16 |
17 |     /// The attributed string to use as rich text.
18 |     var attributedString: NSAttributedString { get }
   |         `- note: requirement 'attributedString' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:235:16: warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextWriter'; this is an error in the Swift 6 language mode
233 |
234 |     // Get the rich text that is managed by the view.
235 |     public var mutableAttributedString: NSMutableAttributedString? {
    |                `- warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextWriter'; this is an error in the Swift 6 language mode
236 |       textStorage
237 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Attributes/RichTextWriter.swift:18:9: note: requirement 'mutableAttributedString' declared here
16 |
17 |     /// Get the writable attributed string for the type.
18 |     var mutableAttributedString: NSMutableAttributedString? { get }
   |         `- note: requirement 'mutableAttributedString' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:132:20: warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 |     // Root Window or ViewController
131 |     internal var rootWindow: NSWindow? {
132 |       return NSApp.mainWindow
    |                    `- warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
133 |     }
134 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:201:48: note: property declared here
199 | - (nullable NSWindow *)windowWithWindowNumber:(NSInteger)windowNum;
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
    |                                                `- note: property declared here
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
203 | @property (getter=isActive, readonly) BOOL active;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:132:14: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 |     // Root Window or ViewController
131 |     internal var rootWindow: NSWindow? {
132 |       return NSApp.mainWindow
    |              `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
133 |     }
134 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
    |                                                          `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:148:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
146 |
147 |       // Create the alert
148 |       let alert = NSAlert()
    |                   `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
149 |       alert.messageText = title
150 |       alert.informativeText = message
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 64 |
 65 | + (void)initialize;
 66 | - (instancetype)init
    | `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
 68 |     NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:149:13: warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
147 |       // Create the alert
148 |       let alert = NSAlert()
149 |       alert.messageText = title
    |             `- warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 |       alert.informativeText = message
151 |       alert.alertStyle = .informational
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:71:28: note: mutation of this property is only permitted within the actor
 69 | /// The text that is displayed prominently in the alert.
 70 | /// - Note: Use this string to get the user’s attention and communicate the reason for displaying the alert.
 71 | @property (copy) NSString *messageText;
    |                            `- note: mutation of this property is only permitted within the actor
 72 |
 73 | /// The descriptive text that provides more details about the reason for the alert.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:150:13: warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
148 |       let alert = NSAlert()
149 |       alert.messageText = title
150 |       alert.informativeText = message
    |             `- warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 |       alert.alertStyle = .informational
152 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:75:28: note: mutation of this property is only permitted within the actor
 73 | /// The descriptive text that provides more details about the reason for the alert.
 74 | /// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
 75 | @property (copy) NSString *informativeText;
    |                            `- note: mutation of this property is only permitted within the actor
 76 |
 77 | // MARK: - Accessing a Custom Alert Icon
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:151:13: warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
149 |       alert.messageText = title
150 |       alert.informativeText = message
151 |       alert.alertStyle = .informational
    |             `- warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
152 |
153 |       // Create an input text field
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /// Indicates the alert’s severity level. See the `NSAlertStyle` enumeration for the list of alert style constants.
105 | @property NSAlertStyle alertStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /// Specifies whether the alert has a help button.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:154:23: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
152 |
153 |       // Create an input text field
154 |       let textField = NSTextField(
    |                       `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
155 |         frame: NSRect(x: 0, y: 0, width: 200, height: 24))
156 |       textField.placeholderString = placeholder
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:21:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
 19 | @interface NSControl : NSView
 20 |
 21 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
    | |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
    | `- note: main actor isolation inferred from inheritance from class 'NSControl'
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:156:17: warning: main actor-isolated property 'placeholderString' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
154 |       let textField = NSTextField(
155 |         frame: NSRect(x: 0, y: 0, width: 200, height: 24))
156 |       textField.placeholderString = placeholder
    |                 `- warning: main actor-isolated property 'placeholderString' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 |       textField.stringValue = defaultText ?? ""
158 |       alert.accessoryView = textField
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h:22:38: note: mutation of this property is only permitted within the actor
 20 | @interface NSTextField : NSControl <NSUserInterfaceValidations, NSAccessibilityNavigableStaticText, NSTextContent>
 21 |
 22 | @property (nullable, copy) NSString *placeholderString API_AVAILABLE(macos(10.10));
    |                                      `- note: mutation of this property is only permitted within the actor
 23 | @property (nullable, copy) NSAttributedString *placeholderAttributedString API_AVAILABLE(macos(10.10));
 24 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:157:17: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
155 |         frame: NSRect(x: 0, y: 0, width: 200, height: 24))
156 |       textField.placeholderString = placeholder
157 |       textField.stringValue = defaultText ?? ""
    |                 `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
158 |       alert.accessoryView = textField
159 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
 34 |
 35 | @property (nullable, copy) id  /* id<NSCopying> */ objectValue;
 36 | @property (copy) NSString *stringValue;
    |                            `- note: mutation of this property is only permitted within the actor
 37 | @property (copy) NSAttributedString *attributedStringValue;
 38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:158:13: warning: main actor-isolated property 'accessoryView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
156 |       textField.placeholderString = placeholder
157 |       textField.stringValue = defaultText ?? ""
158 |       alert.accessoryView = textField
    |             `- warning: main actor-isolated property 'accessoryView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
159 |
160 |       // Show real-time text updates
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:127:38: note: mutation of this property is only permitted within the actor
125 |
126 | /// The accessory view displayed in the alert, placed between the informative text or suppression checkbox (if present) and the response buttons. Before changing the location of the accessory view, first call the `-layout` method.
127 | @property (nullable, strong) NSView *accessoryView API_AVAILABLE(macos(10.5));
    |                                      `- note: mutation of this property is only permitted within the actor
128 |
129 | /// Specifies that the alert must do immediate layout instead of lazily just before display.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:162: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
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
160 |       // Show real-time text updates
161 |       if onTextChange != nil {
162 |         textField.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
163 |         textField.action = #selector(self.textFieldDidChange(_:))
164 |       }
/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/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:163: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
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
161 |       if onTextChange != nil {
162 |         textField.target = self
163 |         textField.action = #selector(self.textFieldDidChange(_:))
    |                   `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |       }
165 |
/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/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:167:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
165 |
166 |       // Add the OK and Cancel buttons
167 |       alert.addButton(withTitle: "OK")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 |       alert.addButton(withTitle: "Cancel")
169 |
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:168:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
166 |       // Add the OK and Cancel buttons
167 |       alert.addButton(withTitle: "OK")
168 |       alert.addButton(withTitle: "Cancel")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 |
170 |       // Show the alert
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:171:28: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
169 |
170 |       // Show the alert
171 |       let response = alert.runModal()
    |                            `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 |
173 |       // Handle completion based on the response
AppKit.NSAlert.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
  |                      `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:175:30: warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
173 |       // Handle completion based on the response
174 |       if response == .alertFirstButtonReturn {
175 |         completion(textField.stringValue)
    |                              `- warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
176 |       } else {
177 |         completion(nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: property declared here
 34 |
 35 | @property (nullable, copy) id  /* id<NSCopying> */ objectValue;
 36 | @property (copy) NSString *stringValue;
    |                            `- note: property declared here
 37 | @property (copy) NSAttributedString *attributedStringValue;
 38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:183:31: warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
179 |     }
180 |
181 |     @objc private func textFieldDidChange(_ textField: NSTextField) {
    |                        `- note: add '@MainActor' to make instance method 'textFieldDidChange' part of global actor 'MainActor'
182 |       // Call the closure with the updated text
183 |       onTextChange?(textField.stringValue)
    |                               `- warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
184 |     }
185 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: property declared here
 34 |
 35 | @property (nullable, copy) id  /* id<NSCopying> */ objectValue;
 36 | @property (copy) NSString *stringValue;
    |                            `- note: property declared here
 37 | @property (copy) NSAttributedString *attributedStringValue;
 38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:193:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
191 |       onCancel: (() -> Void)? = nil
192 |     ) {
193 |       let alert = NSAlert()
    |                   `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 |       alert.messageText = title
195 |       alert.informativeText = message
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 64 |
 65 | + (void)initialize;
 66 | - (instancetype)init
    | `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
 68 |     NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:194:13: warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
192 |     ) {
193 |       let alert = NSAlert()
194 |       alert.messageText = title
    |             `- warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
195 |       alert.informativeText = message
196 |       alert.alertStyle = .informational
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:71:28: note: mutation of this property is only permitted within the actor
 69 | /// The text that is displayed prominently in the alert.
 70 | /// - Note: Use this string to get the user’s attention and communicate the reason for displaying the alert.
 71 | @property (copy) NSString *messageText;
    |                            `- note: mutation of this property is only permitted within the actor
 72 |
 73 | /// The descriptive text that provides more details about the reason for the alert.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:195:13: warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
193 |       let alert = NSAlert()
194 |       alert.messageText = title
195 |       alert.informativeText = message
    |             `- warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
196 |       alert.alertStyle = .informational
197 |       alert.addButton(withTitle: "OK")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:75:28: note: mutation of this property is only permitted within the actor
 73 | /// The descriptive text that provides more details about the reason for the alert.
 74 | /// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
 75 | @property (copy) NSString *informativeText;
    |                            `- note: mutation of this property is only permitted within the actor
 76 |
 77 | // MARK: - Accessing a Custom Alert Icon
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:196:13: warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
194 |       alert.messageText = title
195 |       alert.informativeText = message
196 |       alert.alertStyle = .informational
    |             `- warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
197 |       alert.addButton(withTitle: "OK")
198 |       alert.addButton(withTitle: "Cancel")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /// Indicates the alert’s severity level. See the `NSAlertStyle` enumeration for the list of alert style constants.
105 | @property NSAlertStyle alertStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /// Specifies whether the alert has a help button.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:197:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
195 |       alert.informativeText = message
196 |       alert.alertStyle = .informational
197 |       alert.addButton(withTitle: "OK")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 |       alert.addButton(withTitle: "Cancel")
199 |
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:198:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
196 |       alert.alertStyle = .informational
197 |       alert.addButton(withTitle: "OK")
198 |       alert.addButton(withTitle: "Cancel")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
199 |
200 |       // Show the alert
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:201:28: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
199 |
200 |       // Show the alert
201 |       let response = alert.runModal()
    |                            `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
202 |
203 |       // Handle actions based on the response
AppKit.NSAlert.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
  |                      `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
3 |
[138/138] Compiling RichEditorSwiftUI ViewRepresentable.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView+Theme.swift:47:27: warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
45 |         ///
46 |         /// You can set a new value to change the global default.
47 |         public static var standard = Self()
   |                           |- warning: static property 'standard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'standard' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |     }
49 | #endif
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
    |                  `- warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:23:40: note: add '@preconcurrency' to the 'RichTextViewComponent' conformance to defer isolation checking to run time
 21 |   /// property manually or by using a ``RichTextDataFormat`` that
 22 |   /// supports images.
 23 |   open class RichTextView: NSTextView, RichTextViewComponent {
    |                                        `- note: add '@preconcurrency' to the 'RichTextViewComponent' conformance to defer isolation checking to run time
 24 |
 25 |     // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:36:9: note: requirement 'frame' declared here
 34 |
 35 |     /// The text view's frame.
 36 |     var frame: CGRect { get }
    |         `- note: requirement 'frame' declared here
 37 |
 38 |     /// The style to use when highlighting text in the view.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:36:16: warning: main actor-isolated property 'highlightingStyle' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
 34 |
 35 |     /// The style to use when highlighting text in the view.
 36 |     public var highlightingStyle: RichTextHighlightingStyle = .standard
    |                `- warning: main actor-isolated property 'highlightingStyle' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
 37 |
 38 |     /// The image configuration to use by the rich text view.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:39:9: note: requirement 'highlightingStyle' declared here
 37 |
 38 |     /// The style to use when highlighting text in the view.
 39 |     var highlightingStyle: RichTextHighlightingStyle { get set }
    |         `- note: requirement 'highlightingStyle' declared here
 40 |
 41 |     /// Whether or not the text view is the first responder.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:225:16: warning: main actor-isolated property 'isFirstResponder' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
223 |
224 |     /// Whether or not the text view is the first responder.
225 |     public var isFirstResponder: Bool {
    |                `- warning: main actor-isolated property 'isFirstResponder' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
226 |       window?.firstResponder == self
227 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:42:9: note: requirement 'isFirstResponder' declared here
 40 |
 41 |     /// Whether or not the text view is the first responder.
 42 |     var isFirstResponder: Bool { get }
    |         `- note: requirement 'isFirstResponder' declared here
 43 |
 44 |     #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS)
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:198:16: warning: main actor-isolated property 'layoutManagerWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
196 |
197 |     /// The text view's layout manager, if any.
198 |     public var layoutManagerWrapper: NSLayoutManager? {
    |                `- warning: main actor-isolated property 'layoutManagerWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
199 |       layoutManager
200 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:46:13: note: requirement 'layoutManagerWrapper' declared here
 44 |     #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS)
 45 |         /// The text view's layout manager, if any.
 46 |         var layoutManagerWrapper: NSLayoutManager? { get }
    |             `- note: requirement 'layoutManagerWrapper' declared here
 47 |
 48 |         /// The text view's text storage, if any.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:209:16: warning: main actor-isolated property 'textStorageWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
207 |
208 |     /// The text view's text storage, if any.
209 |     public var textStorageWrapper: NSTextStorage? {
    |                `- warning: main actor-isolated property 'textStorageWrapper' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
210 |       textStorage
211 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:49:13: note: requirement 'textStorageWrapper' declared here
 47 |
 48 |         /// The text view's text storage, if any.
 49 |         var textStorageWrapper: NSTextStorage? { get }
    |             `- note: requirement 'textStorageWrapper' declared here
 50 |     #endif
 51 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:235:16: warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
233 |
234 |     // Get the rich text that is managed by the view.
235 |     public var mutableAttributedString: NSMutableAttributedString? {
    |                `- warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
236 |       textStorage
237 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:53:9: note: requirement 'mutableAttributedString' declared here
 51 |
 52 |     /// The text view's mutable attributed string, if any.
 53 |     var mutableAttributedString: NSMutableAttributedString? { get }
    |         `- note: requirement 'mutableAttributedString' declared here
 54 |
 55 |     /// The spacing between the text view's edge and its text.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:203:16: warning: main actor-isolated property 'textContentInset' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
201 |
202 |     /// The spacing between the text view edges and its text.
203 |     public var textContentInset: CGSize {
    |                `- warning: main actor-isolated property 'textContentInset' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
204 |       get { textContainerInset }
205 |       set { textContainerInset = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:56:9: note: requirement 'textContentInset' declared here
 54 |
 55 |     /// The spacing between the text view's edge and its text.
 56 |     var textContentInset: CGSize { get set }
    |         `- note: requirement 'textContentInset' declared here
 57 |
 58 |     /// The text view current typing attributes.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:375:59: warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
373 | - (void)setSpellingState:(NSInteger)value range:(NSRange)charRange API_AVAILABLE(macos(10.5));
374 |
375 | @property (copy) NSDictionary<NSAttributedStringKey, id> *typingAttributes;
    |                                                           `- warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
376 |
377 | // These multiple-range methods supersede the corresponding single-range methods.  For the first method, the affectedRanges argument obeys the same restrictions as the argument to setSelectedRanges:, and the replacementStrings array should either be nil (for attribute-only changes) or have the same number of elements as affectedRanges.  For the remaining three methods, the return values obey the same restrictions as that for selectedRanges, except that they will be nil if the corresponding change is not permitted, where the corresponding single-range methods return (NSNotFound, 0).
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:59:9: note: requirement 'typingAttributes' declared here
 57 |
 58 |     /// The text view current typing attributes.
 59 |     var typingAttributes: RichTextAttributes { get set }
    |         `- note: requirement 'typingAttributes' declared here
 60 |
 61 |     // MARK: - Setup
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:107:15: warning: main actor-isolated instance method 'setup(with:format:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
105 |      - format: The rich text format to edit.
106 |      */
107 |     open func setup(
    |               |- warning: main actor-isolated instance method 'setup(with:format:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'setup(with:format:)' to make this instance method not isolated to the actor
108 |       with text: NSAttributedString,
109 |       format: RichTextDataFormat?
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:63:10: note: mark the protocol requirement 'setup(with:format:)' 'async' to allow actor-isolated conformances
 61 |     // MARK: - Setup
 62 |     /// Setup the view with a text and data format.
 63 |     func setup(
    |          `- note: mark the protocol requirement 'setup(with:format:)' 'async' to allow actor-isolated conformances
 64 |         with text: NSAttributedString,
 65 |         format: RichTextDataFormat?
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:121:17: warning: main actor-isolated instance method 'setup(with:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
119 |     }
120 |
121 |     public func setup(with richText: RichText) {
    |                 |- warning: main actor-isolated instance method 'setup(with:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |                 `- note: add 'nonisolated' to 'setup(with:)' to make this instance method not isolated to the actor
122 |       var tempSpans: [RichTextSpanInternal] = []
123 |       var text = ""
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:68:10: note: mark the protocol requirement 'setup(with:)' 'async' to allow actor-isolated conformances
 66 |     )
 67 |
 68 |     func setup(
    |          `- note: mark the protocol requirement 'setup(with:)' 'async' to allow actor-isolated conformances
 69 |         with text: RichText
 70 |     )
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:154:15: warning: main actor-isolated instance method 'alert(title:message:buttonTitle:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
152 |      - buttonTitle: The alert button title.
153 |      */
154 |     open func alert(title: String, message: String, buttonTitle: String) {
    |               |- warning: main actor-isolated instance method 'alert(title:message:buttonTitle:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'alert(title:message:buttonTitle:)' to make this instance method not isolated to the actor
155 |       let alert = NSAlert()
156 |       alert.messageText = title
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:75:10: note: mark the protocol requirement 'alert(title:message:buttonTitle:)' 'async' to allow actor-isolated conformances
 73 |
 74 |     /// Show an alert with a title, message and button text.
 75 |     func alert(title: String, message: String, buttonTitle: String)
    |          `- note: mark the protocol requirement 'alert(title:message:buttonTitle:)' 'async' to allow actor-isolated conformances
 76 |
 77 |     /// Copy the current selection.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:164:15: warning: main actor-isolated instance method 'copySelection()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
162 |
163 |     /// Copy the current selection.
164 |     open func copySelection() {
    |               |- warning: main actor-isolated instance method 'copySelection()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'copySelection()' to make this instance method not isolated to the actor
165 |       let pasteboard = NSPasteboard.general
166 |       let range = safeRange(for: selectedRange)
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:78:10: note: mark the protocol requirement 'copySelection()' 'async' to allow actor-isolated conformances
 76 |
 77 |     /// Copy the current selection.
 78 |     func copySelection()
    |          `- note: mark the protocol requirement 'copySelection()' 'async' to allow actor-isolated conformances
 79 |
 80 |     /// Try to redo the latest undone change.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:173:15: warning: main actor-isolated instance method 'redoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
171 |
172 |     /// Try to redo the latest undone change.
173 |     open func redoLatestChange() {
    |               |- warning: main actor-isolated instance method 'redoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'redoLatestChange()' to make this instance method not isolated to the actor
174 |       undoManager?.redo()
175 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:81:10: note: mark the protocol requirement 'redoLatestChange()' 'async' to allow actor-isolated conformances
 79 |
 80 |     /// Try to redo the latest undone change.
 81 |     func redoLatestChange()
    |          `- note: mark the protocol requirement 'redoLatestChange()' 'async' to allow actor-isolated conformances
 82 |
 83 |     /// Scroll to a certain range.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:178:15: warning: main actor-isolated instance method 'scroll(to:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
176 |
177 |     /// Scroll to a certain range.
178 |     open func scroll(to range: NSRange) {
    |               |- warning: main actor-isolated instance method 'scroll(to:)' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'scroll(to:)' to make this instance method not isolated to the actor
179 |       scrollRangeToVisible(range)
180 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:84:10: note: mark the protocol requirement 'scroll(to:)' 'async' to allow actor-isolated conformances
 82 |
 83 |     /// Scroll to a certain range.
 84 |     func scroll(to range: NSRange)
    |          `- note: mark the protocol requirement 'scroll(to:)' 'async' to allow actor-isolated conformances
 85 |
 86 |     /// Set the rich text in the text view.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:183:15: warning: main actor-isolated instance method 'setRichText' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
181 |
182 |     /// Set the rich text in the text view.
183 |     open func setRichText(_ text: NSAttributedString) {
    |               |- warning: main actor-isolated instance method 'setRichText' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'setRichText' to make this instance method not isolated to the actor
184 |       attributedString = text
185 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:87:10: note: mark the protocol requirement 'setRichText' 'async' to allow actor-isolated conformances
 85 |
 86 |     /// Set the rich text in the text view.
 87 |     func setRichText(_ text: NSAttributedString)
    |          `- note: mark the protocol requirement 'setRichText' 'async' to allow actor-isolated conformances
 88 |
 89 |     /// Set the selected range in the text view.
AppKit.NSTextView.setSelectedRange:2:22: warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
1 | class NSTextView {
2 | @MainActor open func setSelectedRange(_ charRange: NSRange)}
  |                      |- warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
  |                      `- note: add 'nonisolated' to 'setSelectedRange' to make this instance method not isolated to the actor
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:90:10: note: mark the protocol requirement 'setSelectedRange' 'async' to allow actor-isolated conformances
 88 |
 89 |     /// Set the selected range in the text view.
 90 |     func setSelectedRange(_ range: NSRange)
    |          `- note: mark the protocol requirement 'setSelectedRange' 'async' to allow actor-isolated conformances
 91 |
 92 |     /// Undo the latest change.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:188:15: warning: main actor-isolated instance method 'undoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
186 |
187 |     /// Undo the latest change.
188 |     open func undoLatestChange() {
    |               |- warning: main actor-isolated instance method 'undoLatestChange()' cannot be used to satisfy nonisolated requirement from protocol 'RichTextViewComponent'; this is an error in the Swift 6 language mode
    |               `- note: add 'nonisolated' to 'undoLatestChange()' to make this instance method not isolated to the actor
189 |       undoManager?.undo()
190 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:93:10: note: mark the protocol requirement 'undoLatestChange()' 'async' to allow actor-isolated conformances
 91 |
 92 |     /// Undo the latest change.
 93 |     func undoLatestChange()
    |          `- note: mark the protocol requirement 'undoLatestChange()' 'async' to allow actor-isolated conformances
 94 | }
 95 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextPresenter'; this is an error in the Swift 6 language mode
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'RichTextPresenter'; this is an error in the Swift 6 language mode
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/BaseFoundation/RichTextPresenter.swift:19:9: note: requirement 'selectedRange' declared here
17 |
18 |     /// Get the currently selected range.
19 |     var selectedRange: NSRange { get }
   |         `- note: requirement 'selectedRange' declared here
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:219:16: warning: main actor-isolated property 'attributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextReader'; this is an error in the Swift 6 language mode
217 |
218 |     /// Get the rich text that is managed by the view.
219 |     public var attributedString: NSAttributedString {
    |                `- warning: main actor-isolated property 'attributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextReader'; this is an error in the Swift 6 language mode
220 |       get { attributedString() }
221 |       set { textStorage?.setAttributedString(newValue) }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Helper/RichTextReader.swift:18:9: note: requirement 'attributedString' declared here
16 |
17 |     /// The attributed string to use as rich text.
18 |     var attributedString: NSAttributedString { get }
   |         `- note: requirement 'attributedString' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView_AppKit.swift:235:16: warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextWriter'; this is an error in the Swift 6 language mode
233 |
234 |     // Get the rich text that is managed by the view.
235 |     public var mutableAttributedString: NSMutableAttributedString? {
    |                `- warning: main actor-isolated property 'mutableAttributedString' cannot be used to satisfy nonisolated requirement from protocol 'RichTextWriter'; this is an error in the Swift 6 language mode
236 |       textStorage
237 |     }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Attributes/RichTextWriter.swift:18:9: note: requirement 'mutableAttributedString' declared here
16 |
17 |     /// Get the writable attributed string for the type.
18 |     var mutableAttributedString: NSMutableAttributedString? { get }
   |         `- note: requirement 'mutableAttributedString' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:132:20: warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 |     // Root Window or ViewController
131 |     internal var rootWindow: NSWindow? {
132 |       return NSApp.mainWindow
    |                    `- warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
133 |     }
134 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:201:48: note: property declared here
199 | - (nullable NSWindow *)windowWithWindowNumber:(NSInteger)windowNum;
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
    |                                                `- note: property declared here
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
203 | @property (getter=isActive, readonly) BOOL active;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:132:14: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 |     // Root Window or ViewController
131 |     internal var rootWindow: NSWindow? {
132 |       return NSApp.mainWindow
    |              `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
133 |     }
134 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
    |                                                          `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:148:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
146 |
147 |       // Create the alert
148 |       let alert = NSAlert()
    |                   `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
149 |       alert.messageText = title
150 |       alert.informativeText = message
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 64 |
 65 | + (void)initialize;
 66 | - (instancetype)init
    | `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
 68 |     NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:149:13: warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
147 |       // Create the alert
148 |       let alert = NSAlert()
149 |       alert.messageText = title
    |             `- warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 |       alert.informativeText = message
151 |       alert.alertStyle = .informational
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:71:28: note: mutation of this property is only permitted within the actor
 69 | /// The text that is displayed prominently in the alert.
 70 | /// - Note: Use this string to get the user’s attention and communicate the reason for displaying the alert.
 71 | @property (copy) NSString *messageText;
    |                            `- note: mutation of this property is only permitted within the actor
 72 |
 73 | /// The descriptive text that provides more details about the reason for the alert.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:150:13: warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
148 |       let alert = NSAlert()
149 |       alert.messageText = title
150 |       alert.informativeText = message
    |             `- warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 |       alert.alertStyle = .informational
152 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:75:28: note: mutation of this property is only permitted within the actor
 73 | /// The descriptive text that provides more details about the reason for the alert.
 74 | /// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
 75 | @property (copy) NSString *informativeText;
    |                            `- note: mutation of this property is only permitted within the actor
 76 |
 77 | // MARK: - Accessing a Custom Alert Icon
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:151:13: warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
149 |       alert.messageText = title
150 |       alert.informativeText = message
151 |       alert.alertStyle = .informational
    |             `- warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
152 |
153 |       // Create an input text field
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /// Indicates the alert’s severity level. See the `NSAlertStyle` enumeration for the list of alert style constants.
105 | @property NSAlertStyle alertStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /// Specifies whether the alert has a help button.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:154:23: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
152 |
153 |       // Create an input text field
154 |       let textField = NSTextField(
    |                       `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
155 |         frame: NSRect(x: 0, y: 0, width: 200, height: 24))
156 |       textField.placeholderString = placeholder
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:21:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
 19 | @interface NSControl : NSView
 20 |
 21 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
    | |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
    | `- note: main actor isolation inferred from inheritance from class 'NSControl'
 22 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 23 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:156:17: warning: main actor-isolated property 'placeholderString' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
154 |       let textField = NSTextField(
155 |         frame: NSRect(x: 0, y: 0, width: 200, height: 24))
156 |       textField.placeholderString = placeholder
    |                 `- warning: main actor-isolated property 'placeholderString' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 |       textField.stringValue = defaultText ?? ""
158 |       alert.accessoryView = textField
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextField.h:22:38: note: mutation of this property is only permitted within the actor
 20 | @interface NSTextField : NSControl <NSUserInterfaceValidations, NSAccessibilityNavigableStaticText, NSTextContent>
 21 |
 22 | @property (nullable, copy) NSString *placeholderString API_AVAILABLE(macos(10.10));
    |                                      `- note: mutation of this property is only permitted within the actor
 23 | @property (nullable, copy) NSAttributedString *placeholderAttributedString API_AVAILABLE(macos(10.10));
 24 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:157:17: warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
155 |         frame: NSRect(x: 0, y: 0, width: 200, height: 24))
156 |       textField.placeholderString = placeholder
157 |       textField.stringValue = defaultText ?? ""
    |                 `- warning: main actor-isolated property 'stringValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
158 |       alert.accessoryView = textField
159 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: mutation of this property is only permitted within the actor
 34 |
 35 | @property (nullable, copy) id  /* id<NSCopying> */ objectValue;
 36 | @property (copy) NSString *stringValue;
    |                            `- note: mutation of this property is only permitted within the actor
 37 | @property (copy) NSAttributedString *attributedStringValue;
 38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:158:13: warning: main actor-isolated property 'accessoryView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
156 |       textField.placeholderString = placeholder
157 |       textField.stringValue = defaultText ?? ""
158 |       alert.accessoryView = textField
    |             `- warning: main actor-isolated property 'accessoryView' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
159 |
160 |       // Show real-time text updates
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:127:38: note: mutation of this property is only permitted within the actor
125 |
126 | /// The accessory view displayed in the alert, placed between the informative text or suppression checkbox (if present) and the response buttons. Before changing the location of the accessory view, first call the `-layout` method.
127 | @property (nullable, strong) NSView *accessoryView API_AVAILABLE(macos(10.5));
    |                                      `- note: mutation of this property is only permitted within the actor
128 |
129 | /// Specifies that the alert must do immediate layout instead of lazily just before display.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:162: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
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
160 |       // Show real-time text updates
161 |       if onTextChange != nil {
162 |         textField.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
163 |         textField.action = #selector(self.textFieldDidChange(_:))
164 |       }
/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/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:163: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
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
161 |       if onTextChange != nil {
162 |         textField.target = self
163 |         textField.action = #selector(self.textFieldDidChange(_:))
    |                   `- warning: main actor-isolated property 'action' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |       }
165 |
/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/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:167:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
165 |
166 |       // Add the OK and Cancel buttons
167 |       alert.addButton(withTitle: "OK")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
168 |       alert.addButton(withTitle: "Cancel")
169 |
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:168:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
166 |       // Add the OK and Cancel buttons
167 |       alert.addButton(withTitle: "OK")
168 |       alert.addButton(withTitle: "Cancel")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
169 |
170 |       // Show the alert
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:171:28: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
169 |
170 |       // Show the alert
171 |       let response = alert.runModal()
    |                            `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 |
173 |       // Handle completion based on the response
AppKit.NSAlert.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
  |                      `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:175:30: warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
134 |
135 |     // Show alert with a text field and real-time text change closure
136 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:placeholder:defaultText:onTextChange:completion:)' part of global actor 'MainActor'
137 |       title: String,
138 |       message: String,
    :
173 |       // Handle completion based on the response
174 |       if response == .alertFirstButtonReturn {
175 |         completion(textField.stringValue)
    |                              `- warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
176 |       } else {
177 |         completion(nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: property declared here
 34 |
 35 | @property (nullable, copy) id  /* id<NSCopying> */ objectValue;
 36 | @property (copy) NSString *stringValue;
    |                            `- note: property declared here
 37 | @property (copy) NSAttributedString *attributedStringValue;
 38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:183:31: warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
179 |     }
180 |
181 |     @objc private func textFieldDidChange(_ textField: NSTextField) {
    |                        `- note: add '@MainActor' to make instance method 'textFieldDidChange' part of global actor 'MainActor'
182 |       // Call the closure with the updated text
183 |       onTextChange?(textField.stringValue)
    |                               `- warning: main actor-isolated property 'stringValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
184 |     }
185 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSControl.h:36:28: note: property declared here
 34 |
 35 | @property (nullable, copy) id  /* id<NSCopying> */ objectValue;
 36 | @property (copy) NSString *stringValue;
    |                            `- note: property declared here
 37 | @property (copy) NSAttributedString *attributedStringValue;
 38 | @property int intValue;
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:193:19: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
191 |       onCancel: (() -> Void)? = nil
192 |     ) {
193 |       let alert = NSAlert()
    |                   `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 |       alert.messageText = title
195 |       alert.informativeText = message
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:66:1: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 64 |
 65 | + (void)initialize;
 66 | - (instancetype)init
    | `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
 67 | #if NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER
 68 |     NS_DESIGNATED_INITIALIZER
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:194:13: warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
192 |     ) {
193 |       let alert = NSAlert()
194 |       alert.messageText = title
    |             `- warning: main actor-isolated property 'messageText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
195 |       alert.informativeText = message
196 |       alert.alertStyle = .informational
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:71:28: note: mutation of this property is only permitted within the actor
 69 | /// The text that is displayed prominently in the alert.
 70 | /// - Note: Use this string to get the user’s attention and communicate the reason for displaying the alert.
 71 | @property (copy) NSString *messageText;
    |                            `- note: mutation of this property is only permitted within the actor
 72 |
 73 | /// The descriptive text that provides more details about the reason for the alert.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:195:13: warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
193 |       let alert = NSAlert()
194 |       alert.messageText = title
195 |       alert.informativeText = message
    |             `- warning: main actor-isolated property 'informativeText' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
196 |       alert.alertStyle = .informational
197 |       alert.addButton(withTitle: "OK")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:75:28: note: mutation of this property is only permitted within the actor
 73 | /// The descriptive text that provides more details about the reason for the alert.
 74 | /// - Note: The informative text string is displayed below the message text and is less prominent. Use this string to provide additional context about the reason for the alert or about the actions that the user might take.
 75 | @property (copy) NSString *informativeText;
    |                            `- note: mutation of this property is only permitted within the actor
 76 |
 77 | // MARK: - Accessing a Custom Alert Icon
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:196:13: warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
194 |       alert.messageText = title
195 |       alert.informativeText = message
196 |       alert.alertStyle = .informational
    |             `- warning: main actor-isolated property 'alertStyle' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
197 |       alert.addButton(withTitle: "OK")
198 |       alert.addButton(withTitle: "Cancel")
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:105:24: note: mutation of this property is only permitted within the actor
103 |
104 | /// Indicates the alert’s severity level. See the `NSAlertStyle` enumeration for the list of alert style constants.
105 | @property NSAlertStyle alertStyle;
    |                        `- note: mutation of this property is only permitted within the actor
106 |
107 | /// Specifies whether the alert has a help button.
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:197:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
195 |       alert.informativeText = message
196 |       alert.alertStyle = .informational
197 |       alert.addButton(withTitle: "OK")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
198 |       alert.addButton(withTitle: "Cancel")
199 |
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:198:13: warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
196 |       alert.alertStyle = .informational
197 |       alert.addButton(withTitle: "OK")
198 |       alert.addButton(withTitle: "Cancel")
    |             `- warning: call to main actor-isolated instance method 'addButton(withTitle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
199 |
200 |       // Show the alert
AppKit.NSAlert.addButton:2:22: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func addButton(withTitle title: String) -> NSButton}
  |                      `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/Views/RichTextAlertController.swift:201:28: warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 |
186 |     // Show a simple alert with OK and Cancel actions
187 |     func showAlert(
    |          `- note: add '@MainActor' to make instance method 'showAlert(title:message:onOk:onCancel:)' part of global actor 'MainActor'
188 |       title: String,
189 |       message: String,
    :
199 |
200 |       // Show the alert
201 |       let response = alert.runModal()
    |                            `- warning: call to main actor-isolated instance method 'runModal()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
202 |
203 |       // Handle actions based on the response
AppKit.NSAlert.runModal:2:22: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
1 | class NSAlert {
2 | @MainActor open func runModal() -> NSApplication.ModalResponse}
  |                      `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
3 |
Build complete! (10.27s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RichEditorSwiftUI",
  "name" : "RichEditorSwiftUI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "17.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "RichEditorSwiftUI",
      "targets" : [
        "RichEditorSwiftUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RichEditorSwiftUITests",
      "module_type" : "SwiftTarget",
      "name" : "RichEditorSwiftUITests",
      "path" : "Tests/RichEditorSwiftUITests",
      "sources" : [
        "RichEditorSwiftUITests.swift"
      ],
      "target_dependencies" : [
        "RichEditorSwiftUI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RichEditorSwiftUI",
      "module_type" : "SwiftTarget",
      "name" : "RichEditorSwiftUI",
      "path" : "Sources/RichEditorSwiftUI",
      "product_memberships" : [
        "RichEditorSwiftUI"
      ],
      "sources" : [
        "Actions/RichTextAction+KeyboardShortcutModifier.swift",
        "Actions/RichTextAction.swift",
        "Actions/RichTextActionButton.swift",
        "Alignment/RichTextAlignment+Picker.swift",
        "Alignment/RichTextAlignment.swift",
        "Attributes/RichTextAttribute.swift",
        "Attributes/RichTextAttributeReader.swift",
        "Attributes/RichTextAttributeWriter.swift",
        "Attributes/RichTextAttributes+RichTextStyle.swift",
        "Attributes/RichTextWriter.swift",
        "BaseFoundation/RichTextCoordinator+Actions.swift",
        "BaseFoundation/RichTextCoordinator+Subscriptions.swift",
        "BaseFoundation/RichTextCoordinator.swift",
        "BaseFoundation/RichTextPresenter.swift",
        "Colors/ColorRepresentable.swift",
        "Colors/RichTextColor+Picker.swift",
        "Colors/RichTextColor.swift",
        "Components/RichTextViewComponent+Alignment.swift",
        "Components/RichTextViewComponent+Attributes.swift",
        "Components/RichTextViewComponent+Colors.swift",
        "Components/RichTextViewComponent+Link.swift",
        "Components/RichTextViewComponent+Paragraph.swift",
        "Components/RichTextViewComponent+Pasting.swift",
        "Components/RichTextViewComponent+Ranges.swift",
        "Components/RichTextViewComponent+Styles.swift",
        "Components/RichTextViewComponent.swift",
        "Data/Models/HeaderType.swift",
        "Data/Models/RichAttributes+RichTextAttributes.swift",
        "Data/Models/RichAttributes.swift",
        "Data/Models/RichText.swift",
        "Data/Models/RichTextSpanInternal.swift",
        "Export/NSAttributedString+Export.swift",
        "Export/RichTextExportError.swift",
        "Export/RichTextExportMenu.swift",
        "Export/RichTextExportOption.swift",
        "Export/RichTextExportService.swift",
        "Export/RichTextExportUrlResolver+FileManager.swift",
        "Export/RichTextExportUrlResolver.swift",
        "Export/StandardRichTextExportService.swift",
        "ExportData/NSAttributedString+Init.swift",
        "ExportData/RichTextDataError.swift",
        "ExportData/RichTextDataFormat+Menu.swift",
        "ExportData/RichTextDataFormat.swift",
        "ExportData/RichTextDataReader.swift",
        "ExportData/UTType+RichText.swift",
        "Fonts/FontDescriptorRepresentable.swift",
        "Fonts/FontRepresentable.swift",
        "Fonts/FontTraitsRepresentable.swift",
        "Fonts/RichTextFont+ListPicker.swift",
        "Fonts/RichTextFont+Picker.swift",
        "Fonts/RichTextFont+PickerConfig.swift",
        "Fonts/RichTextFont+PickerItem.swift",
        "Fonts/RichTextFont+SizePicker.swift",
        "Fonts/RichTextFont+SizePickerConfig.swift",
        "Fonts/RichTextFont.swift",
        "Fonts/RichTextFontPickerFont.swift",
        "Fonts/RichTextFontSizePickerStack.swift",
        "Fonts/RichTextViewComponent+Font.swift",
        "Fonts/StandardFontSizeProvider.swift",
        "Format/RichTextFormat+Sheet.swift",
        "Format/RichTextFormat+Sidebar.swift",
        "Format/RichTextFormat+Toolbar.swift",
        "Format/RichTextFormat+ToolbarConfig.swift",
        "Format/RichTextFormat+ToolbarStyle.swift",
        "Format/RichTextFormat.swift",
        "Format/RichTextFormatToolbarBase.swift",
        "Headers/RichTextHeader+Picker.swift",
        "Headers/RichTextHeader.swift",
        "Helper/Buildable.swift",
        "Images/Image+RichText.swift",
        "Keyboard/RichTextKeyboardToolbar+Config.swift",
        "Keyboard/RichTextKeyboardToolbar+Style.swift",
        "Keyboard/RichTextKeyboardToolbar.swift",
        "ListStyle/ListType.swift",
        "Localization/RTEL10n.swift",
        "Pdf/PdfDataError.swift",
        "Pdf/PdfPageConfiguration.swift",
        "Pdf/PdfPageMargins.swift",
        "Pdf/RichTextPdfDataReader.swift",
        "RichTextOtherMenu/RichTextOtherMenu+Button.swift",
        "RichTextOtherMenu/RichTextOtherMenu+Toggle.swift",
        "RichTextOtherMenu/RichTextOtherMenu+ToggleGroup.swift",
        "RichTextOtherMenu/RichTextOtherMenu+ToggleStack.swift",
        "RichTextOtherMenu/RichTextOtherMenu.swift",
        "Styles/RichTextAction+ButtonStack.swift",
        "Styles/RichTextHighlightingStyle.swift",
        "Styles/RichTextStyle+Button.swift",
        "Styles/RichTextStyle+Toggle.swift",
        "Styles/RichTextStyle+ToggleGroup.swift",
        "Styles/RichTextStyle+ToggleStack.swift",
        "Styles/RichTextStyle.swift",
        "Styles/View+RichTextStyle.swift",
        "UI/Context/RichEditorState+Header.swift",
        "UI/Context/RichEditorState+Link.swift",
        "UI/Context/RichEditorState+Styles.swift",
        "UI/Context/RichEditorState+TextAlignment.swift",
        "UI/Context/RichEditorState.swift",
        "UI/Context/RichTextContext+Actions.swift",
        "UI/Context/RichTextContext+Color.swift",
        "UI/Editor/RichEditor.swift",
        "UI/Editor/RichEditorState+Spans.swift",
        "UI/Editor/RichTextSpanStyle.swift",
        "UI/Extensions/Array+Extension.swift",
        "UI/Extensions/Character+Extension.swift",
        "UI/Extensions/Color+Extension.swift",
        "UI/Extensions/FontRepresentable+Extension.swift",
        "UI/Extensions/Image+Label.swift",
        "UI/Extensions/NSAttributedString+Empty.swift",
        "UI/Extensions/NSMutableParagraphStyle+Custom.swift",
        "UI/Extensions/NSRange+Extension.swift",
        "UI/Extensions/String+Characters.swift",
        "UI/Extensions/String+Extension.swift",
        "UI/Extensions/View+BackportSupportExtension.swift",
        "UI/Helper/RichEditorState+LineInfo.swift",
        "UI/Helper/RichTextReader.swift",
        "UI/Parser/EditorAdapter.swift",
        "UI/TextViewUI/RichEditorStateFocusedValueKey.swift",
        "UI/TextViewUI/RichTextEditor+Config.swift",
        "UI/TextViewUI/RichTextEditor+Style.swift",
        "UI/TextViewUI/RichTextView+Config.swift",
        "UI/TextViewUI/RichTextView+Config_AppKit.swift",
        "UI/TextViewUI/RichTextView+Config_UIKit.swift",
        "UI/TextViewUI/RichTextView+Setup.swift",
        "UI/TextViewUI/RichTextView+Theme.swift",
        "UI/TextViewUI/RichTextViewRepresentable.swift",
        "UI/TextViewUI/RichTextView_AppKit.swift",
        "UI/TextViewUI/RichTextView_UIKit.swift",
        "UI/TextViewUI/TextViewEvents.swift",
        "UI/Views/ForEachPicker.swift",
        "UI/Views/ListPicker.swift",
        "UI/Views/ListPickerItem.swift",
        "UI/Views/ListPickerSection.swift",
        "UI/Views/RichTextAlertController.swift",
        "UI/Views/RichTextLabelValue.swift",
        "UI/Views/ViewRepresentable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.