Change channel close button

This commit is contained in:
Arkadiusz Fal 2022-08-26 09:58:08 +02:00
parent 5c038b2aa7
commit 653cca07fe

View File

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