We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e8e4c9 commit 2c59bc4Copy full SHA for 2c59bc4
1 file changed
Core/Sources/HostApp/TabContainer.swift
@@ -202,11 +202,11 @@ class ToastController: ObservableObject {
202
func toast(content: Text, type: ToastType) {
203
let id = UUID()
204
let message = Message(id: id, type: type, content: content)
205
- withAnimation(.easeInOut(duration: 0.2)) {
206
- messages.append(message)
207
- }
208
209
Task { @MainActor in
+ withAnimation(.easeInOut(duration: 0.2)) {
+ messages.append(message)
+ }
210
try await Task.sleep(nanoseconds: 4_000_000_000)
211
withAnimation(.easeInOut(duration: 0.2)) {
212
messages.removeAll { $0.id == id }
0 commit comments