Make UserActivityType.handle MainActor-bound
This commit is contained in:
parent
297af7b905
commit
f704d15dd7
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue