Unify channel and playlist close buttons

This commit is contained in:
Arkadiusz Fal 2022-12-04 00:50:44 +01:00
parent 7a2dcc3cf1
commit 5625067456

View File

@ -84,13 +84,14 @@ struct ChannelPlaylistView: View {
.background(Color.background(scheme: colorScheme)) .background(Color.background(scheme: colorScheme))
#else #else
.toolbar { .toolbar {
ToolbarItem(placement: .navigation) { ToolbarItem(placement: .cancellationAction) {
if navigationStyle == .tab { if navigationStyle == .tab {
Button("Done") { Button {
withAnimation(Constants.overlayAnimation) { NavigationModel.shared.presentingPlaylist = false
NavigationModel.shared.presentingPlaylist = false } label: {
} Label("Close", systemImage: "xmark")
} }
.buttonStyle(.plain)
} }
} }