From 5625067456309ba8d2cf26604b377568388a2bdd Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 4 Dec 2022 00:50:44 +0100 Subject: [PATCH] Unify channel and playlist close buttons --- Shared/Views/ChannelPlaylistView.swift | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Shared/Views/ChannelPlaylistView.swift b/Shared/Views/ChannelPlaylistView.swift index cd7e0d79..29e891c4 100644 --- a/Shared/Views/ChannelPlaylistView.swift +++ b/Shared/Views/ChannelPlaylistView.swift @@ -84,13 +84,14 @@ struct ChannelPlaylistView: View { .background(Color.background(scheme: colorScheme)) #else .toolbar { - ToolbarItem(placement: .navigation) { + ToolbarItem(placement: .cancellationAction) { if navigationStyle == .tab { - Button("Done") { - withAnimation(Constants.overlayAnimation) { - NavigationModel.shared.presentingPlaylist = false - } + Button { + NavigationModel.shared.presentingPlaylist = false + } label: { + Label("Close", systemImage: "xmark") } + .buttonStyle(.plain) } }