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))
#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)
}
}