Build Information
Successful build of InfomaniakRichHTMLEditor, reference 1.2.0 (eba94e
), with Swift 6.0 (beta) for macOS (SPM) on 16 Sep 2024 17:27:39 UTC.
Swift 6 data race errors: 10
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Infomaniak/swift-rich-html-editor.git
Reference: 1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Infomaniak/swift-rich-html-editor
* tag 1.2.0 -> FETCH_HEAD
HEAD is now at eba94ed Merge pull request #2 from Infomaniak/fix-swiftui-fixed-size
Cloned https://github.com/Infomaniak/swift-rich-html-editor.git
Revision (git rev-parse @):
eba94eddbb0a0e57ee78227ef790e7ecc02148ce
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Infomaniak/swift-rich-html-editor.git at 1.2.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Infomaniak/swift-rich-html-editor.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/14] Copying utils.js
[0/14] Copying selection.js
[0/14] Copying javascriptBridge.js
[0/14] Copying links.js
[4/14] Copying text-attributes.js
[5/14] Write sources
[5/14] Copying main.js
[6/14] Copying style.css
[8/14] Copying observer.js
[9/14] Copying index.html
[9/14] Copying focus.js
[11/14] Copying commands.js
[12/14] Copying captureLog.js
[13/14] Write swift-version-117DEE11B69C53C9.txt
[15/39] Emitting module InfomaniakRichHTMLEditor
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:299:10: warning: main actor-isolated instance method 'editorDidLoad()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
296 | // MARK: - ScriptMessageHandlerDelegate
297 |
298 | extension RichHTMLEditorView: ScriptMessageHandlerDelegate {
| `- note: add '@preconcurrency' to the 'ScriptMessageHandlerDelegate' conformance to defer isolation checking to run time
299 | func editorDidLoad() {
| |- warning: main actor-isolated instance method 'editorDidLoad()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'editorDidLoad()' to make this instance method not isolated to the actor
300 | javaScriptManager.isDOMContentLoaded = true
301 | delegate?.richHTMLEditorViewDidLoad(self)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:18:10: note: mark the protocol requirement 'editorDidLoad()' 'async' to allow actor-isolated conformances
16 |
17 | protocol ScriptMessageHandlerDelegate: AnyObject {
18 | func editorDidLoad()
| `- note: mark the protocol requirement 'editorDidLoad()' 'async' to allow actor-isolated conformances
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:304:10: warning: main actor-isolated instance method 'contentDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
302 | }
303 |
304 | func contentDidChange(_ text: String) {
| |- warning: main actor-isolated instance method 'contentDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'contentDidChange' to make this instance method not isolated to the actor
305 | rawHTMLContent = text
306 | delegate?.richHTMLEditorViewDidChange(self)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:19:10: note: mark the protocol requirement 'contentDidChange' 'async' to allow actor-isolated conformances
17 | protocol ScriptMessageHandlerDelegate: AnyObject {
18 | func editorDidLoad()
19 | func contentDidChange(_ text: String)
| `- note: mark the protocol requirement 'contentDidChange' 'async' to allow actor-isolated conformances
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:309:10: warning: main actor-isolated instance method 'contentHeightDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
307 | }
308 |
309 | func contentHeightDidChange(_ contentHeight: CGFloat) {
| |- warning: main actor-isolated instance method 'contentHeightDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'contentHeightDidChange' to make this instance method not isolated to the actor
310 | rawContentHeight = contentHeight
311 | invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:20:10: note: mark the protocol requirement 'contentHeightDidChange' 'async' to allow actor-isolated conformances
18 | func editorDidLoad()
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
| `- note: mark the protocol requirement 'contentHeightDidChange' 'async' to allow actor-isolated conformances
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
22 | func caretPositionDidChange(_ caretRect: CGRect)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:314:10: warning: main actor-isolated instance method 'selectedTextAttributesDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
312 | }
313 |
314 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?) {
| |- warning: main actor-isolated instance method 'selectedTextAttributesDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectedTextAttributesDidChange' to make this instance method not isolated to the actor
315 | guard let selectedTextAttributes else {
316 | return
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:21:10: note: mark the protocol requirement 'selectedTextAttributesDidChange' 'async' to allow actor-isolated conformances
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
| `- note: mark the protocol requirement 'selectedTextAttributesDidChange' 'async' to allow actor-isolated conformances
22 | func caretPositionDidChange(_ caretRect: CGRect)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:327:10: warning: main actor-isolated instance method 'caretPositionDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
325 | }
326 |
327 | func caretPositionDidChange(_ caretRect: CGRect) {
| |- warning: main actor-isolated instance method 'caretPositionDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'caretPositionDidChange' to make this instance method not isolated to the actor
328 | delegate?.richHTMLEditorView(self, caretPositionDidChange: caretRect)
329 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:22:10: note: mark the protocol requirement 'caretPositionDidChange' 'async' to allow actor-isolated conformances
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
22 | func caretPositionDidChange(_ caretRect: CGRect)
| `- note: mark the protocol requirement 'caretPositionDidChange' 'async' to allow actor-isolated conformances
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:342:10: warning: main actor-isolated instance method 'javascriptFunctionDidFail(error:function:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
339 | // MARK: - JavaScriptManagerDelegate
340 |
341 | extension RichHTMLEditorView: JavaScriptManagerDelegate {
| `- note: add '@preconcurrency' to the 'JavaScriptManagerDelegate' conformance to defer isolation checking to run time
342 | func javascriptFunctionDidFail(error: any Error, function: String) {
| |- warning: main actor-isolated instance method 'javascriptFunctionDidFail(error:function:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'javascriptFunctionDidFail(error:function:)' to make this instance method not isolated to the actor
343 | delegate?.richHTMLEditorView(self, javascriptFunctionDidFail: error, whileExecuting: function)
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:17:10: note: mark the protocol requirement 'javascriptFunctionDidFail(error:function:)' 'async' to allow actor-isolated conformances
15 |
16 | protocol JavaScriptManagerDelegate: AnyObject {
17 | func javascriptFunctionDidFail(error: any Error, function: String)
| `- note: mark the protocol requirement 'javascriptFunctionDidFail(error:function:)' 'async' to allow actor-isolated conformances
18 | }
19 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:35:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(() -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | public struct OnEditorLoadedKey: EnvironmentKey {
35 | public static let defaultValue: (() -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(() -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
36 | }
37 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:39:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((CGRect) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | public struct OnCaretPositionChangeKey: EnvironmentKey {
39 | public static let defaultValue: ((CGRect) -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((CGRect) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
40 | }
41 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:43:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((any Error, String) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | public struct OnJavaScriptFunctionFailKey: EnvironmentKey {
43 | public static let defaultValue: ((any Error, String) -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((any Error, String) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
44 | }
45 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:47:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((RichHTMLEditorView) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | public struct IntrospectEditorKey: EnvironmentKey {
47 | public static let defaultValue: ((RichHTMLEditorView) -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((RichHTMLEditorView) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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 |
[16/41] Compiling InfomaniakRichHTMLEditor ScriptMessageHandler.swift
[17/41] Compiling InfomaniakRichHTMLEditor resource_bundle_accessor.swift
[18/41] Compiling InfomaniakRichHTMLEditor PlateformColor+Extension.swift
[19/41] Compiling InfomaniakRichHTMLEditor String+Escaped.swift
[20/41] Compiling InfomaniakRichHTMLEditor UIView+Extension.swift
[21/41] Compiling InfomaniakRichHTMLEditor TextJustification.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Models/UserScript.swift:21:57: warning: call to main actor-isolated instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 | let injectionTime: WKUserScriptInjectionTime
19 |
20 | func load(to webView: WKWebView) throws {
| `- note: add '@MainActor' to make instance method 'load(to:)' part of global actor 'MainActor'
21 | try webView.configuration.userContentController.addUserScript(
| `- warning: call to main actor-isolated instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | named: name,
23 | injectionTime: injectionTime,
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Extensions/WKUserContentController+Extension.swift:21:10: note: calls to instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' from outside of its actor context are implicitly asynchronous
19 | }
20 |
21 | func addUserScript(named filename: String, injectionTime: WKUserScriptInjectionTime, forMainFrameOnly: Bool) throws {
| `- note: calls to instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' from outside of its actor context are implicitly asynchronous
22 | guard let url = Bundle.module.url(forResource: filename, withExtension: "js"), let document = try? String(contentsOf: url)
23 | else { throw EditorError.impossibleToLoadWKUserScript(filename: filename) }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Models/UserScript.swift:21:35: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 | let injectionTime: WKUserScriptInjectionTime
19 |
20 | func load(to webView: WKWebView) throws {
| `- note: add '@MainActor' to make instance method 'load(to:)' part of global actor 'MainActor'
21 | try webView.configuration.userContentController.addUserScript(
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | named: name,
23 | injectionTime: injectionTime,
WebKit.WKWebViewConfiguration:5:25: note: property declared here
3 | open var processPool: WKProcessPool { get set }
4 | open var preferences: WKPreferences { get set }
5 | @MainActor open var userContentController: WKUserContentController { get set }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var websiteDataStore: WKWebsiteDataStore { get set }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Models/UserScript.swift:21:21: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 | let injectionTime: WKUserScriptInjectionTime
19 |
20 | func load(to webView: WKWebView) throws {
| `- note: add '@MainActor' to make instance method 'load(to:)' part of global actor 'MainActor'
21 | try webView.configuration.userContentController.addUserScript(
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | named: name,
23 | injectionTime: injectionTime,
WebKit.WKWebView:3:36: note: property declared here
1 | @available(macOS 10.10, *)
2 | @MainActor open class WKWebView : NSView {
3 | @NSCopying @MainActor open var configuration: WKWebViewConfiguration { get }
| `- note: property declared here
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
[22/41] Compiling InfomaniakRichHTMLEditor UITextAttributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Models/UserScript.swift:21:57: warning: call to main actor-isolated instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 | let injectionTime: WKUserScriptInjectionTime
19 |
20 | func load(to webView: WKWebView) throws {
| `- note: add '@MainActor' to make instance method 'load(to:)' part of global actor 'MainActor'
21 | try webView.configuration.userContentController.addUserScript(
| `- warning: call to main actor-isolated instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | named: name,
23 | injectionTime: injectionTime,
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Extensions/WKUserContentController+Extension.swift:21:10: note: calls to instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' from outside of its actor context are implicitly asynchronous
19 | }
20 |
21 | func addUserScript(named filename: String, injectionTime: WKUserScriptInjectionTime, forMainFrameOnly: Bool) throws {
| `- note: calls to instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' from outside of its actor context are implicitly asynchronous
22 | guard let url = Bundle.module.url(forResource: filename, withExtension: "js"), let document = try? String(contentsOf: url)
23 | else { throw EditorError.impossibleToLoadWKUserScript(filename: filename) }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Models/UserScript.swift:21:35: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 | let injectionTime: WKUserScriptInjectionTime
19 |
20 | func load(to webView: WKWebView) throws {
| `- note: add '@MainActor' to make instance method 'load(to:)' part of global actor 'MainActor'
21 | try webView.configuration.userContentController.addUserScript(
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | named: name,
23 | injectionTime: injectionTime,
WebKit.WKWebViewConfiguration:5:25: note: property declared here
3 | open var processPool: WKProcessPool { get set }
4 | open var preferences: WKPreferences { get set }
5 | @MainActor open var userContentController: WKUserContentController { get set }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var websiteDataStore: WKWebsiteDataStore { get set }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Models/UserScript.swift:21:21: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 | let injectionTime: WKUserScriptInjectionTime
19 |
20 | func load(to webView: WKWebView) throws {
| `- note: add '@MainActor' to make instance method 'load(to:)' part of global actor 'MainActor'
21 | try webView.configuration.userContentController.addUserScript(
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | named: name,
23 | injectionTime: injectionTime,
WebKit.WKWebView:3:36: note: property declared here
1 | @available(macOS 10.10, *)
2 | @MainActor open class WKWebView : NSView {
3 | @NSCopying @MainActor open var configuration: WKWebViewConfiguration { get }
| `- note: property declared here
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
[23/41] Compiling InfomaniakRichHTMLEditor UserScript.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Models/UserScript.swift:21:57: warning: call to main actor-isolated instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 | let injectionTime: WKUserScriptInjectionTime
19 |
20 | func load(to webView: WKWebView) throws {
| `- note: add '@MainActor' to make instance method 'load(to:)' part of global actor 'MainActor'
21 | try webView.configuration.userContentController.addUserScript(
| `- warning: call to main actor-isolated instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | named: name,
23 | injectionTime: injectionTime,
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Extensions/WKUserContentController+Extension.swift:21:10: note: calls to instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' from outside of its actor context are implicitly asynchronous
19 | }
20 |
21 | func addUserScript(named filename: String, injectionTime: WKUserScriptInjectionTime, forMainFrameOnly: Bool) throws {
| `- note: calls to instance method 'addUserScript(named:injectionTime:forMainFrameOnly:)' from outside of its actor context are implicitly asynchronous
22 | guard let url = Bundle.module.url(forResource: filename, withExtension: "js"), let document = try? String(contentsOf: url)
23 | else { throw EditorError.impossibleToLoadWKUserScript(filename: filename) }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Models/UserScript.swift:21:35: warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 | let injectionTime: WKUserScriptInjectionTime
19 |
20 | func load(to webView: WKWebView) throws {
| `- note: add '@MainActor' to make instance method 'load(to:)' part of global actor 'MainActor'
21 | try webView.configuration.userContentController.addUserScript(
| `- warning: main actor-isolated property 'userContentController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | named: name,
23 | injectionTime: injectionTime,
WebKit.WKWebViewConfiguration:5:25: note: property declared here
3 | open var processPool: WKProcessPool { get set }
4 | open var preferences: WKPreferences { get set }
5 | @MainActor open var userContentController: WKUserContentController { get set }
| `- note: property declared here
6 | @available(macOS 10.11, *)
7 | open var websiteDataStore: WKWebsiteDataStore { get set }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Models/UserScript.swift:21:21: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
18 | let injectionTime: WKUserScriptInjectionTime
19 |
20 | func load(to webView: WKWebView) throws {
| `- note: add '@MainActor' to make instance method 'load(to:)' part of global actor 'MainActor'
21 | try webView.configuration.userContentController.addUserScript(
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
22 | named: name,
23 | injectionTime: injectionTime,
WebKit.WKWebView:3:36: note: property declared here
1 | @available(macOS 10.10, *)
2 | @MainActor open class WKWebView : NSView {
3 | @NSCopying @MainActor open var configuration: WKWebViewConfiguration { get }
| `- note: property declared here
4 | weak open var navigationDelegate: (any WKNavigationDelegate)? { get set }
5 | weak open var uiDelegate: (any WKUIDelegate)? { get set }
[24/41] Compiling InfomaniakRichHTMLEditor WKUserContentController+Extension.swift
[25/41] Compiling InfomaniakRichHTMLEditor WKWebView+Extension.swift
[26/41] Compiling InfomaniakRichHTMLEditor CaretPosition.swift
[27/41] Compiling InfomaniakRichHTMLEditor RichHTMLEditorView+Commands.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:299:10: warning: main actor-isolated instance method 'editorDidLoad()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
296 | // MARK: - ScriptMessageHandlerDelegate
297 |
298 | extension RichHTMLEditorView: ScriptMessageHandlerDelegate {
| `- note: add '@preconcurrency' to the 'ScriptMessageHandlerDelegate' conformance to defer isolation checking to run time
299 | func editorDidLoad() {
| |- warning: main actor-isolated instance method 'editorDidLoad()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'editorDidLoad()' to make this instance method not isolated to the actor
300 | javaScriptManager.isDOMContentLoaded = true
301 | delegate?.richHTMLEditorViewDidLoad(self)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:18:10: note: mark the protocol requirement 'editorDidLoad()' 'async' to allow actor-isolated conformances
16 |
17 | protocol ScriptMessageHandlerDelegate: AnyObject {
18 | func editorDidLoad()
| `- note: mark the protocol requirement 'editorDidLoad()' 'async' to allow actor-isolated conformances
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:304:10: warning: main actor-isolated instance method 'contentDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
302 | }
303 |
304 | func contentDidChange(_ text: String) {
| |- warning: main actor-isolated instance method 'contentDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'contentDidChange' to make this instance method not isolated to the actor
305 | rawHTMLContent = text
306 | delegate?.richHTMLEditorViewDidChange(self)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:19:10: note: mark the protocol requirement 'contentDidChange' 'async' to allow actor-isolated conformances
17 | protocol ScriptMessageHandlerDelegate: AnyObject {
18 | func editorDidLoad()
19 | func contentDidChange(_ text: String)
| `- note: mark the protocol requirement 'contentDidChange' 'async' to allow actor-isolated conformances
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:309:10: warning: main actor-isolated instance method 'contentHeightDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
307 | }
308 |
309 | func contentHeightDidChange(_ contentHeight: CGFloat) {
| |- warning: main actor-isolated instance method 'contentHeightDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'contentHeightDidChange' to make this instance method not isolated to the actor
310 | rawContentHeight = contentHeight
311 | invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:20:10: note: mark the protocol requirement 'contentHeightDidChange' 'async' to allow actor-isolated conformances
18 | func editorDidLoad()
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
| `- note: mark the protocol requirement 'contentHeightDidChange' 'async' to allow actor-isolated conformances
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
22 | func caretPositionDidChange(_ caretRect: CGRect)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:314:10: warning: main actor-isolated instance method 'selectedTextAttributesDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
312 | }
313 |
314 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?) {
| |- warning: main actor-isolated instance method 'selectedTextAttributesDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectedTextAttributesDidChange' to make this instance method not isolated to the actor
315 | guard let selectedTextAttributes else {
316 | return
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:21:10: note: mark the protocol requirement 'selectedTextAttributesDidChange' 'async' to allow actor-isolated conformances
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
| `- note: mark the protocol requirement 'selectedTextAttributesDidChange' 'async' to allow actor-isolated conformances
22 | func caretPositionDidChange(_ caretRect: CGRect)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:327:10: warning: main actor-isolated instance method 'caretPositionDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
325 | }
326 |
327 | func caretPositionDidChange(_ caretRect: CGRect) {
| |- warning: main actor-isolated instance method 'caretPositionDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'caretPositionDidChange' to make this instance method not isolated to the actor
328 | delegate?.richHTMLEditorView(self, caretPositionDidChange: caretRect)
329 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:22:10: note: mark the protocol requirement 'caretPositionDidChange' 'async' to allow actor-isolated conformances
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
22 | func caretPositionDidChange(_ caretRect: CGRect)
| `- note: mark the protocol requirement 'caretPositionDidChange' 'async' to allow actor-isolated conformances
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:342:10: warning: main actor-isolated instance method 'javascriptFunctionDidFail(error:function:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
339 | // MARK: - JavaScriptManagerDelegate
340 |
341 | extension RichHTMLEditorView: JavaScriptManagerDelegate {
| `- note: add '@preconcurrency' to the 'JavaScriptManagerDelegate' conformance to defer isolation checking to run time
342 | func javascriptFunctionDidFail(error: any Error, function: String) {
| |- warning: main actor-isolated instance method 'javascriptFunctionDidFail(error:function:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'javascriptFunctionDidFail(error:function:)' to make this instance method not isolated to the actor
343 | delegate?.richHTMLEditorView(self, javascriptFunctionDidFail: error, whileExecuting: function)
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:17:10: note: mark the protocol requirement 'javascriptFunctionDidFail(error:function:)' 'async' to allow actor-isolated conformances
15 |
16 | protocol JavaScriptManagerDelegate: AnyObject {
17 | func javascriptFunctionDidFail(error: any Error, function: String)
| `- note: mark the protocol requirement 'javascriptFunctionDidFail(error:function:)' 'async' to allow actor-isolated conformances
18 | }
19 |
[28/41] Compiling InfomaniakRichHTMLEditor RichHTMLEditorView.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:299:10: warning: main actor-isolated instance method 'editorDidLoad()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
296 | // MARK: - ScriptMessageHandlerDelegate
297 |
298 | extension RichHTMLEditorView: ScriptMessageHandlerDelegate {
| `- note: add '@preconcurrency' to the 'ScriptMessageHandlerDelegate' conformance to defer isolation checking to run time
299 | func editorDidLoad() {
| |- warning: main actor-isolated instance method 'editorDidLoad()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'editorDidLoad()' to make this instance method not isolated to the actor
300 | javaScriptManager.isDOMContentLoaded = true
301 | delegate?.richHTMLEditorViewDidLoad(self)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:18:10: note: mark the protocol requirement 'editorDidLoad()' 'async' to allow actor-isolated conformances
16 |
17 | protocol ScriptMessageHandlerDelegate: AnyObject {
18 | func editorDidLoad()
| `- note: mark the protocol requirement 'editorDidLoad()' 'async' to allow actor-isolated conformances
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:304:10: warning: main actor-isolated instance method 'contentDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
302 | }
303 |
304 | func contentDidChange(_ text: String) {
| |- warning: main actor-isolated instance method 'contentDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'contentDidChange' to make this instance method not isolated to the actor
305 | rawHTMLContent = text
306 | delegate?.richHTMLEditorViewDidChange(self)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:19:10: note: mark the protocol requirement 'contentDidChange' 'async' to allow actor-isolated conformances
17 | protocol ScriptMessageHandlerDelegate: AnyObject {
18 | func editorDidLoad()
19 | func contentDidChange(_ text: String)
| `- note: mark the protocol requirement 'contentDidChange' 'async' to allow actor-isolated conformances
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:309:10: warning: main actor-isolated instance method 'contentHeightDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
307 | }
308 |
309 | func contentHeightDidChange(_ contentHeight: CGFloat) {
| |- warning: main actor-isolated instance method 'contentHeightDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'contentHeightDidChange' to make this instance method not isolated to the actor
310 | rawContentHeight = contentHeight
311 | invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:20:10: note: mark the protocol requirement 'contentHeightDidChange' 'async' to allow actor-isolated conformances
18 | func editorDidLoad()
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
| `- note: mark the protocol requirement 'contentHeightDidChange' 'async' to allow actor-isolated conformances
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
22 | func caretPositionDidChange(_ caretRect: CGRect)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:314:10: warning: main actor-isolated instance method 'selectedTextAttributesDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
312 | }
313 |
314 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?) {
| |- warning: main actor-isolated instance method 'selectedTextAttributesDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectedTextAttributesDidChange' to make this instance method not isolated to the actor
315 | guard let selectedTextAttributes else {
316 | return
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:21:10: note: mark the protocol requirement 'selectedTextAttributesDidChange' 'async' to allow actor-isolated conformances
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
| `- note: mark the protocol requirement 'selectedTextAttributesDidChange' 'async' to allow actor-isolated conformances
22 | func caretPositionDidChange(_ caretRect: CGRect)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:327:10: warning: main actor-isolated instance method 'caretPositionDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
325 | }
326 |
327 | func caretPositionDidChange(_ caretRect: CGRect) {
| |- warning: main actor-isolated instance method 'caretPositionDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'caretPositionDidChange' to make this instance method not isolated to the actor
328 | delegate?.richHTMLEditorView(self, caretPositionDidChange: caretRect)
329 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:22:10: note: mark the protocol requirement 'caretPositionDidChange' 'async' to allow actor-isolated conformances
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
22 | func caretPositionDidChange(_ caretRect: CGRect)
| `- note: mark the protocol requirement 'caretPositionDidChange' 'async' to allow actor-isolated conformances
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:342:10: warning: main actor-isolated instance method 'javascriptFunctionDidFail(error:function:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
339 | // MARK: - JavaScriptManagerDelegate
340 |
341 | extension RichHTMLEditorView: JavaScriptManagerDelegate {
| `- note: add '@preconcurrency' to the 'JavaScriptManagerDelegate' conformance to defer isolation checking to run time
342 | func javascriptFunctionDidFail(error: any Error, function: String) {
| |- warning: main actor-isolated instance method 'javascriptFunctionDidFail(error:function:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'javascriptFunctionDidFail(error:function:)' to make this instance method not isolated to the actor
343 | delegate?.richHTMLEditorView(self, javascriptFunctionDidFail: error, whileExecuting: function)
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:17:10: note: mark the protocol requirement 'javascriptFunctionDidFail(error:function:)' 'async' to allow actor-isolated conformances
15 |
16 | protocol JavaScriptManagerDelegate: AnyObject {
17 | func javascriptFunctionDidFail(error: any Error, function: String)
| `- note: mark the protocol requirement 'javascriptFunctionDidFail(error:function:)' 'async' to allow actor-isolated conformances
18 | }
19 |
[29/41] Compiling InfomaniakRichHTMLEditor RichHTMLEditorViewDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:299:10: warning: main actor-isolated instance method 'editorDidLoad()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
296 | // MARK: - ScriptMessageHandlerDelegate
297 |
298 | extension RichHTMLEditorView: ScriptMessageHandlerDelegate {
| `- note: add '@preconcurrency' to the 'ScriptMessageHandlerDelegate' conformance to defer isolation checking to run time
299 | func editorDidLoad() {
| |- warning: main actor-isolated instance method 'editorDidLoad()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'editorDidLoad()' to make this instance method not isolated to the actor
300 | javaScriptManager.isDOMContentLoaded = true
301 | delegate?.richHTMLEditorViewDidLoad(self)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:18:10: note: mark the protocol requirement 'editorDidLoad()' 'async' to allow actor-isolated conformances
16 |
17 | protocol ScriptMessageHandlerDelegate: AnyObject {
18 | func editorDidLoad()
| `- note: mark the protocol requirement 'editorDidLoad()' 'async' to allow actor-isolated conformances
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:304:10: warning: main actor-isolated instance method 'contentDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
302 | }
303 |
304 | func contentDidChange(_ text: String) {
| |- warning: main actor-isolated instance method 'contentDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'contentDidChange' to make this instance method not isolated to the actor
305 | rawHTMLContent = text
306 | delegate?.richHTMLEditorViewDidChange(self)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:19:10: note: mark the protocol requirement 'contentDidChange' 'async' to allow actor-isolated conformances
17 | protocol ScriptMessageHandlerDelegate: AnyObject {
18 | func editorDidLoad()
19 | func contentDidChange(_ text: String)
| `- note: mark the protocol requirement 'contentDidChange' 'async' to allow actor-isolated conformances
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:309:10: warning: main actor-isolated instance method 'contentHeightDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
307 | }
308 |
309 | func contentHeightDidChange(_ contentHeight: CGFloat) {
| |- warning: main actor-isolated instance method 'contentHeightDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'contentHeightDidChange' to make this instance method not isolated to the actor
310 | rawContentHeight = contentHeight
311 | invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:20:10: note: mark the protocol requirement 'contentHeightDidChange' 'async' to allow actor-isolated conformances
18 | func editorDidLoad()
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
| `- note: mark the protocol requirement 'contentHeightDidChange' 'async' to allow actor-isolated conformances
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
22 | func caretPositionDidChange(_ caretRect: CGRect)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:314:10: warning: main actor-isolated instance method 'selectedTextAttributesDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
312 | }
313 |
314 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?) {
| |- warning: main actor-isolated instance method 'selectedTextAttributesDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'selectedTextAttributesDidChange' to make this instance method not isolated to the actor
315 | guard let selectedTextAttributes else {
316 | return
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:21:10: note: mark the protocol requirement 'selectedTextAttributesDidChange' 'async' to allow actor-isolated conformances
19 | func contentDidChange(_ text: String)
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
| `- note: mark the protocol requirement 'selectedTextAttributesDidChange' 'async' to allow actor-isolated conformances
22 | func caretPositionDidChange(_ caretRect: CGRect)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:327:10: warning: main actor-isolated instance method 'caretPositionDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
325 | }
326 |
327 | func caretPositionDidChange(_ caretRect: CGRect) {
| |- warning: main actor-isolated instance method 'caretPositionDidChange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'caretPositionDidChange' to make this instance method not isolated to the actor
328 | delegate?.richHTMLEditorView(self, caretPositionDidChange: caretRect)
329 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/ScriptMessageHandler.swift:22:10: note: mark the protocol requirement 'caretPositionDidChange' 'async' to allow actor-isolated conformances
20 | func contentHeightDidChange(_ contentHeight: CGFloat)
21 | func selectedTextAttributesDidChange(_ selectedTextAttributes: UITextAttributes?)
22 | func caretPositionDidChange(_ caretRect: CGRect)
| `- note: mark the protocol requirement 'caretPositionDidChange' 'async' to allow actor-isolated conformances
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:342:10: warning: main actor-isolated instance method 'javascriptFunctionDidFail(error:function:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
339 | // MARK: - JavaScriptManagerDelegate
340 |
341 | extension RichHTMLEditorView: JavaScriptManagerDelegate {
| `- note: add '@preconcurrency' to the 'JavaScriptManagerDelegate' conformance to defer isolation checking to run time
342 | func javascriptFunctionDidFail(error: any Error, function: String) {
| |- warning: main actor-isolated instance method 'javascriptFunctionDidFail(error:function:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'javascriptFunctionDidFail(error:function:)' to make this instance method not isolated to the actor
343 | delegate?.richHTMLEditorView(self, javascriptFunctionDidFail: error, whileExecuting: function)
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:17:10: note: mark the protocol requirement 'javascriptFunctionDidFail(error:function:)' 'async' to allow actor-isolated conformances
15 |
16 | protocol JavaScriptManagerDelegate: AnyObject {
17 | func javascriptFunctionDidFail(error: any Error, function: String)
| `- note: mark the protocol requirement 'javascriptFunctionDidFail(error:function:)' 'async' to allow actor-isolated conformances
18 | }
19 |
[30/41] Compiling InfomaniakRichHTMLEditor JavaScriptFormatterHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:100:18: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
97 | }
98 |
99 | private func evaluate(function: JavaScriptFunction) {
| `- note: add '@MainActor' to make instance method 'evaluate(function:)' part of global actor 'MainActor'
100 | webView?.evaluateJavaScript(function.call()) { [weak self] _, error in
| `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 | if let error {
102 | self?.delegate?.javascriptFunctionDidFail(error: error, function: function.identifier)
WebKit.WKWebView:46:26: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
44 | open func reloadFromOrigin() -> WKNavigation?
45 | open func stopLoading()
46 | @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)
| `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
47 | open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any
48 | @available(macOS 11.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:102:17: warning: capture of 'self' with non-sendable type 'JavaScriptManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | final class JavaScriptManager {
| `- note: class 'JavaScriptManager' does not conform to the 'Sendable' protocol
21 | var isDOMContentLoaded = false {
22 | didSet {
:
100 | webView?.evaluateJavaScript(function.call()) { [weak self] _, error in
101 | if let error {
102 | self?.delegate?.javascriptFunctionDidFail(error: error, function: function.identifier)
| `- warning: capture of 'self' with non-sendable type 'JavaScriptManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:102:83: warning: capture of 'function' with non-sendable type 'JavaScriptFunction' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | webView?.evaluateJavaScript(function.call()) { [weak self] _, error in
101 | if let error {
102 | self?.delegate?.javascriptFunctionDidFail(error: error, function: function.identifier)
| `- warning: capture of 'function' with non-sendable type 'JavaScriptFunction' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Models/JavaScriptFunction.swift:14:6: note: consider making enum 'JavaScriptFunction' conform to the 'Sendable' protocol
12 | // under the License.
13 |
14 | enum JavaScriptFunction {
| `- note: consider making enum 'JavaScriptFunction' conform to the 'Sendable' protocol
15 | case execCommand(command: String, argument: Any? = nil)
16 | case setContent(content: String)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:102:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
100 | webView?.evaluateJavaScript(function.call()) { [weak self] _, error in
101 | if let error {
102 | self?.delegate?.javascriptFunctionDidFail(error: error, function: function.identifier)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:102:83: warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
100 | webView?.evaluateJavaScript(function.call()) { [weak self] _, error in
101 | if let error {
102 | self?.delegate?.javascriptFunctionDidFail(error: error, function: function.identifier)
| |- warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'function' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
103 | }
104 | }
[31/41] Compiling InfomaniakRichHTMLEditor JavaScriptManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:100:18: warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
97 | }
98 |
99 | private func evaluate(function: JavaScriptFunction) {
| `- note: add '@MainActor' to make instance method 'evaluate(function:)' part of global actor 'MainActor'
100 | webView?.evaluateJavaScript(function.call()) { [weak self] _, error in
| `- warning: call to main actor-isolated instance method 'evaluateJavaScript(_:completionHandler:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
101 | if let error {
102 | self?.delegate?.javascriptFunctionDidFail(error: error, function: function.identifier)
WebKit.WKWebView:46:26: note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
44 | open func reloadFromOrigin() -> WKNavigation?
45 | open func stopLoading()
46 | @MainActor open func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil)
| `- note: calls to instance method 'evaluateJavaScript(_:completionHandler:)' from outside of its actor context are implicitly asynchronous
47 | open func evaluateJavaScript(_ javaScriptString: String) async throws -> Any
48 | @available(macOS 11.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:102:17: warning: capture of 'self' with non-sendable type 'JavaScriptManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | }
19 |
20 | final class JavaScriptManager {
| `- note: class 'JavaScriptManager' does not conform to the 'Sendable' protocol
21 | var isDOMContentLoaded = false {
22 | didSet {
:
100 | webView?.evaluateJavaScript(function.call()) { [weak self] _, error in
101 | if let error {
102 | self?.delegate?.javascriptFunctionDidFail(error: error, function: function.identifier)
| `- warning: capture of 'self' with non-sendable type 'JavaScriptManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:102:83: warning: capture of 'function' with non-sendable type 'JavaScriptFunction' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | webView?.evaluateJavaScript(function.call()) { [weak self] _, error in
101 | if let error {
102 | self?.delegate?.javascriptFunctionDidFail(error: error, function: function.identifier)
| `- warning: capture of 'function' with non-sendable type 'JavaScriptFunction' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Models/JavaScriptFunction.swift:14:6: note: consider making enum 'JavaScriptFunction' conform to the 'Sendable' protocol
12 | // under the License.
13 |
14 | enum JavaScriptFunction {
| `- note: consider making enum 'JavaScriptFunction' conform to the 'Sendable' protocol
15 | case execCommand(command: String, argument: Any? = nil)
16 | case setContent(content: String)
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:102:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
100 | webView?.evaluateJavaScript(function.call()) { [weak self] _, error in
101 | if let error {
102 | self?.delegate?.javascriptFunctionDidFail(error: error, function: function.identifier)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/WebViewBridge/JavaScriptManager.swift:102:83: warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
100 | webView?.evaluateJavaScript(function.call()) { [weak self] _, error in
101 | if let error {
102 | self?.delegate?.javascriptFunctionDidFail(error: error, function: function.identifier)
| |- warning: sending 'function' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'function' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
103 | }
104 | }
[32/41] Compiling InfomaniakRichHTMLEditor RichHTMLEditorCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:24:16: warning: main actor-isolated property 'onEditorLoaded' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
23 | public func richHTMLEditorViewDidLoad(_ richHTMLEditorView: RichHTMLEditorView) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorViewDidLoad' part of global actor 'MainActor'
24 | parent.onEditorLoaded?()
| `- warning: main actor-isolated property 'onEditorLoaded' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:31:40: note: property declared here
29 |
30 | @Environment(\.editorCSS) var editorCSS
31 | @Environment(\.onEditorLoaded) var onEditorLoaded
| `- note: property declared here
32 | @Environment(\.onCaretPositionChange) var onCaretPositionChange
33 | @Environment(\.onJavaScriptFunctionFail) var onJavaScriptFunctionFail
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:28:19: warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func richHTMLEditorViewDidChange(_ richHTMLEditorView: RichHTMLEditorView) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorViewDidChange' part of global actor 'MainActor'
28 | if parent.html != richHTMLEditorView.html {
| `- warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | parent.html = richHTMLEditorView.html
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:36:25: note: property declared here
34 | @Environment(\.introspectEditor) var introspectEditor
35 |
36 | @Binding public var html: String
| `- note: property declared here
37 | @ObservedObject public var textAttributes: TextAttributes
38 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:28:46: warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func richHTMLEditorViewDidChange(_ richHTMLEditorView: RichHTMLEditorView) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorViewDidChange' part of global actor 'MainActor'
28 | if parent.html != richHTMLEditorView.html {
| `- warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | parent.html = richHTMLEditorView.html
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:45:16: note: property declared here
43 |
44 | /// The HTML code that the editor view contains.
45 | public var html: String {
| `- note: property declared here
46 | get {
47 | return rawHTMLContent
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:29:20: warning: main actor-isolated property 'html' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func richHTMLEditorViewDidChange(_ richHTMLEditorView: RichHTMLEditorView) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorViewDidChange' part of global actor 'MainActor'
28 | if parent.html != richHTMLEditorView.html {
29 | parent.html = richHTMLEditorView.html
| `- warning: main actor-isolated property 'html' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:36:25: note: mutation of this property is only permitted within the actor
34 | @Environment(\.introspectEditor) var introspectEditor
35 |
36 | @Binding public var html: String
| `- note: mutation of this property is only permitted within the actor
37 | @ObservedObject public var textAttributes: TextAttributes
38 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:29:46: warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func richHTMLEditorViewDidChange(_ richHTMLEditorView: RichHTMLEditorView) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorViewDidChange' part of global actor 'MainActor'
28 | if parent.html != richHTMLEditorView.html {
29 | parent.html = richHTMLEditorView.html
| `- warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:45:16: note: property declared here
43 |
44 | /// The HTML code that the editor view contains.
45 | public var html: String {
| `- note: property declared here
46 | get {
47 | return rawHTMLContent
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:34:16: warning: main actor-isolated property 'onCaretPositionChange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
31 | }
32 |
33 | public func richHTMLEditorView(_ richHTMLEditorView: RichHTMLEditorView, caretPositionDidChange caretPosition: CGRect) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorView(_:caretPositionDidChange:)' part of global actor 'MainActor'
34 | parent.onCaretPositionChange?(caretPosition)
| `- warning: main actor-isolated property 'onCaretPositionChange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:32:47: note: property declared here
30 | @Environment(\.editorCSS) var editorCSS
31 | @Environment(\.onEditorLoaded) var onEditorLoaded
32 | @Environment(\.onCaretPositionChange) var onCaretPositionChange
| `- note: property declared here
33 | @Environment(\.onJavaScriptFunctionFail) var onJavaScriptFunctionFail
34 | @Environment(\.introspectEditor) var introspectEditor
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:41:16: warning: main actor-isolated property 'textAttributes' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | }
36 |
37 | public func richHTMLEditorView(
| `- note: add '@MainActor' to make instance method 'richHTMLEditorView(_:selectedTextAttributesDidChange:)' part of global actor 'MainActor'
38 | _ richHTMLEditorView: RichHTMLEditorView,
39 | selectedTextAttributesDidChange textAttributes: UITextAttributes
40 | ) {
41 | parent.textAttributes.update(from: textAttributes)
| `- warning: main actor-isolated property 'textAttributes' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:37:32: note: property declared here
35 |
36 | @Binding public var html: String
37 | @ObservedObject public var textAttributes: TextAttributes
| `- note: property declared here
38 |
39 | public init(html: Binding<String>, textAttributes: TextAttributes) {
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:49:16: warning: main actor-isolated property 'onJavaScriptFunctionFail' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | }
43 |
44 | public func richHTMLEditorView(
| `- note: add '@MainActor' to make instance method 'richHTMLEditorView(_:javascriptFunctionDidFail:whileExecutingFunction:)' part of global actor 'MainActor'
45 | _ richHTMLEditorView: RichHTMLEditorView,
46 | javascriptFunctionDidFail javascriptError: any Error,
47 | whileExecutingFunction function: String
48 | ) {
49 | parent.onJavaScriptFunctionFail?(javascriptError, function)
| `- warning: main actor-isolated property 'onJavaScriptFunctionFail' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:33:50: note: property declared here
31 | @Environment(\.onEditorLoaded) var onEditorLoaded
32 | @Environment(\.onCaretPositionChange) var onCaretPositionChange
33 | @Environment(\.onJavaScriptFunctionFail) var onJavaScriptFunctionFail
| `- note: property declared here
34 | @Environment(\.introspectEditor) var introspectEditor
35 |
[33/41] Compiling InfomaniakRichHTMLEditor Constants.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:24:16: warning: main actor-isolated property 'onEditorLoaded' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
23 | public func richHTMLEditorViewDidLoad(_ richHTMLEditorView: RichHTMLEditorView) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorViewDidLoad' part of global actor 'MainActor'
24 | parent.onEditorLoaded?()
| `- warning: main actor-isolated property 'onEditorLoaded' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:31:40: note: property declared here
29 |
30 | @Environment(\.editorCSS) var editorCSS
31 | @Environment(\.onEditorLoaded) var onEditorLoaded
| `- note: property declared here
32 | @Environment(\.onCaretPositionChange) var onCaretPositionChange
33 | @Environment(\.onJavaScriptFunctionFail) var onJavaScriptFunctionFail
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:28:19: warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func richHTMLEditorViewDidChange(_ richHTMLEditorView: RichHTMLEditorView) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorViewDidChange' part of global actor 'MainActor'
28 | if parent.html != richHTMLEditorView.html {
| `- warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | parent.html = richHTMLEditorView.html
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:36:25: note: property declared here
34 | @Environment(\.introspectEditor) var introspectEditor
35 |
36 | @Binding public var html: String
| `- note: property declared here
37 | @ObservedObject public var textAttributes: TextAttributes
38 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:28:46: warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func richHTMLEditorViewDidChange(_ richHTMLEditorView: RichHTMLEditorView) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorViewDidChange' part of global actor 'MainActor'
28 | if parent.html != richHTMLEditorView.html {
| `- warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | parent.html = richHTMLEditorView.html
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:45:16: note: property declared here
43 |
44 | /// The HTML code that the editor view contains.
45 | public var html: String {
| `- note: property declared here
46 | get {
47 | return rawHTMLContent
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:29:20: warning: main actor-isolated property 'html' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func richHTMLEditorViewDidChange(_ richHTMLEditorView: RichHTMLEditorView) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorViewDidChange' part of global actor 'MainActor'
28 | if parent.html != richHTMLEditorView.html {
29 | parent.html = richHTMLEditorView.html
| `- warning: main actor-isolated property 'html' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:36:25: note: mutation of this property is only permitted within the actor
34 | @Environment(\.introspectEditor) var introspectEditor
35 |
36 | @Binding public var html: String
| `- note: mutation of this property is only permitted within the actor
37 | @ObservedObject public var textAttributes: TextAttributes
38 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:29:46: warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
27 | public func richHTMLEditorViewDidChange(_ richHTMLEditorView: RichHTMLEditorView) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorViewDidChange' part of global actor 'MainActor'
28 | if parent.html != richHTMLEditorView.html {
29 | parent.html = richHTMLEditorView.html
| `- warning: main actor-isolated property 'html' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView.swift:45:16: note: property declared here
43 |
44 | /// The HTML code that the editor view contains.
45 | public var html: String {
| `- note: property declared here
46 | get {
47 | return rawHTMLContent
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:34:16: warning: main actor-isolated property 'onCaretPositionChange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
31 | }
32 |
33 | public func richHTMLEditorView(_ richHTMLEditorView: RichHTMLEditorView, caretPositionDidChange caretPosition: CGRect) {
| `- note: add '@MainActor' to make instance method 'richHTMLEditorView(_:caretPositionDidChange:)' part of global actor 'MainActor'
34 | parent.onCaretPositionChange?(caretPosition)
| `- warning: main actor-isolated property 'onCaretPositionChange' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:32:47: note: property declared here
30 | @Environment(\.editorCSS) var editorCSS
31 | @Environment(\.onEditorLoaded) var onEditorLoaded
32 | @Environment(\.onCaretPositionChange) var onCaretPositionChange
| `- note: property declared here
33 | @Environment(\.onJavaScriptFunctionFail) var onJavaScriptFunctionFail
34 | @Environment(\.introspectEditor) var introspectEditor
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:41:16: warning: main actor-isolated property 'textAttributes' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | }
36 |
37 | public func richHTMLEditorView(
| `- note: add '@MainActor' to make instance method 'richHTMLEditorView(_:selectedTextAttributesDidChange:)' part of global actor 'MainActor'
38 | _ richHTMLEditorView: RichHTMLEditorView,
39 | selectedTextAttributesDidChange textAttributes: UITextAttributes
40 | ) {
41 | parent.textAttributes.update(from: textAttributes)
| `- warning: main actor-isolated property 'textAttributes' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:37:32: note: property declared here
35 |
36 | @Binding public var html: String
37 | @ObservedObject public var textAttributes: TextAttributes
| `- note: property declared here
38 |
39 | public init(html: Binding<String>, textAttributes: TextAttributes) {
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditorCoordinator.swift:49:16: warning: main actor-isolated property 'onJavaScriptFunctionFail' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | }
43 |
44 | public func richHTMLEditorView(
| `- note: add '@MainActor' to make instance method 'richHTMLEditorView(_:javascriptFunctionDidFail:whileExecutingFunction:)' part of global actor 'MainActor'
45 | _ richHTMLEditorView: RichHTMLEditorView,
46 | javascriptFunctionDidFail javascriptError: any Error,
47 | whileExecutingFunction function: String
48 | ) {
49 | parent.onJavaScriptFunctionFail?(javascriptError, function)
| `- warning: main actor-isolated property 'onJavaScriptFunctionFail' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor.swift:33:50: note: property declared here
31 | @Environment(\.onEditorLoaded) var onEditorLoaded
32 | @Environment(\.onCaretPositionChange) var onCaretPositionChange
33 | @Environment(\.onJavaScriptFunctionFail) var onJavaScriptFunctionFail
| `- note: property declared here
34 | @Environment(\.introspectEditor) var introspectEditor
35 |
[34/41] Compiling InfomaniakRichHTMLEditor EditorError.swift
[35/41] Compiling InfomaniakRichHTMLEditor ExecCommand.swift
[36/41] Compiling InfomaniakRichHTMLEditor JavaScriptFunction.swift
[37/41] Compiling InfomaniakRichHTMLEditor RichHTMLEditor+Environment.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:35:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(() -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | public struct OnEditorLoadedKey: EnvironmentKey {
35 | public static let defaultValue: (() -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(() -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
36 | }
37 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:39:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((CGRect) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | public struct OnCaretPositionChangeKey: EnvironmentKey {
39 | public static let defaultValue: ((CGRect) -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((CGRect) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
40 | }
41 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:43:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((any Error, String) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | public struct OnJavaScriptFunctionFailKey: EnvironmentKey {
43 | public static let defaultValue: ((any Error, String) -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((any Error, String) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
44 | }
45 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:47:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((RichHTMLEditorView) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | public struct IntrospectEditorKey: EnvironmentKey {
47 | public static let defaultValue: ((RichHTMLEditorView) -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((RichHTMLEditorView) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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 |
[38/41] Compiling InfomaniakRichHTMLEditor RichHTMLEditor.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:35:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(() -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | public struct OnEditorLoadedKey: EnvironmentKey {
35 | public static let defaultValue: (() -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '(() -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
36 | }
37 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:39:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((CGRect) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | public struct OnCaretPositionChangeKey: EnvironmentKey {
39 | public static let defaultValue: ((CGRect) -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((CGRect) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
40 | }
41 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:43:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((any Error, String) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | public struct OnJavaScriptFunctionFailKey: EnvironmentKey {
43 | public static let defaultValue: ((any Error, String) -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((any Error, String) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
44 | }
45 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Views/RichHTMLEditor+Environment.swift:47:23: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((RichHTMLEditorView) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | public struct IntrospectEditorKey: EnvironmentKey {
47 | public static let defaultValue: ((RichHTMLEditorView) -> Void)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '((RichHTMLEditorView) -> Void)?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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 |
[39/41] Compiling InfomaniakRichHTMLEditor TextAttributes+Commands.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:19:17: warning: call to main actor-isolated instance method 'removeFormat()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 | public extension TextAttributes {
17 | /// Removes all formatting from the current selection.
18 | func removeFormat() {
| `- note: add '@MainActor' to make instance method 'removeFormat()' part of global actor 'MainActor'
19 | editor?.removeFormat()
| `- warning: call to main actor-isolated instance method 'removeFormat()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:20:10: note: calls to instance method 'removeFormat()' from outside of its actor context are implicitly asynchronous
18 | public extension RichHTMLEditorView {
19 | /// Removes all formatting from the current selection.
20 | func removeFormat() {
| `- note: calls to instance method 'removeFormat()' from outside of its actor context are implicitly asynchronous
21 | execCommand(.removeFormat)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:24:17: warning: call to main actor-isolated instance method 'bold()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |
22 | /// Toggles bold for the current selection or at the insertion point.
23 | func bold() {
| `- note: add '@MainActor' to make instance method 'bold()' part of global actor 'MainActor'
24 | editor?.bold()
| `- warning: call to main actor-isolated instance method 'bold()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:25:10: note: calls to instance method 'bold()' from outside of its actor context are implicitly asynchronous
23 |
24 | /// Toggles bold for the current selection or at the insertion point.
25 | func bold() {
| `- note: calls to instance method 'bold()' from outside of its actor context are implicitly asynchronous
26 | execCommand(.bold)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:29:17: warning: call to main actor-isolated instance method 'italic()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 |
27 | /// Toggles italic for the current selection or at the insertion point.
28 | func italic() {
| `- note: add '@MainActor' to make instance method 'italic()' part of global actor 'MainActor'
29 | editor?.italic()
| `- warning: call to main actor-isolated instance method 'italic()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:30:10: note: calls to instance method 'italic()' from outside of its actor context are implicitly asynchronous
28 |
29 | /// Toggles italic for the current selection or at the insertion point.
30 | func italic() {
| `- note: calls to instance method 'italic()' from outside of its actor context are implicitly asynchronous
31 | execCommand(.italic)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:34:17: warning: call to main actor-isolated instance method 'underline()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 |
32 | /// Toggles underline for the current selection or at the insertion point.
33 | func underline() {
| `- note: add '@MainActor' to make instance method 'underline()' part of global actor 'MainActor'
34 | editor?.underline()
| `- warning: call to main actor-isolated instance method 'underline()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:35:10: note: calls to instance method 'underline()' from outside of its actor context are implicitly asynchronous
33 |
34 | /// Toggles underline for the current selection or at the insertion point.
35 | func underline() {
| `- note: calls to instance method 'underline()' from outside of its actor context are implicitly asynchronous
36 | execCommand(.underline)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:39:17: warning: call to main actor-isolated instance method 'strikethrough()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Toggles strikethrough for the current selection or at the insertion point.
38 | func strikethrough() {
| `- note: add '@MainActor' to make instance method 'strikethrough()' part of global actor 'MainActor'
39 | editor?.strikethrough()
| `- warning: call to main actor-isolated instance method 'strikethrough()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:40:10: note: calls to instance method 'strikethrough()' from outside of its actor context are implicitly asynchronous
38 |
39 | /// Toggles strikethrough for the current selection or at the insertion point.
40 | func strikethrough() {
| `- note: calls to instance method 'strikethrough()' from outside of its actor context are implicitly asynchronous
41 | execCommand(.strikeThrough)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:44:17: warning: call to main actor-isolated instance method 'toggleSubscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | /// Toggles subscript for the current selection or at the insertion point.
43 | func toggleSubscript() {
| `- note: add '@MainActor' to make instance method 'toggleSubscript()' part of global actor 'MainActor'
44 | editor?.toggleSubscript()
| `- warning: call to main actor-isolated instance method 'toggleSubscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | }
46 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:45:10: note: calls to instance method 'toggleSubscript()' from outside of its actor context are implicitly asynchronous
43 |
44 | /// Toggles subscript for the current selection or at the insertion point.
45 | func toggleSubscript() {
| `- note: calls to instance method 'toggleSubscript()' from outside of its actor context are implicitly asynchronous
46 | execCommand(.toggleSubscript)
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:49:17: warning: call to main actor-isolated instance method 'toggleSuperscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 |
47 | /// Toggles superscript for the current selection or at the insertion point.
48 | func toggleSuperscript() {
| `- note: add '@MainActor' to make instance method 'toggleSuperscript()' part of global actor 'MainActor'
49 | editor?.toggleSuperscript()
| `- warning: call to main actor-isolated instance method 'toggleSuperscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:50:10: note: calls to instance method 'toggleSuperscript()' from outside of its actor context are implicitly asynchronous
48 |
49 | /// Toggles superscript for the current selection or at the insertion point.
50 | func toggleSuperscript() {
| `- note: calls to instance method 'toggleSuperscript()' from outside of its actor context are implicitly asynchronous
51 | execCommand(.toggleSuperscript)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:54:17: warning: call to main actor-isolated instance method 'orderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 |
52 | /// Creates or remove a numbered ordered list for the current selection or at the insertion point.
53 | func orderedList() {
| `- note: add '@MainActor' to make instance method 'orderedList()' part of global actor 'MainActor'
54 | editor?.orderedList()
| `- warning: call to main actor-isolated instance method 'orderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:55:10: note: calls to instance method 'orderedList()' from outside of its actor context are implicitly asynchronous
53 |
54 | /// Creates or remove a numbered ordered list for the current selection or at the insertion point.
55 | func orderedList() {
| `- note: calls to instance method 'orderedList()' from outside of its actor context are implicitly asynchronous
56 | execCommand(.orderedList)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:59:17: warning: call to main actor-isolated instance method 'unorderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 |
57 | /// Creates or remove a bulleted unordered list for the current selection or at the insertion point.
58 | func unorderedList() {
| `- note: add '@MainActor' to make instance method 'unorderedList()' part of global actor 'MainActor'
59 | editor?.unorderedList()
| `- warning: call to main actor-isolated instance method 'unorderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:60:10: note: calls to instance method 'unorderedList()' from outside of its actor context are implicitly asynchronous
58 |
59 | /// Creates or remove a bulleted unordered list for the current selection or at the insertion point.
60 | func unorderedList() {
| `- note: calls to instance method 'unorderedList()' from outside of its actor context are implicitly asynchronous
61 | execCommand(.unorderedList)
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:68:17: warning: call to main actor-isolated instance method 'addLink(url:text:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | /// - url: The destination of the link, it is the value of the `href` attribute.
66 | /// - text: The optional label of the link, if nil the url will be used.
67 | func addLink(url: URL, text: String? = nil) {
| `- note: add '@MainActor' to make instance method 'addLink(url:text:)' part of global actor 'MainActor'
68 | editor?.addLink(url: url, text: text)
| `- warning: call to main actor-isolated instance method 'addLink(url:text:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:69:10: note: calls to instance method 'addLink(url:text:)' from outside of its actor context are implicitly asynchronous
67 | /// - url: The destination of the link, it is the value of the `href` attribute.
68 | /// - text: The optional label of the link, if nil the url will be used.
69 | func addLink(url: URL, text: String? = nil) {
| `- note: calls to instance method 'addLink(url:text:)' from outside of its actor context are implicitly asynchronous
70 | javaScriptManager.addLink(text: text, path: url.absoluteString)
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:73:17: warning: call to main actor-isolated instance method 'unlink()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | /// Removes all the links of the current selection or at the insertion point.
72 | func unlink() {
| `- note: add '@MainActor' to make instance method 'unlink()' part of global actor 'MainActor'
73 | editor?.unlink()
| `- warning: call to main actor-isolated instance method 'unlink()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:74:10: note: calls to instance method 'unlink()' from outside of its actor context are implicitly asynchronous
72 |
73 | /// Removes all the links of the current selection or at the insertion point.
74 | func unlink() {
| `- note: calls to instance method 'unlink()' from outside of its actor context are implicitly asynchronous
75 | javaScriptManager.unlink()
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:78:17: warning: call to main actor-isolated instance method 'indent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
75 |
76 | /// Indents the lines containing the current selection or the insertion point.
77 | func indent() {
| `- note: add '@MainActor' to make instance method 'indent()' part of global actor 'MainActor'
78 | editor?.indent()
| `- warning: call to main actor-isolated instance method 'indent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:79:10: note: calls to instance method 'indent()' from outside of its actor context are implicitly asynchronous
77 |
78 | /// Indents the lines containing the current selection or the insertion point.
79 | func indent() {
| `- note: calls to instance method 'indent()' from outside of its actor context are implicitly asynchronous
80 | execCommand(.indent)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:83:17: warning: call to main actor-isolated instance method 'outdent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 |
81 | /// Outdents the lines containing the current selection or the insertion point.
82 | func outdent() {
| `- note: add '@MainActor' to make instance method 'outdent()' part of global actor 'MainActor'
83 | editor?.outdent()
| `- warning: call to main actor-isolated instance method 'outdent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | }
85 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:84:10: note: calls to instance method 'outdent()' from outside of its actor context are implicitly asynchronous
82 |
83 | /// Outdents the lines containing the current selection or the insertion point.
84 | func outdent() {
| `- note: calls to instance method 'outdent()' from outside of its actor context are implicitly asynchronous
85 | execCommand(.outdent)
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:90:17: warning: call to main actor-isolated instance method 'justify' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
87 | ///
88 | /// - Parameter side: The side to align the text to.
89 | func justify(_ side: TextJustification) {
| `- note: add '@MainActor' to make instance method 'justify' part of global actor 'MainActor'
90 | editor?.justify(side)
| `- warning: call to main actor-isolated instance method 'justify' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
91 | }
92 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:91:10: note: calls to instance method 'justify' from outside of its actor context are implicitly asynchronous
89 | ///
90 | /// - Parameter side: The side to align the text to.
91 | func justify(_ side: TextJustification) {
| `- note: calls to instance method 'justify' from outside of its actor context are implicitly asynchronous
92 | execCommand(side.command)
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:98:17: warning: call to main actor-isolated instance method 'setFontName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | ///
96 | /// - Parameter name: Font name.
97 | func setFontName(_ name: String) {
| `- note: add '@MainActor' to make instance method 'setFontName' part of global actor 'MainActor'
98 | editor?.setFontName(name)
| `- warning: call to main actor-isolated instance method 'setFontName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:99:10: note: calls to instance method 'setFontName' from outside of its actor context are implicitly asynchronous
97 | ///
98 | /// - Parameter name: Font name.
99 | func setFontName(_ name: String) {
| `- note: calls to instance method 'setFontName' from outside of its actor context are implicitly asynchronous
100 | execCommand(.fontName, argument: name)
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:105:17: warning: call to main actor-isolated instance method 'setForegroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | ///
103 | /// - Parameter color: The color of the foreground.
104 | func setForegroundColor(_ color: PlatformColor) {
| `- note: add '@MainActor' to make instance method 'setForegroundColor' part of global actor 'MainActor'
105 | editor?.setForegroundColor(color)
| `- warning: call to main actor-isolated instance method 'setForegroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
106 | }
107 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:106:10: note: calls to instance method 'setForegroundColor' from outside of its actor context are implicitly asynchronous
104 | ///
105 | /// - Parameter color: The color of the foreground.
106 | func setForegroundColor(_ color: PlatformColor) {
| `- note: calls to instance method 'setForegroundColor' from outside of its actor context are implicitly asynchronous
107 | execCommand(.foregroundColor, argument: color.hexadecimal)
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:112:17: warning: call to main actor-isolated instance method 'setBackgroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
109 | ///
110 | /// - Parameter color: The color of the background.
111 | func setBackgroundColor(_ color: PlatformColor) {
| `- note: add '@MainActor' to make instance method 'setBackgroundColor' part of global actor 'MainActor'
112 | editor?.setBackgroundColor(color)
| `- warning: call to main actor-isolated instance method 'setBackgroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | }
114 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:113:10: note: calls to instance method 'setBackgroundColor' from outside of its actor context are implicitly asynchronous
111 | ///
112 | /// - Parameter color: The color of the background.
113 | func setBackgroundColor(_ color: PlatformColor) {
| `- note: calls to instance method 'setBackgroundColor' from outside of its actor context are implicitly asynchronous
114 | execCommand(.backgroundColor, argument: color.hexadecimal)
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:119:17: warning: call to main actor-isolated instance method 'setFontSize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | ///
117 | /// - Parameter size: The size should be included in the interval [1-7].
118 | func setFontSize(_ size: Int) {
| `- note: add '@MainActor' to make instance method 'setFontSize' part of global actor 'MainActor'
119 | editor?.setFontSize(size)
| `- warning: call to main actor-isolated instance method 'setFontSize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:120:10: note: calls to instance method 'setFontSize' from outside of its actor context are implicitly asynchronous
118 | ///
119 | /// - Parameter size: The size should be included in the interval [1-7].
120 | func setFontSize(_ size: Int) {
| `- note: calls to instance method 'setFontSize' from outside of its actor context are implicitly asynchronous
121 | execCommand(.fontSize, argument: size)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:124:17: warning: call to main actor-isolated instance method 'undo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
121 |
122 | /// Undoes the last executed command.
123 | func undo() {
| `- note: add '@MainActor' to make instance method 'undo()' part of global actor 'MainActor'
124 | editor?.undo()
| `- warning: call to main actor-isolated instance method 'undo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:125:10: note: calls to instance method 'undo()' from outside of its actor context are implicitly asynchronous
123 |
124 | /// Undoes the last executed command.
125 | func undo() {
| `- note: calls to instance method 'undo()' from outside of its actor context are implicitly asynchronous
126 | execCommand(.undo)
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:129:17: warning: call to main actor-isolated instance method 'redo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 |
127 | /// Redoes the last executed command.
128 | func redo() {
| `- note: add '@MainActor' to make instance method 'redo()' part of global actor 'MainActor'
129 | editor?.redo()
| `- warning: call to main actor-isolated instance method 'redo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | }
131 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:130:10: note: calls to instance method 'redo()' from outside of its actor context are implicitly asynchronous
128 |
129 | /// Redoes the last executed command.
130 | func redo() {
| `- note: calls to instance method 'redo()' from outside of its actor context are implicitly asynchronous
131 | execCommand(.redo)
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:136:17: warning: call to main actor-isolated instance method 'setCaretAt' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 | ///
134 | /// - Parameter position: The position where the caret should be placed.
135 | func setCaretAt(_ position: CaretPosition) {
| `- note: add '@MainActor' to make instance method 'setCaretAt' part of global actor 'MainActor'
136 | editor?.setCaretAt(position)
| `- warning: call to main actor-isolated instance method 'setCaretAt' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:137:10: note: calls to instance method 'setCaretAt' from outside of its actor context are implicitly asynchronous
135 | ///
136 | /// - Parameter position: The position where the caret should be placed.
137 | func setCaretAt(_ position: CaretPosition) {
| `- note: calls to instance method 'setCaretAt' from outside of its actor context are implicitly asynchronous
138 | switch position {
139 | case .beginningOfDocument:
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:90:17: warning: sending 'side' risks causing data races; this is an error in the Swift 6 language mode
88 | /// - Parameter side: The side to align the text to.
89 | func justify(_ side: TextJustification) {
90 | editor?.justify(side)
| |- warning: sending 'side' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'side' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
91 | }
92 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:136:17: warning: sending 'position' risks causing data races; this is an error in the Swift 6 language mode
134 | /// - Parameter position: The position where the caret should be placed.
135 | func setCaretAt(_ position: CaretPosition) {
136 | editor?.setCaretAt(position)
| |- warning: sending 'position' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'position' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
137 | }
138 | }
[40/41] Compiling InfomaniakRichHTMLEditor TextAttributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:19:17: warning: call to main actor-isolated instance method 'removeFormat()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 | public extension TextAttributes {
17 | /// Removes all formatting from the current selection.
18 | func removeFormat() {
| `- note: add '@MainActor' to make instance method 'removeFormat()' part of global actor 'MainActor'
19 | editor?.removeFormat()
| `- warning: call to main actor-isolated instance method 'removeFormat()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:20:10: note: calls to instance method 'removeFormat()' from outside of its actor context are implicitly asynchronous
18 | public extension RichHTMLEditorView {
19 | /// Removes all formatting from the current selection.
20 | func removeFormat() {
| `- note: calls to instance method 'removeFormat()' from outside of its actor context are implicitly asynchronous
21 | execCommand(.removeFormat)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:24:17: warning: call to main actor-isolated instance method 'bold()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |
22 | /// Toggles bold for the current selection or at the insertion point.
23 | func bold() {
| `- note: add '@MainActor' to make instance method 'bold()' part of global actor 'MainActor'
24 | editor?.bold()
| `- warning: call to main actor-isolated instance method 'bold()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:25:10: note: calls to instance method 'bold()' from outside of its actor context are implicitly asynchronous
23 |
24 | /// Toggles bold for the current selection or at the insertion point.
25 | func bold() {
| `- note: calls to instance method 'bold()' from outside of its actor context are implicitly asynchronous
26 | execCommand(.bold)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:29:17: warning: call to main actor-isolated instance method 'italic()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 |
27 | /// Toggles italic for the current selection or at the insertion point.
28 | func italic() {
| `- note: add '@MainActor' to make instance method 'italic()' part of global actor 'MainActor'
29 | editor?.italic()
| `- warning: call to main actor-isolated instance method 'italic()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:30:10: note: calls to instance method 'italic()' from outside of its actor context are implicitly asynchronous
28 |
29 | /// Toggles italic for the current selection or at the insertion point.
30 | func italic() {
| `- note: calls to instance method 'italic()' from outside of its actor context are implicitly asynchronous
31 | execCommand(.italic)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:34:17: warning: call to main actor-isolated instance method 'underline()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 |
32 | /// Toggles underline for the current selection or at the insertion point.
33 | func underline() {
| `- note: add '@MainActor' to make instance method 'underline()' part of global actor 'MainActor'
34 | editor?.underline()
| `- warning: call to main actor-isolated instance method 'underline()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:35:10: note: calls to instance method 'underline()' from outside of its actor context are implicitly asynchronous
33 |
34 | /// Toggles underline for the current selection or at the insertion point.
35 | func underline() {
| `- note: calls to instance method 'underline()' from outside of its actor context are implicitly asynchronous
36 | execCommand(.underline)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:39:17: warning: call to main actor-isolated instance method 'strikethrough()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Toggles strikethrough for the current selection or at the insertion point.
38 | func strikethrough() {
| `- note: add '@MainActor' to make instance method 'strikethrough()' part of global actor 'MainActor'
39 | editor?.strikethrough()
| `- warning: call to main actor-isolated instance method 'strikethrough()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:40:10: note: calls to instance method 'strikethrough()' from outside of its actor context are implicitly asynchronous
38 |
39 | /// Toggles strikethrough for the current selection or at the insertion point.
40 | func strikethrough() {
| `- note: calls to instance method 'strikethrough()' from outside of its actor context are implicitly asynchronous
41 | execCommand(.strikeThrough)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:44:17: warning: call to main actor-isolated instance method 'toggleSubscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | /// Toggles subscript for the current selection or at the insertion point.
43 | func toggleSubscript() {
| `- note: add '@MainActor' to make instance method 'toggleSubscript()' part of global actor 'MainActor'
44 | editor?.toggleSubscript()
| `- warning: call to main actor-isolated instance method 'toggleSubscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | }
46 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:45:10: note: calls to instance method 'toggleSubscript()' from outside of its actor context are implicitly asynchronous
43 |
44 | /// Toggles subscript for the current selection or at the insertion point.
45 | func toggleSubscript() {
| `- note: calls to instance method 'toggleSubscript()' from outside of its actor context are implicitly asynchronous
46 | execCommand(.toggleSubscript)
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:49:17: warning: call to main actor-isolated instance method 'toggleSuperscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 |
47 | /// Toggles superscript for the current selection or at the insertion point.
48 | func toggleSuperscript() {
| `- note: add '@MainActor' to make instance method 'toggleSuperscript()' part of global actor 'MainActor'
49 | editor?.toggleSuperscript()
| `- warning: call to main actor-isolated instance method 'toggleSuperscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:50:10: note: calls to instance method 'toggleSuperscript()' from outside of its actor context are implicitly asynchronous
48 |
49 | /// Toggles superscript for the current selection or at the insertion point.
50 | func toggleSuperscript() {
| `- note: calls to instance method 'toggleSuperscript()' from outside of its actor context are implicitly asynchronous
51 | execCommand(.toggleSuperscript)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:54:17: warning: call to main actor-isolated instance method 'orderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 |
52 | /// Creates or remove a numbered ordered list for the current selection or at the insertion point.
53 | func orderedList() {
| `- note: add '@MainActor' to make instance method 'orderedList()' part of global actor 'MainActor'
54 | editor?.orderedList()
| `- warning: call to main actor-isolated instance method 'orderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:55:10: note: calls to instance method 'orderedList()' from outside of its actor context are implicitly asynchronous
53 |
54 | /// Creates or remove a numbered ordered list for the current selection or at the insertion point.
55 | func orderedList() {
| `- note: calls to instance method 'orderedList()' from outside of its actor context are implicitly asynchronous
56 | execCommand(.orderedList)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:59:17: warning: call to main actor-isolated instance method 'unorderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 |
57 | /// Creates or remove a bulleted unordered list for the current selection or at the insertion point.
58 | func unorderedList() {
| `- note: add '@MainActor' to make instance method 'unorderedList()' part of global actor 'MainActor'
59 | editor?.unorderedList()
| `- warning: call to main actor-isolated instance method 'unorderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:60:10: note: calls to instance method 'unorderedList()' from outside of its actor context are implicitly asynchronous
58 |
59 | /// Creates or remove a bulleted unordered list for the current selection or at the insertion point.
60 | func unorderedList() {
| `- note: calls to instance method 'unorderedList()' from outside of its actor context are implicitly asynchronous
61 | execCommand(.unorderedList)
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:68:17: warning: call to main actor-isolated instance method 'addLink(url:text:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | /// - url: The destination of the link, it is the value of the `href` attribute.
66 | /// - text: The optional label of the link, if nil the url will be used.
67 | func addLink(url: URL, text: String? = nil) {
| `- note: add '@MainActor' to make instance method 'addLink(url:text:)' part of global actor 'MainActor'
68 | editor?.addLink(url: url, text: text)
| `- warning: call to main actor-isolated instance method 'addLink(url:text:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:69:10: note: calls to instance method 'addLink(url:text:)' from outside of its actor context are implicitly asynchronous
67 | /// - url: The destination of the link, it is the value of the `href` attribute.
68 | /// - text: The optional label of the link, if nil the url will be used.
69 | func addLink(url: URL, text: String? = nil) {
| `- note: calls to instance method 'addLink(url:text:)' from outside of its actor context are implicitly asynchronous
70 | javaScriptManager.addLink(text: text, path: url.absoluteString)
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:73:17: warning: call to main actor-isolated instance method 'unlink()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | /// Removes all the links of the current selection or at the insertion point.
72 | func unlink() {
| `- note: add '@MainActor' to make instance method 'unlink()' part of global actor 'MainActor'
73 | editor?.unlink()
| `- warning: call to main actor-isolated instance method 'unlink()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:74:10: note: calls to instance method 'unlink()' from outside of its actor context are implicitly asynchronous
72 |
73 | /// Removes all the links of the current selection or at the insertion point.
74 | func unlink() {
| `- note: calls to instance method 'unlink()' from outside of its actor context are implicitly asynchronous
75 | javaScriptManager.unlink()
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:78:17: warning: call to main actor-isolated instance method 'indent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
75 |
76 | /// Indents the lines containing the current selection or the insertion point.
77 | func indent() {
| `- note: add '@MainActor' to make instance method 'indent()' part of global actor 'MainActor'
78 | editor?.indent()
| `- warning: call to main actor-isolated instance method 'indent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:79:10: note: calls to instance method 'indent()' from outside of its actor context are implicitly asynchronous
77 |
78 | /// Indents the lines containing the current selection or the insertion point.
79 | func indent() {
| `- note: calls to instance method 'indent()' from outside of its actor context are implicitly asynchronous
80 | execCommand(.indent)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:83:17: warning: call to main actor-isolated instance method 'outdent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 |
81 | /// Outdents the lines containing the current selection or the insertion point.
82 | func outdent() {
| `- note: add '@MainActor' to make instance method 'outdent()' part of global actor 'MainActor'
83 | editor?.outdent()
| `- warning: call to main actor-isolated instance method 'outdent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | }
85 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:84:10: note: calls to instance method 'outdent()' from outside of its actor context are implicitly asynchronous
82 |
83 | /// Outdents the lines containing the current selection or the insertion point.
84 | func outdent() {
| `- note: calls to instance method 'outdent()' from outside of its actor context are implicitly asynchronous
85 | execCommand(.outdent)
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:90:17: warning: call to main actor-isolated instance method 'justify' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
87 | ///
88 | /// - Parameter side: The side to align the text to.
89 | func justify(_ side: TextJustification) {
| `- note: add '@MainActor' to make instance method 'justify' part of global actor 'MainActor'
90 | editor?.justify(side)
| `- warning: call to main actor-isolated instance method 'justify' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
91 | }
92 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:91:10: note: calls to instance method 'justify' from outside of its actor context are implicitly asynchronous
89 | ///
90 | /// - Parameter side: The side to align the text to.
91 | func justify(_ side: TextJustification) {
| `- note: calls to instance method 'justify' from outside of its actor context are implicitly asynchronous
92 | execCommand(side.command)
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:98:17: warning: call to main actor-isolated instance method 'setFontName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | ///
96 | /// - Parameter name: Font name.
97 | func setFontName(_ name: String) {
| `- note: add '@MainActor' to make instance method 'setFontName' part of global actor 'MainActor'
98 | editor?.setFontName(name)
| `- warning: call to main actor-isolated instance method 'setFontName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:99:10: note: calls to instance method 'setFontName' from outside of its actor context are implicitly asynchronous
97 | ///
98 | /// - Parameter name: Font name.
99 | func setFontName(_ name: String) {
| `- note: calls to instance method 'setFontName' from outside of its actor context are implicitly asynchronous
100 | execCommand(.fontName, argument: name)
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:105:17: warning: call to main actor-isolated instance method 'setForegroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | ///
103 | /// - Parameter color: The color of the foreground.
104 | func setForegroundColor(_ color: PlatformColor) {
| `- note: add '@MainActor' to make instance method 'setForegroundColor' part of global actor 'MainActor'
105 | editor?.setForegroundColor(color)
| `- warning: call to main actor-isolated instance method 'setForegroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
106 | }
107 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:106:10: note: calls to instance method 'setForegroundColor' from outside of its actor context are implicitly asynchronous
104 | ///
105 | /// - Parameter color: The color of the foreground.
106 | func setForegroundColor(_ color: PlatformColor) {
| `- note: calls to instance method 'setForegroundColor' from outside of its actor context are implicitly asynchronous
107 | execCommand(.foregroundColor, argument: color.hexadecimal)
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:112:17: warning: call to main actor-isolated instance method 'setBackgroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
109 | ///
110 | /// - Parameter color: The color of the background.
111 | func setBackgroundColor(_ color: PlatformColor) {
| `- note: add '@MainActor' to make instance method 'setBackgroundColor' part of global actor 'MainActor'
112 | editor?.setBackgroundColor(color)
| `- warning: call to main actor-isolated instance method 'setBackgroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | }
114 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:113:10: note: calls to instance method 'setBackgroundColor' from outside of its actor context are implicitly asynchronous
111 | ///
112 | /// - Parameter color: The color of the background.
113 | func setBackgroundColor(_ color: PlatformColor) {
| `- note: calls to instance method 'setBackgroundColor' from outside of its actor context are implicitly asynchronous
114 | execCommand(.backgroundColor, argument: color.hexadecimal)
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:119:17: warning: call to main actor-isolated instance method 'setFontSize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | ///
117 | /// - Parameter size: The size should be included in the interval [1-7].
118 | func setFontSize(_ size: Int) {
| `- note: add '@MainActor' to make instance method 'setFontSize' part of global actor 'MainActor'
119 | editor?.setFontSize(size)
| `- warning: call to main actor-isolated instance method 'setFontSize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:120:10: note: calls to instance method 'setFontSize' from outside of its actor context are implicitly asynchronous
118 | ///
119 | /// - Parameter size: The size should be included in the interval [1-7].
120 | func setFontSize(_ size: Int) {
| `- note: calls to instance method 'setFontSize' from outside of its actor context are implicitly asynchronous
121 | execCommand(.fontSize, argument: size)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:124:17: warning: call to main actor-isolated instance method 'undo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
121 |
122 | /// Undoes the last executed command.
123 | func undo() {
| `- note: add '@MainActor' to make instance method 'undo()' part of global actor 'MainActor'
124 | editor?.undo()
| `- warning: call to main actor-isolated instance method 'undo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:125:10: note: calls to instance method 'undo()' from outside of its actor context are implicitly asynchronous
123 |
124 | /// Undoes the last executed command.
125 | func undo() {
| `- note: calls to instance method 'undo()' from outside of its actor context are implicitly asynchronous
126 | execCommand(.undo)
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:129:17: warning: call to main actor-isolated instance method 'redo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 |
127 | /// Redoes the last executed command.
128 | func redo() {
| `- note: add '@MainActor' to make instance method 'redo()' part of global actor 'MainActor'
129 | editor?.redo()
| `- warning: call to main actor-isolated instance method 'redo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | }
131 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:130:10: note: calls to instance method 'redo()' from outside of its actor context are implicitly asynchronous
128 |
129 | /// Redoes the last executed command.
130 | func redo() {
| `- note: calls to instance method 'redo()' from outside of its actor context are implicitly asynchronous
131 | execCommand(.redo)
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:136:17: warning: call to main actor-isolated instance method 'setCaretAt' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 | ///
134 | /// - Parameter position: The position where the caret should be placed.
135 | func setCaretAt(_ position: CaretPosition) {
| `- note: add '@MainActor' to make instance method 'setCaretAt' part of global actor 'MainActor'
136 | editor?.setCaretAt(position)
| `- warning: call to main actor-isolated instance method 'setCaretAt' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:137:10: note: calls to instance method 'setCaretAt' from outside of its actor context are implicitly asynchronous
135 | ///
136 | /// - Parameter position: The position where the caret should be placed.
137 | func setCaretAt(_ position: CaretPosition) {
| `- note: calls to instance method 'setCaretAt' from outside of its actor context are implicitly asynchronous
138 | switch position {
139 | case .beginningOfDocument:
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:90:17: warning: sending 'side' risks causing data races; this is an error in the Swift 6 language mode
88 | /// - Parameter side: The side to align the text to.
89 | func justify(_ side: TextJustification) {
90 | editor?.justify(side)
| |- warning: sending 'side' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'side' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
91 | }
92 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:136:17: warning: sending 'position' risks causing data races; this is an error in the Swift 6 language mode
134 | /// - Parameter position: The position where the caret should be placed.
135 | func setCaretAt(_ position: CaretPosition) {
136 | editor?.setCaretAt(position)
| |- warning: sending 'position' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'position' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
137 | }
138 | }
[41/41] Compiling InfomaniakRichHTMLEditor RichEditor+Modifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:19:17: warning: call to main actor-isolated instance method 'removeFormat()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 | public extension TextAttributes {
17 | /// Removes all formatting from the current selection.
18 | func removeFormat() {
| `- note: add '@MainActor' to make instance method 'removeFormat()' part of global actor 'MainActor'
19 | editor?.removeFormat()
| `- warning: call to main actor-isolated instance method 'removeFormat()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:20:10: note: calls to instance method 'removeFormat()' from outside of its actor context are implicitly asynchronous
18 | public extension RichHTMLEditorView {
19 | /// Removes all formatting from the current selection.
20 | func removeFormat() {
| `- note: calls to instance method 'removeFormat()' from outside of its actor context are implicitly asynchronous
21 | execCommand(.removeFormat)
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:24:17: warning: call to main actor-isolated instance method 'bold()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 |
22 | /// Toggles bold for the current selection or at the insertion point.
23 | func bold() {
| `- note: add '@MainActor' to make instance method 'bold()' part of global actor 'MainActor'
24 | editor?.bold()
| `- warning: call to main actor-isolated instance method 'bold()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | }
26 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:25:10: note: calls to instance method 'bold()' from outside of its actor context are implicitly asynchronous
23 |
24 | /// Toggles bold for the current selection or at the insertion point.
25 | func bold() {
| `- note: calls to instance method 'bold()' from outside of its actor context are implicitly asynchronous
26 | execCommand(.bold)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:29:17: warning: call to main actor-isolated instance method 'italic()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 |
27 | /// Toggles italic for the current selection or at the insertion point.
28 | func italic() {
| `- note: add '@MainActor' to make instance method 'italic()' part of global actor 'MainActor'
29 | editor?.italic()
| `- warning: call to main actor-isolated instance method 'italic()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:30:10: note: calls to instance method 'italic()' from outside of its actor context are implicitly asynchronous
28 |
29 | /// Toggles italic for the current selection or at the insertion point.
30 | func italic() {
| `- note: calls to instance method 'italic()' from outside of its actor context are implicitly asynchronous
31 | execCommand(.italic)
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:34:17: warning: call to main actor-isolated instance method 'underline()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
31 |
32 | /// Toggles underline for the current selection or at the insertion point.
33 | func underline() {
| `- note: add '@MainActor' to make instance method 'underline()' part of global actor 'MainActor'
34 | editor?.underline()
| `- warning: call to main actor-isolated instance method 'underline()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:35:10: note: calls to instance method 'underline()' from outside of its actor context are implicitly asynchronous
33 |
34 | /// Toggles underline for the current selection or at the insertion point.
35 | func underline() {
| `- note: calls to instance method 'underline()' from outside of its actor context are implicitly asynchronous
36 | execCommand(.underline)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:39:17: warning: call to main actor-isolated instance method 'strikethrough()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 |
37 | /// Toggles strikethrough for the current selection or at the insertion point.
38 | func strikethrough() {
| `- note: add '@MainActor' to make instance method 'strikethrough()' part of global actor 'MainActor'
39 | editor?.strikethrough()
| `- warning: call to main actor-isolated instance method 'strikethrough()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:40:10: note: calls to instance method 'strikethrough()' from outside of its actor context are implicitly asynchronous
38 |
39 | /// Toggles strikethrough for the current selection or at the insertion point.
40 | func strikethrough() {
| `- note: calls to instance method 'strikethrough()' from outside of its actor context are implicitly asynchronous
41 | execCommand(.strikeThrough)
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:44:17: warning: call to main actor-isolated instance method 'toggleSubscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
41 |
42 | /// Toggles subscript for the current selection or at the insertion point.
43 | func toggleSubscript() {
| `- note: add '@MainActor' to make instance method 'toggleSubscript()' part of global actor 'MainActor'
44 | editor?.toggleSubscript()
| `- warning: call to main actor-isolated instance method 'toggleSubscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
45 | }
46 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:45:10: note: calls to instance method 'toggleSubscript()' from outside of its actor context are implicitly asynchronous
43 |
44 | /// Toggles subscript for the current selection or at the insertion point.
45 | func toggleSubscript() {
| `- note: calls to instance method 'toggleSubscript()' from outside of its actor context are implicitly asynchronous
46 | execCommand(.toggleSubscript)
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:49:17: warning: call to main actor-isolated instance method 'toggleSuperscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
46 |
47 | /// Toggles superscript for the current selection or at the insertion point.
48 | func toggleSuperscript() {
| `- note: add '@MainActor' to make instance method 'toggleSuperscript()' part of global actor 'MainActor'
49 | editor?.toggleSuperscript()
| `- warning: call to main actor-isolated instance method 'toggleSuperscript()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | }
51 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:50:10: note: calls to instance method 'toggleSuperscript()' from outside of its actor context are implicitly asynchronous
48 |
49 | /// Toggles superscript for the current selection or at the insertion point.
50 | func toggleSuperscript() {
| `- note: calls to instance method 'toggleSuperscript()' from outside of its actor context are implicitly asynchronous
51 | execCommand(.toggleSuperscript)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:54:17: warning: call to main actor-isolated instance method 'orderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 |
52 | /// Creates or remove a numbered ordered list for the current selection or at the insertion point.
53 | func orderedList() {
| `- note: add '@MainActor' to make instance method 'orderedList()' part of global actor 'MainActor'
54 | editor?.orderedList()
| `- warning: call to main actor-isolated instance method 'orderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:55:10: note: calls to instance method 'orderedList()' from outside of its actor context are implicitly asynchronous
53 |
54 | /// Creates or remove a numbered ordered list for the current selection or at the insertion point.
55 | func orderedList() {
| `- note: calls to instance method 'orderedList()' from outside of its actor context are implicitly asynchronous
56 | execCommand(.orderedList)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:59:17: warning: call to main actor-isolated instance method 'unorderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
56 |
57 | /// Creates or remove a bulleted unordered list for the current selection or at the insertion point.
58 | func unorderedList() {
| `- note: add '@MainActor' to make instance method 'unorderedList()' part of global actor 'MainActor'
59 | editor?.unorderedList()
| `- warning: call to main actor-isolated instance method 'unorderedList()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:60:10: note: calls to instance method 'unorderedList()' from outside of its actor context are implicitly asynchronous
58 |
59 | /// Creates or remove a bulleted unordered list for the current selection or at the insertion point.
60 | func unorderedList() {
| `- note: calls to instance method 'unorderedList()' from outside of its actor context are implicitly asynchronous
61 | execCommand(.unorderedList)
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:68:17: warning: call to main actor-isolated instance method 'addLink(url:text:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
65 | /// - url: The destination of the link, it is the value of the `href` attribute.
66 | /// - text: The optional label of the link, if nil the url will be used.
67 | func addLink(url: URL, text: String? = nil) {
| `- note: add '@MainActor' to make instance method 'addLink(url:text:)' part of global actor 'MainActor'
68 | editor?.addLink(url: url, text: text)
| `- warning: call to main actor-isolated instance method 'addLink(url:text:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:69:10: note: calls to instance method 'addLink(url:text:)' from outside of its actor context are implicitly asynchronous
67 | /// - url: The destination of the link, it is the value of the `href` attribute.
68 | /// - text: The optional label of the link, if nil the url will be used.
69 | func addLink(url: URL, text: String? = nil) {
| `- note: calls to instance method 'addLink(url:text:)' from outside of its actor context are implicitly asynchronous
70 | javaScriptManager.addLink(text: text, path: url.absoluteString)
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:73:17: warning: call to main actor-isolated instance method 'unlink()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 |
71 | /// Removes all the links of the current selection or at the insertion point.
72 | func unlink() {
| `- note: add '@MainActor' to make instance method 'unlink()' part of global actor 'MainActor'
73 | editor?.unlink()
| `- warning: call to main actor-isolated instance method 'unlink()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:74:10: note: calls to instance method 'unlink()' from outside of its actor context are implicitly asynchronous
72 |
73 | /// Removes all the links of the current selection or at the insertion point.
74 | func unlink() {
| `- note: calls to instance method 'unlink()' from outside of its actor context are implicitly asynchronous
75 | javaScriptManager.unlink()
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:78:17: warning: call to main actor-isolated instance method 'indent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
75 |
76 | /// Indents the lines containing the current selection or the insertion point.
77 | func indent() {
| `- note: add '@MainActor' to make instance method 'indent()' part of global actor 'MainActor'
78 | editor?.indent()
| `- warning: call to main actor-isolated instance method 'indent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
79 | }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:79:10: note: calls to instance method 'indent()' from outside of its actor context are implicitly asynchronous
77 |
78 | /// Indents the lines containing the current selection or the insertion point.
79 | func indent() {
| `- note: calls to instance method 'indent()' from outside of its actor context are implicitly asynchronous
80 | execCommand(.indent)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:83:17: warning: call to main actor-isolated instance method 'outdent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
80 |
81 | /// Outdents the lines containing the current selection or the insertion point.
82 | func outdent() {
| `- note: add '@MainActor' to make instance method 'outdent()' part of global actor 'MainActor'
83 | editor?.outdent()
| `- warning: call to main actor-isolated instance method 'outdent()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
84 | }
85 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:84:10: note: calls to instance method 'outdent()' from outside of its actor context are implicitly asynchronous
82 |
83 | /// Outdents the lines containing the current selection or the insertion point.
84 | func outdent() {
| `- note: calls to instance method 'outdent()' from outside of its actor context are implicitly asynchronous
85 | execCommand(.outdent)
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:90:17: warning: call to main actor-isolated instance method 'justify' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
87 | ///
88 | /// - Parameter side: The side to align the text to.
89 | func justify(_ side: TextJustification) {
| `- note: add '@MainActor' to make instance method 'justify' part of global actor 'MainActor'
90 | editor?.justify(side)
| `- warning: call to main actor-isolated instance method 'justify' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
91 | }
92 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:91:10: note: calls to instance method 'justify' from outside of its actor context are implicitly asynchronous
89 | ///
90 | /// - Parameter side: The side to align the text to.
91 | func justify(_ side: TextJustification) {
| `- note: calls to instance method 'justify' from outside of its actor context are implicitly asynchronous
92 | execCommand(side.command)
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:98:17: warning: call to main actor-isolated instance method 'setFontName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | ///
96 | /// - Parameter name: Font name.
97 | func setFontName(_ name: String) {
| `- note: add '@MainActor' to make instance method 'setFontName' part of global actor 'MainActor'
98 | editor?.setFontName(name)
| `- warning: call to main actor-isolated instance method 'setFontName' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:99:10: note: calls to instance method 'setFontName' from outside of its actor context are implicitly asynchronous
97 | ///
98 | /// - Parameter name: Font name.
99 | func setFontName(_ name: String) {
| `- note: calls to instance method 'setFontName' from outside of its actor context are implicitly asynchronous
100 | execCommand(.fontName, argument: name)
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:105:17: warning: call to main actor-isolated instance method 'setForegroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
102 | ///
103 | /// - Parameter color: The color of the foreground.
104 | func setForegroundColor(_ color: PlatformColor) {
| `- note: add '@MainActor' to make instance method 'setForegroundColor' part of global actor 'MainActor'
105 | editor?.setForegroundColor(color)
| `- warning: call to main actor-isolated instance method 'setForegroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
106 | }
107 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:106:10: note: calls to instance method 'setForegroundColor' from outside of its actor context are implicitly asynchronous
104 | ///
105 | /// - Parameter color: The color of the foreground.
106 | func setForegroundColor(_ color: PlatformColor) {
| `- note: calls to instance method 'setForegroundColor' from outside of its actor context are implicitly asynchronous
107 | execCommand(.foregroundColor, argument: color.hexadecimal)
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:112:17: warning: call to main actor-isolated instance method 'setBackgroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
109 | ///
110 | /// - Parameter color: The color of the background.
111 | func setBackgroundColor(_ color: PlatformColor) {
| `- note: add '@MainActor' to make instance method 'setBackgroundColor' part of global actor 'MainActor'
112 | editor?.setBackgroundColor(color)
| `- warning: call to main actor-isolated instance method 'setBackgroundColor' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | }
114 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:113:10: note: calls to instance method 'setBackgroundColor' from outside of its actor context are implicitly asynchronous
111 | ///
112 | /// - Parameter color: The color of the background.
113 | func setBackgroundColor(_ color: PlatformColor) {
| `- note: calls to instance method 'setBackgroundColor' from outside of its actor context are implicitly asynchronous
114 | execCommand(.backgroundColor, argument: color.hexadecimal)
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:119:17: warning: call to main actor-isolated instance method 'setFontSize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | ///
117 | /// - Parameter size: The size should be included in the interval [1-7].
118 | func setFontSize(_ size: Int) {
| `- note: add '@MainActor' to make instance method 'setFontSize' part of global actor 'MainActor'
119 | editor?.setFontSize(size)
| `- warning: call to main actor-isolated instance method 'setFontSize' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:120:10: note: calls to instance method 'setFontSize' from outside of its actor context are implicitly asynchronous
118 | ///
119 | /// - Parameter size: The size should be included in the interval [1-7].
120 | func setFontSize(_ size: Int) {
| `- note: calls to instance method 'setFontSize' from outside of its actor context are implicitly asynchronous
121 | execCommand(.fontSize, argument: size)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:124:17: warning: call to main actor-isolated instance method 'undo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
121 |
122 | /// Undoes the last executed command.
123 | func undo() {
| `- note: add '@MainActor' to make instance method 'undo()' part of global actor 'MainActor'
124 | editor?.undo()
| `- warning: call to main actor-isolated instance method 'undo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
125 | }
126 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:125:10: note: calls to instance method 'undo()' from outside of its actor context are implicitly asynchronous
123 |
124 | /// Undoes the last executed command.
125 | func undo() {
| `- note: calls to instance method 'undo()' from outside of its actor context are implicitly asynchronous
126 | execCommand(.undo)
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:129:17: warning: call to main actor-isolated instance method 'redo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 |
127 | /// Redoes the last executed command.
128 | func redo() {
| `- note: add '@MainActor' to make instance method 'redo()' part of global actor 'MainActor'
129 | editor?.redo()
| `- warning: call to main actor-isolated instance method 'redo()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
130 | }
131 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:130:10: note: calls to instance method 'redo()' from outside of its actor context are implicitly asynchronous
128 |
129 | /// Redoes the last executed command.
130 | func redo() {
| `- note: calls to instance method 'redo()' from outside of its actor context are implicitly asynchronous
131 | execCommand(.redo)
132 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:136:17: warning: call to main actor-isolated instance method 'setCaretAt' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
133 | ///
134 | /// - Parameter position: The position where the caret should be placed.
135 | func setCaretAt(_ position: CaretPosition) {
| `- note: add '@MainActor' to make instance method 'setCaretAt' part of global actor 'MainActor'
136 | editor?.setCaretAt(position)
| `- warning: call to main actor-isolated instance method 'setCaretAt' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
137 | }
138 | }
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/RichHTMLEditorView+Commands.swift:137:10: note: calls to instance method 'setCaretAt' from outside of its actor context are implicitly asynchronous
135 | ///
136 | /// - Parameter position: The position where the caret should be placed.
137 | func setCaretAt(_ position: CaretPosition) {
| `- note: calls to instance method 'setCaretAt' from outside of its actor context are implicitly asynchronous
138 | switch position {
139 | case .beginningOfDocument:
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:90:17: warning: sending 'side' risks causing data races; this is an error in the Swift 6 language mode
88 | /// - Parameter side: The side to align the text to.
89 | func justify(_ side: TextJustification) {
90 | editor?.justify(side)
| |- warning: sending 'side' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'side' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
91 | }
92 |
/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/SwiftUI/Models/TextAttributes+Commands.swift:136:17: warning: sending 'position' risks causing data races; this is an error in the Swift 6 language mode
134 | /// - Parameter position: The position where the caret should be placed.
135 | func setCaretAt(_ position: CaretPosition) {
136 | editor?.setCaretAt(position)
| |- warning: sending 'position' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'position' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
137 | }
138 | }
Build complete! (18.86s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "InfomaniakRichHTMLEditor",
"name" : "InfomaniakRichHTMLEditor",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "visionos",
"version" : "1.0"
},
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "InfomaniakRichHTMLEditor",
"targets" : [
"InfomaniakRichHTMLEditor"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "InfomaniakRichHTMLEditorTests",
"module_type" : "SwiftTarget",
"name" : "InfomaniakRichHTMLEditorTests",
"path" : "Tests/InfomaniakRichHTMLEditorTests",
"sources" : [
"InfomaniakRichHTMLEditorTests.swift"
],
"target_dependencies" : [
"InfomaniakRichHTMLEditor"
],
"type" : "test"
},
{
"c99name" : "InfomaniakRichHTMLEditor",
"module_type" : "SwiftTarget",
"name" : "InfomaniakRichHTMLEditor",
"path" : "Sources/InfomaniakRichHTMLEditor",
"product_memberships" : [
"InfomaniakRichHTMLEditor"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/css/style.css",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/index.html",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/js/editor/commands.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/js/editor/focus.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/js/editor/links.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/js/editor/observer.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/js/editor/selection.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/js/editor/text-attributes.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/js/main.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/js/utils/captureLog.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/js/utils/javascriptBridge.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/InfomaniakRichHTMLEditor/Resources/js/utils/utils.js",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Extensions/PlateformColor+Extension.swift",
"Extensions/String+Escaped.swift",
"Extensions/UIView+Extension.swift",
"Extensions/WKUserContentController+Extension.swift",
"Extensions/WKWebView+Extension.swift",
"Models/CaretPosition.swift",
"Models/EditorError.swift",
"Models/ExecCommand.swift",
"Models/JavaScriptFunction.swift",
"Models/TextJustification.swift",
"Models/UITextAttributes.swift",
"Models/UserScript.swift",
"RichHTMLEditorView+Commands.swift",
"RichHTMLEditorView.swift",
"RichHTMLEditorViewDelegate.swift",
"SwiftUI/Models/TextAttributes+Commands.swift",
"SwiftUI/Models/TextAttributes.swift",
"SwiftUI/Views/RichEditor+Modifier.swift",
"SwiftUI/Views/RichHTMLEditor+Environment.swift",
"SwiftUI/Views/RichHTMLEditor.swift",
"SwiftUI/Views/RichHTMLEditorCoordinator.swift",
"Utils/Constants.swift",
"Utils/JavaScriptFormatterHelper.swift",
"WebViewBridge/JavaScriptManager.swift",
"WebViewBridge/ScriptMessageHandler.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.