Make UserActivityType.handle MainActor-bound

This commit is contained in:
Shadowfacts 2023-08-23 17:07:41 -07:00
parent 297af7b905
commit f704d15dd7
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ enum UserActivityType: String {
} }
extension UserActivityType { extension UserActivityType {
@MainActor
var handle: (UserActivityManager) -> @MainActor (NSUserActivity) -> Void { var handle: (UserActivityManager) -> @MainActor (NSUserActivity) -> Void {
switch self { switch self {
case .mainScene: case .mainScene: