mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +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))
|
.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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user