Build Information
Successful build of RichEditorSwiftUI, reference 1.1.1 (b39107
), with Swift 6.0 for macOS (SPM) on 3 Jan 2025 07:12:22 UTC.
Swift 6 data race errors: 36
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.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
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
AppKit.NSAlert:5:25: note: mutation of this property is only permitted within the actor
3 | @available(*, unavailable, renamed: "init(error:)", message: "Not available in Swift")
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
/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")
AppKit.NSAlert:6:25: note: mutation of this property is only permitted within the actor
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
6 | @MainActor open var informativeText: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
/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")
AppKit.NSAlert:12:25: note: mutation of this property is only permitted within the actor
10 | open func addButtonWithTitle(_ title: String) -> NSButton
11 | open var buttons: [NSButton] { get }
12 | @MainActor open var alertStyle: NSAlert.Style { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var showsHelp: Bool { get set }
14 | open var helpAnchor: NSHelpManager.AnchorName? { get set }
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:20:26: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
18 | @available(macOS 10.5, *)
19 | open func layout()
20 | @MainActor open func runModal() -> NSApplication.ModalResponse
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
21 | @available(macOS 10.5, *)
22 | open var showsSuppressionButton: Bool { get set }
[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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView+Config.swift:16: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
14 | ///
15 | /// You can set a new value to change the global default.
16 | 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | }
18 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Styles/RichTextHighlightingStyle.swift:40:23: 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
38 | ///
39 | /// You can set a new value to change the global default.
40 | 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | }
42 |
AppKit.NSView:60:25: warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
61 | open var frameRotation: CGFloat { get set }
62 | @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: 'frame' declared here
34 |
35 | /// The text view's frame.
36 | var frame: CGRect { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'highlightingStyle' declared here
37 |
38 | /// The style to use when highlighting text in the view.
39 | var highlightingStyle: RichTextHighlightingStyle { get set }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'isFirstResponder' declared here
40 |
41 | /// Whether or not the text view is the first responder.
42 | var isFirstResponder: Bool { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: '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: '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 protocol requirement; 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 protocol requirement; 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: 'textStorageWrapper' declared here
47 |
48 | /// The text view's text storage, if any.
49 | var textStorageWrapper: NSTextStorage? { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'mutableAttributedString' declared here
51 |
52 | /// The text view's mutable attributed string, if any.
53 | var mutableAttributedString: NSMutableAttributedString? { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'textContentInset' declared here
54 |
55 | /// The spacing between the text view's edge and its text.
56 | var textContentInset: CGSize { get set }
| `- note: 'textContentInset' declared here
57 |
58 | /// The text view current typing attributes.
AppKit.NSTextView:32:25: warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
30 | @available(macOS 10.5, *)
31 | open func setSpellingState(_ value: Int, range charRange: NSRange)
32 | @MainActor open var typingAttributes: [NSAttributedString.Key : Any] { get set }
| `- warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
33 | open func shouldChangeText(inRanges affectedRanges: [NSValue], replacementStrings: [String]?) -> Bool
34 | @available(swift, obsoleted: 3, renamed: "shouldChangeText(inRanges:replacementStrings:)")
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:59:9: note: 'typingAttributes' declared here
57 |
58 | /// The text view current typing attributes.
59 | var typingAttributes: RichTextAttributes { get set }
| `- note: '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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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:84:15: warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
82 | @available(swift, obsoleted: 3, renamed: "isRulerVisible")
83 | open var rulerVisible: Bool { get set }
84 | open func setSelectedRange(_ charRange: NSRange)
| |- warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated protocol requirement; 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
85 | @available(macOS 10.5, *)
86 | open var allowedInputSourceLocales: [String]? { get set }
/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 protocol requirement; 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 protocol requirement; 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 |
AppKit.NSText:46:25: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
44 | @available(swift, obsoleted: 3, renamed: "isRulerVisible")
45 | open var rulerVisible: Bool { get }
46 | @MainActor open var selectedRange: NSRange { get set }
| `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | @MainActor open var font: NSFont? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/BaseFoundation/RichTextPresenter.swift:19:9: note: 'selectedRange' declared here
17 |
18 | /// Get the currently selected range.
19 | var selectedRange: NSRange { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'attributedString' declared here
16 |
17 | /// The attributed string to use as rich text.
18 | var attributedString: NSAttributedString { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'mutableAttributedString' declared here
16 |
17 | /// Get the writable attributed string for the type.
18 | var mutableAttributedString: NSMutableAttributedString? { get }
| `- note: 'mutableAttributedString' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Fonts/FontRepresentable.swift:32:23: warning: static property 'standardRichTextFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | use of the value.
31 | */
32 | public static var standardRichTextFont = systemFont(
| |- warning: static property 'standardRichTextFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardRichTextFont' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardRichTextFont' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | ofSize: .standardRichTextFontSize)
34 |
/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 |
AppKit.NSApplication:12:30: note: property declared here
10 | @available(swift, obsoleted: 3, renamed: "window(withWindowNumber:)")
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | @MainActor weak open var mainWindow: NSWindow? { get }
| `- note: property declared here
13 | weak open var keyWindow: NSWindow? { get }
14 | open var isActive: Bool { get }
/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 |
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/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
AppKit.NSAlert:33:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | open func beginSheetModalForWindow(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
32 | open var window: NSWindow { get }
33 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
34 | }
/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
AppKit.NSAlert:5:25: note: mutation of this property is only permitted within the actor
3 | @available(*, unavailable, renamed: "init(error:)", message: "Not available in Swift")
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
/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 |
AppKit.NSAlert:6:25: note: mutation of this property is only permitted within the actor
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
6 | @MainActor open var informativeText: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
/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
AppKit.NSAlert:12:25: note: mutation of this property is only permitted within the actor
10 | open func addButtonWithTitle(_ title: String) -> NSButton
11 | open var buttons: [NSButton] { get }
12 | @MainActor open var alertStyle: NSAlert.Style { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var showsHelp: Bool { get set }
14 | open var helpAnchor: NSHelpManager.AnchorName? { get set }
/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
AppKit.NSTextField:40:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
38 | @available(macOS 15.2, *)
39 | open var allowsWritingTools: Bool { get set }
40 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
41 | public init?(coder: NSCoder)
42 | public convenience init()
/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
AppKit.NSTextField:3:14: note: mutation of this property is only permitted within the actor
1 | @MainActor open class NSTextField : NSControl, NSUserInterfaceValidations, NSAccessibilityNavigableStaticText, NSTextContent {
2 | @available(macOS 10.10, *)
3 | open var placeholderString: String? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.10, *)
5 | @NSCopying open var placeholderAttributedString: NSAttributedString? { get set }
/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 |
AppKit.NSControl:24:25: note: mutation of this property is only permitted within the actor
22 | open var formatter: Formatter? { get set }
23 | open var objectValue: Any? { get set }
24 | @MainActor open var stringValue: String { get set }
| `- note: mutation of this property is only permitted within the actor
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 | open var intValue: Int32 { get set }
/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
AppKit.NSAlert:17:14: note: mutation of this property is only permitted within the actor
15 | weak open var delegate: (any NSAlertDelegate)? { get set }
16 | @available(macOS 10.5, *)
17 | open var accessoryView: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @available(macOS 10.5, *)
19 | open func layout()
/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 | }
AppKit.NSControl:4:19: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open var action: Selector? { get set }
6 | open var tag: Int { get set }
/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 |
AppKit.NSControl:5:14: note: mutation of this property is only permitted within the actor
3 | public init?(coder: NSCoder)
4 | weak open var target: AnyObject? { get set }
5 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var tag: Int { get set }
7 | open var ignoresMultiClick: Bool { get set }
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:20:26: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
18 | @available(macOS 10.5, *)
19 | open func layout()
20 | @MainActor open func runModal() -> NSApplication.ModalResponse
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
21 | @available(macOS 10.5, *)
22 | open var showsSuppressionButton: Bool { get set }
/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)
AppKit.NSControl:24:25: note: property declared here
22 | open var formatter: Formatter? { get set }
23 | open var objectValue: Any? { get set }
24 | @MainActor open var stringValue: String { get set }
| `- note: property declared here
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 | open var intValue: Int32 { get set }
/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 |
AppKit.NSControl:24:25: note: property declared here
22 | open var formatter: Formatter? { get set }
23 | open var objectValue: Any? { get set }
24 | @MainActor open var stringValue: String { get set }
| `- note: property declared here
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 | open var intValue: Int32 { get set }
/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
AppKit.NSAlert:33:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | open func beginSheetModalForWindow(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
32 | open var window: NSWindow { get }
33 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
34 | }
/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
AppKit.NSAlert:5:25: note: mutation of this property is only permitted within the actor
3 | @available(*, unavailable, renamed: "init(error:)", message: "Not available in Swift")
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
/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")
AppKit.NSAlert:6:25: note: mutation of this property is only permitted within the actor
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
6 | @MainActor open var informativeText: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
/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")
AppKit.NSAlert:12:25: note: mutation of this property is only permitted within the actor
10 | open func addButtonWithTitle(_ title: String) -> NSButton
11 | open var buttons: [NSButton] { get }
12 | @MainActor open var alertStyle: NSAlert.Style { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var showsHelp: Bool { get set }
14 | open var helpAnchor: NSHelpManager.AnchorName? { get set }
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:20:26: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
18 | @available(macOS 10.5, *)
19 | open func layout()
20 | @MainActor open func runModal() -> NSApplication.ModalResponse
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
21 | @available(macOS 10.5, *)
22 | open var showsSuppressionButton: Bool { get set }
[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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView+Config.swift:16: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
14 | ///
15 | /// You can set a new value to change the global default.
16 | 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | }
18 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Styles/RichTextHighlightingStyle.swift:40:23: 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
38 | ///
39 | /// You can set a new value to change the global default.
40 | 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | }
42 |
AppKit.NSView:60:25: warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
61 | open var frameRotation: CGFloat { get set }
62 | @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: 'frame' declared here
34 |
35 | /// The text view's frame.
36 | var frame: CGRect { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'highlightingStyle' declared here
37 |
38 | /// The style to use when highlighting text in the view.
39 | var highlightingStyle: RichTextHighlightingStyle { get set }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'isFirstResponder' declared here
40 |
41 | /// Whether or not the text view is the first responder.
42 | var isFirstResponder: Bool { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: '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: '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 protocol requirement; 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 protocol requirement; 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: 'textStorageWrapper' declared here
47 |
48 | /// The text view's text storage, if any.
49 | var textStorageWrapper: NSTextStorage? { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'mutableAttributedString' declared here
51 |
52 | /// The text view's mutable attributed string, if any.
53 | var mutableAttributedString: NSMutableAttributedString? { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'textContentInset' declared here
54 |
55 | /// The spacing between the text view's edge and its text.
56 | var textContentInset: CGSize { get set }
| `- note: 'textContentInset' declared here
57 |
58 | /// The text view current typing attributes.
AppKit.NSTextView:32:25: warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
30 | @available(macOS 10.5, *)
31 | open func setSpellingState(_ value: Int, range charRange: NSRange)
32 | @MainActor open var typingAttributes: [NSAttributedString.Key : Any] { get set }
| `- warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
33 | open func shouldChangeText(inRanges affectedRanges: [NSValue], replacementStrings: [String]?) -> Bool
34 | @available(swift, obsoleted: 3, renamed: "shouldChangeText(inRanges:replacementStrings:)")
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:59:9: note: 'typingAttributes' declared here
57 |
58 | /// The text view current typing attributes.
59 | var typingAttributes: RichTextAttributes { get set }
| `- note: '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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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:84:15: warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
82 | @available(swift, obsoleted: 3, renamed: "isRulerVisible")
83 | open var rulerVisible: Bool { get set }
84 | open func setSelectedRange(_ charRange: NSRange)
| |- warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated protocol requirement; 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
85 | @available(macOS 10.5, *)
86 | open var allowedInputSourceLocales: [String]? { get set }
/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 protocol requirement; 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 protocol requirement; 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 |
AppKit.NSText:46:25: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
44 | @available(swift, obsoleted: 3, renamed: "isRulerVisible")
45 | open var rulerVisible: Bool { get }
46 | @MainActor open var selectedRange: NSRange { get set }
| `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | @MainActor open var font: NSFont? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/BaseFoundation/RichTextPresenter.swift:19:9: note: 'selectedRange' declared here
17 |
18 | /// Get the currently selected range.
19 | var selectedRange: NSRange { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'attributedString' declared here
16 |
17 | /// The attributed string to use as rich text.
18 | var attributedString: NSAttributedString { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'mutableAttributedString' declared here
16 |
17 | /// Get the writable attributed string for the type.
18 | var mutableAttributedString: NSMutableAttributedString? { get }
| `- note: 'mutableAttributedString' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Fonts/FontRepresentable.swift:32:23: warning: static property 'standardRichTextFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | use of the value.
31 | */
32 | public static var standardRichTextFont = systemFont(
| |- warning: static property 'standardRichTextFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardRichTextFont' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardRichTextFont' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | ofSize: .standardRichTextFontSize)
34 |
/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 |
AppKit.NSApplication:12:30: note: property declared here
10 | @available(swift, obsoleted: 3, renamed: "window(withWindowNumber:)")
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | @MainActor weak open var mainWindow: NSWindow? { get }
| `- note: property declared here
13 | weak open var keyWindow: NSWindow? { get }
14 | open var isActive: Bool { get }
/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 |
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/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
AppKit.NSAlert:33:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | open func beginSheetModalForWindow(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
32 | open var window: NSWindow { get }
33 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
34 | }
/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
AppKit.NSAlert:5:25: note: mutation of this property is only permitted within the actor
3 | @available(*, unavailable, renamed: "init(error:)", message: "Not available in Swift")
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
/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 |
AppKit.NSAlert:6:25: note: mutation of this property is only permitted within the actor
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
6 | @MainActor open var informativeText: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
/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
AppKit.NSAlert:12:25: note: mutation of this property is only permitted within the actor
10 | open func addButtonWithTitle(_ title: String) -> NSButton
11 | open var buttons: [NSButton] { get }
12 | @MainActor open var alertStyle: NSAlert.Style { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var showsHelp: Bool { get set }
14 | open var helpAnchor: NSHelpManager.AnchorName? { get set }
/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
AppKit.NSTextField:40:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
38 | @available(macOS 15.2, *)
39 | open var allowsWritingTools: Bool { get set }
40 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
41 | public init?(coder: NSCoder)
42 | public convenience init()
/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
AppKit.NSTextField:3:14: note: mutation of this property is only permitted within the actor
1 | @MainActor open class NSTextField : NSControl, NSUserInterfaceValidations, NSAccessibilityNavigableStaticText, NSTextContent {
2 | @available(macOS 10.10, *)
3 | open var placeholderString: String? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.10, *)
5 | @NSCopying open var placeholderAttributedString: NSAttributedString? { get set }
/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 |
AppKit.NSControl:24:25: note: mutation of this property is only permitted within the actor
22 | open var formatter: Formatter? { get set }
23 | open var objectValue: Any? { get set }
24 | @MainActor open var stringValue: String { get set }
| `- note: mutation of this property is only permitted within the actor
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 | open var intValue: Int32 { get set }
/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
AppKit.NSAlert:17:14: note: mutation of this property is only permitted within the actor
15 | weak open var delegate: (any NSAlertDelegate)? { get set }
16 | @available(macOS 10.5, *)
17 | open var accessoryView: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @available(macOS 10.5, *)
19 | open func layout()
/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 | }
AppKit.NSControl:4:19: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open var action: Selector? { get set }
6 | open var tag: Int { get set }
/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 |
AppKit.NSControl:5:14: note: mutation of this property is only permitted within the actor
3 | public init?(coder: NSCoder)
4 | weak open var target: AnyObject? { get set }
5 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var tag: Int { get set }
7 | open var ignoresMultiClick: Bool { get set }
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:20:26: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
18 | @available(macOS 10.5, *)
19 | open func layout()
20 | @MainActor open func runModal() -> NSApplication.ModalResponse
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
21 | @available(macOS 10.5, *)
22 | open var showsSuppressionButton: Bool { get set }
/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)
AppKit.NSControl:24:25: note: property declared here
22 | open var formatter: Formatter? { get set }
23 | open var objectValue: Any? { get set }
24 | @MainActor open var stringValue: String { get set }
| `- note: property declared here
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 | open var intValue: Int32 { get set }
/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 |
AppKit.NSControl:24:25: note: property declared here
22 | open var formatter: Formatter? { get set }
23 | open var objectValue: Any? { get set }
24 | @MainActor open var stringValue: String { get set }
| `- note: property declared here
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 | open var intValue: Int32 { get set }
/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
AppKit.NSAlert:33:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | open func beginSheetModalForWindow(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
32 | open var window: NSWindow { get }
33 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
34 | }
/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
AppKit.NSAlert:5:25: note: mutation of this property is only permitted within the actor
3 | @available(*, unavailable, renamed: "init(error:)", message: "Not available in Swift")
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
/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")
AppKit.NSAlert:6:25: note: mutation of this property is only permitted within the actor
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
6 | @MainActor open var informativeText: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
/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")
AppKit.NSAlert:12:25: note: mutation of this property is only permitted within the actor
10 | open func addButtonWithTitle(_ title: String) -> NSButton
11 | open var buttons: [NSButton] { get }
12 | @MainActor open var alertStyle: NSAlert.Style { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var showsHelp: Bool { get set }
14 | open var helpAnchor: NSHelpManager.AnchorName? { get set }
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:20:26: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
18 | @available(macOS 10.5, *)
19 | open func layout()
20 | @MainActor open func runModal() -> NSApplication.ModalResponse
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
21 | @available(macOS 10.5, *)
22 | open var showsSuppressionButton: Bool { get set }
[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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | }
49 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/UI/TextViewUI/RichTextView+Config.swift:16: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
14 | ///
15 | /// You can set a new value to change the global default.
16 | 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | }
18 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Styles/RichTextHighlightingStyle.swift:40:23: 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
38 | ///
39 | /// You can set a new value to change the global default.
40 | 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | }
42 |
AppKit.NSView:60:25: warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- warning: main actor-isolated property 'frame' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
61 | open var frameRotation: CGFloat { get set }
62 | @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: 'frame' declared here
34 |
35 | /// The text view's frame.
36 | var frame: CGRect { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'highlightingStyle' declared here
37 |
38 | /// The style to use when highlighting text in the view.
39 | var highlightingStyle: RichTextHighlightingStyle { get set }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'isFirstResponder' declared here
40 |
41 | /// Whether or not the text view is the first responder.
42 | var isFirstResponder: Bool { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: '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: '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 protocol requirement; 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 protocol requirement; 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: 'textStorageWrapper' declared here
47 |
48 | /// The text view's text storage, if any.
49 | var textStorageWrapper: NSTextStorage? { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'mutableAttributedString' declared here
51 |
52 | /// The text view's mutable attributed string, if any.
53 | var mutableAttributedString: NSMutableAttributedString? { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'textContentInset' declared here
54 |
55 | /// The spacing between the text view's edge and its text.
56 | var textContentInset: CGSize { get set }
| `- note: 'textContentInset' declared here
57 |
58 | /// The text view current typing attributes.
AppKit.NSTextView:32:25: warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
30 | @available(macOS 10.5, *)
31 | open func setSpellingState(_ value: Int, range charRange: NSRange)
32 | @MainActor open var typingAttributes: [NSAttributedString.Key : Any] { get set }
| `- warning: main actor-isolated property 'typingAttributes' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
33 | open func shouldChangeText(inRanges affectedRanges: [NSValue], replacementStrings: [String]?) -> Bool
34 | @available(swift, obsoleted: 3, renamed: "shouldChangeText(inRanges:replacementStrings:)")
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Components/RichTextViewComponent.swift:59:9: note: 'typingAttributes' declared here
57 |
58 | /// The text view current typing attributes.
59 | var typingAttributes: RichTextAttributes { get set }
| `- note: '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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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 protocol requirement; 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:84:15: warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
82 | @available(swift, obsoleted: 3, renamed: "isRulerVisible")
83 | open var rulerVisible: Bool { get set }
84 | open func setSelectedRange(_ charRange: NSRange)
| |- warning: main actor-isolated instance method 'setSelectedRange' cannot be used to satisfy nonisolated protocol requirement; 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
85 | @available(macOS 10.5, *)
86 | open var allowedInputSourceLocales: [String]? { get set }
/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 protocol requirement; 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 protocol requirement; 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 |
AppKit.NSText:46:25: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
44 | @available(swift, obsoleted: 3, renamed: "isRulerVisible")
45 | open var rulerVisible: Bool { get }
46 | @MainActor open var selectedRange: NSRange { get set }
| `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | @MainActor open var font: NSFont? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/BaseFoundation/RichTextPresenter.swift:19:9: note: 'selectedRange' declared here
17 |
18 | /// Get the currently selected range.
19 | var selectedRange: NSRange { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'attributedString' declared here
16 |
17 | /// The attributed string to use as rich text.
18 | var attributedString: NSAttributedString { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: 'mutableAttributedString' declared here
16 |
17 | /// Get the writable attributed string for the type.
18 | var mutableAttributedString: NSMutableAttributedString? { get }
| `- note: 'mutableAttributedString' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/RichEditorSwiftUI/Fonts/FontRepresentable.swift:32:23: warning: static property 'standardRichTextFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | use of the value.
31 | */
32 | public static var standardRichTextFont = systemFont(
| |- warning: static property 'standardRichTextFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardRichTextFont' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardRichTextFont' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | ofSize: .standardRichTextFontSize)
34 |
/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 |
AppKit.NSApplication:12:30: note: property declared here
10 | @available(swift, obsoleted: 3, renamed: "window(withWindowNumber:)")
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | @MainActor weak open var mainWindow: NSWindow? { get }
| `- note: property declared here
13 | weak open var keyWindow: NSWindow? { get }
14 | open var isActive: Bool { get }
/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 |
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/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
AppKit.NSAlert:33:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | open func beginSheetModalForWindow(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
32 | open var window: NSWindow { get }
33 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
34 | }
/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
AppKit.NSAlert:5:25: note: mutation of this property is only permitted within the actor
3 | @available(*, unavailable, renamed: "init(error:)", message: "Not available in Swift")
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
/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 |
AppKit.NSAlert:6:25: note: mutation of this property is only permitted within the actor
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
6 | @MainActor open var informativeText: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
/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
AppKit.NSAlert:12:25: note: mutation of this property is only permitted within the actor
10 | open func addButtonWithTitle(_ title: String) -> NSButton
11 | open var buttons: [NSButton] { get }
12 | @MainActor open var alertStyle: NSAlert.Style { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var showsHelp: Bool { get set }
14 | open var helpAnchor: NSHelpManager.AnchorName? { get set }
/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
AppKit.NSTextField:40:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
38 | @available(macOS 15.2, *)
39 | open var allowsWritingTools: Bool { get set }
40 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
41 | public init?(coder: NSCoder)
42 | public convenience init()
/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
AppKit.NSTextField:3:14: note: mutation of this property is only permitted within the actor
1 | @MainActor open class NSTextField : NSControl, NSUserInterfaceValidations, NSAccessibilityNavigableStaticText, NSTextContent {
2 | @available(macOS 10.10, *)
3 | open var placeholderString: String? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.10, *)
5 | @NSCopying open var placeholderAttributedString: NSAttributedString? { get set }
/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 |
AppKit.NSControl:24:25: note: mutation of this property is only permitted within the actor
22 | open var formatter: Formatter? { get set }
23 | open var objectValue: Any? { get set }
24 | @MainActor open var stringValue: String { get set }
| `- note: mutation of this property is only permitted within the actor
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 | open var intValue: Int32 { get set }
/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
AppKit.NSAlert:17:14: note: mutation of this property is only permitted within the actor
15 | weak open var delegate: (any NSAlertDelegate)? { get set }
16 | @available(macOS 10.5, *)
17 | open var accessoryView: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
18 | @available(macOS 10.5, *)
19 | open func layout()
/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 | }
AppKit.NSControl:4:19: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | weak open var target: AnyObject? { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open var action: Selector? { get set }
6 | open var tag: Int { get set }
/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 |
AppKit.NSControl:5:14: note: mutation of this property is only permitted within the actor
3 | public init?(coder: NSCoder)
4 | weak open var target: AnyObject? { get set }
5 | open var action: Selector? { get set }
| `- note: mutation of this property is only permitted within the actor
6 | open var tag: Int { get set }
7 | open var ignoresMultiClick: Bool { get set }
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:20:26: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
18 | @available(macOS 10.5, *)
19 | open func layout()
20 | @MainActor open func runModal() -> NSApplication.ModalResponse
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
21 | @available(macOS 10.5, *)
22 | open var showsSuppressionButton: Bool { get set }
/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)
AppKit.NSControl:24:25: note: property declared here
22 | open var formatter: Formatter? { get set }
23 | open var objectValue: Any? { get set }
24 | @MainActor open var stringValue: String { get set }
| `- note: property declared here
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 | open var intValue: Int32 { get set }
/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 |
AppKit.NSControl:24:25: note: property declared here
22 | open var formatter: Formatter? { get set }
23 | open var objectValue: Any? { get set }
24 | @MainActor open var stringValue: String { get set }
| `- note: property declared here
25 | @NSCopying open var attributedStringValue: NSAttributedString { get set }
26 | open var intValue: Int32 { get set }
/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
AppKit.NSAlert:33:23: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
31 | open func beginSheetModalForWindow(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
32 | open var window: NSWindow { get }
33 | @MainActor public init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
34 | }
/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
AppKit.NSAlert:5:25: note: mutation of this property is only permitted within the actor
3 | @available(*, unavailable, renamed: "init(error:)", message: "Not available in Swift")
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
/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")
AppKit.NSAlert:6:25: note: mutation of this property is only permitted within the actor
4 | open class func alertWithError(_ error: any Error) -> NSAlert
5 | @MainActor open var messageText: String { get set }
6 | @MainActor open var informativeText: String { get set }
| `- note: mutation of this property is only permitted within the actor
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
/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")
AppKit.NSAlert:12:25: note: mutation of this property is only permitted within the actor
10 | open func addButtonWithTitle(_ title: String) -> NSButton
11 | open var buttons: [NSButton] { get }
12 | @MainActor open var alertStyle: NSAlert.Style { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var showsHelp: Bool { get set }
14 | open var helpAnchor: NSHelpManager.AnchorName? { get set }
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:8:26: note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
6 | @MainActor open var informativeText: String { get set }
7 | open var icon: NSImage! { get set }
8 | @MainActor open func addButton(withTitle title: String) -> NSButton
| `- note: calls to instance method 'addButton(withTitle:)' from outside of its actor context are implicitly asynchronous
9 | @available(swift, obsoleted: 3, renamed: "addButton(withTitle:)")
10 | open func addButtonWithTitle(_ title: String) -> NSButton
/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:20:26: note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
18 | @available(macOS 10.5, *)
19 | open func layout()
20 | @MainActor open func runModal() -> NSApplication.ModalResponse
| `- note: calls to instance method 'runModal()' from outside of its actor context are implicitly asynchronous
21 | @available(macOS 10.5, *)
22 | open var showsSuppressionButton: Bool { get set }
Build complete! (26.65s)
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.