From feacf576d7bc8610b8b04492038ad236c80cdd05 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 6 Jun 2021 14:55:18 -0400 Subject: [PATCH] Allow draging accounts in Preferences into new scenes --- Tusker/Screens/Preferences/PreferencesView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tusker/Screens/Preferences/PreferencesView.swift b/Tusker/Screens/Preferences/PreferencesView.swift index 158192fd8f..37f92969ce 100644 --- a/Tusker/Screens/Preferences/PreferencesView.swift +++ b/Tusker/Screens/Preferences/PreferencesView.swift @@ -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