1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 22:30:32 +05:30

Change channel close button

This commit is contained in:
Arkadiusz Fal 2022-08-26 09:58:08 +02:00
parent cbd1102563
commit 28d89fdbae

View File

@ -81,12 +81,14 @@ struct ChannelVideosView: View {
#if !os(tvOS) #if !os(tvOS)
.toolbar { .toolbar {
ToolbarItem(placement: .navigation) { ToolbarItem(placement: .cancellationAction) {
if navigationStyle == .tab { if navigationStyle == .tab {
Button("Done") { Button {
withAnimation(Constants.overlayAnimation) { withAnimation(Constants.overlayAnimation) {
navigation.presentingChannel = false navigation.presentingChannel = false
} }
} label: {
Label("Close", systemImage: "xmark")
} }
} }
} }