Allow draging accounts in Preferences into new scenes

This commit is contained in:
Shadowfacts 2021-06-06 14:55:18 -04:00
parent ceb58f1d92
commit feacf576d7
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ struct PreferencesView: View {
.foregroundColor(.secondary)
}
}
}.onDrag {
let activity = UserActivityManager.mainSceneActivity(accountID: account.id)
return NSItemProvider(object: activity)
}
}.onDelete { (indices: IndexSet) in
var indices = indices