mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Unify channel and playlist close buttons
This commit is contained in:
parent
7a2dcc3cf1
commit
5625067456
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user