From eebc52751b11ffdea97b3cdf8992838d57c3c253 Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 12 Aug 2022 10:04:03 +0100 Subject: [PATCH] reducing net toast times --- Mixonomer/Views/Playlist/PlaylistList.swift | 2 +- Mixonomer/Views/Playlist/PlaylistView.swift | 2 +- Mixonomer/Views/Tag/TagList.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Mixonomer/Views/Playlist/PlaylistList.swift b/Mixonomer/Views/Playlist/PlaylistList.swift index 4ecb051..b8a7228 100644 --- a/Mixonomer/Views/Playlist/PlaylistList.swift +++ b/Mixonomer/Views/Playlist/PlaylistList.swift @@ -81,7 +81,7 @@ struct PlaylistList: View { AddPlaylistSheet(playlists: self.$liveUser.playlists, username: self.$liveUser.username) } ) - .toast(isPresented: $showingToast, dismissAfter: 3.0){ + .toast(isPresented: $showingToast, dismissAfter: 1.0){ if toastSuccess { ToastView(toastText) diff --git a/Mixonomer/Views/Playlist/PlaylistView.swift b/Mixonomer/Views/Playlist/PlaylistView.swift index 3852564..bef332c 100644 --- a/Mixonomer/Views/Playlist/PlaylistView.swift +++ b/Mixonomer/Views/Playlist/PlaylistView.swift @@ -199,7 +199,7 @@ struct PlaylistView: View { Text("Open") } } - .toast(isPresented: $showingToast, dismissAfter: 3.0){ + .toast(isPresented: $showingToast, dismissAfter: 1.0){ if toastSuccess { ToastView(toastText) diff --git a/Mixonomer/Views/Tag/TagList.swift b/Mixonomer/Views/Tag/TagList.swift index ecc8313..ab294c9 100644 --- a/Mixonomer/Views/Tag/TagList.swift +++ b/Mixonomer/Views/Tag/TagList.swift @@ -74,7 +74,7 @@ struct TagList: View { AddTagSheet(tags: self.$liveUser.tags, username: self.$liveUser.username) } ) - .toast(isPresented: $showingToast, dismissAfter: 3.0){ + .toast(isPresented: $showingToast, dismissAfter: 1.0){ if toastSuccess { ToastView(toastText)