mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-25 15:56:02 +00:00
Tweak animations
This commit is contained in:
1 parent
c59321edd8
commit
8742b203a6
1 file changed
+2
-2
@@ -30,13 +30,13 @@ class SendModel: ObservableObject, OutboundAppDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func addDevice(device: RemoteDeviceInfo) {
|
func addDevice(device: RemoteDeviceInfo) {
|
||||||
withAnimation {
|
withAnimation(.smooth) {
|
||||||
foundDevices.append(device)
|
foundDevices.append(device)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func removeDevice(id: String) {
|
func removeDevice(id: String) {
|
||||||
withAnimation {
|
withAnimation(.smooth) {
|
||||||
foundDevices.removeAll { $0.id == id }
|
foundDevices.removeAll { $0.id == id }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user