Fix deprecation warning. Make launchIfNeeded async.

This commit is contained in:
Brent Simmons
2024-04-22 17:25:56 -07:00
parent 12637aa850
commit d52e53d2e8
4 changed files with 57 additions and 41 deletions

View File

@@ -44,6 +44,6 @@ public protocol SendToCommand {
/// - Parameters:
/// - object: The object whose data to send.
/// - selectedText: The currently selected text.
func sendObject(_ object: Any?, selectedText: String?)
@MainActor func sendObject(_ object: Any?, selectedText: String?)
}