Skip to content

Commit a314422

Browse files
committed
Set max toast message count to be 3
1 parent 32ecda2 commit a314422

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Core/Sources/HostApp/TabContainer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ class ToastController: ObservableObject {
206206
Task { @MainActor in
207207
withAnimation(.easeInOut(duration: 0.2)) {
208208
messages.append(message)
209+
messages = messages.suffix(3)
209210
}
210211
try await Task.sleep(nanoseconds: 4_000_000_000)
211212
withAnimation(.easeInOut(duration: 0.2)) {

0 commit comments

Comments
 (0)