Animate profile removal

Could only notice difference on iPad.
This commit is contained in:
Davide De Rosa 2022-04-27 18:31:12 +02:00
parent d4484f3307
commit 2aa4008a08
1 changed files with 3 additions and 1 deletions

View File

@ -131,9 +131,11 @@ extension ProfileView {
} }
private func removeProfile() { private func removeProfile() {
withAnimation {
profileManager.removeProfiles(withIds: [header.id]) profileManager.removeProfiles(withIds: [header.id])
} }
} }
}
struct ShortcutsButton: View { struct ShortcutsButton: View {
@ObservedObject private var productManager: ProductManager @ObservedObject private var productManager: ProductManager