Improve sharing, add YouTube links

This commit is contained in:
Arkadiusz Fal
2021-11-02 20:40:49 +01:00
parent 0091af683f
commit f49453e871
8 changed files with 114 additions and 55 deletions

View File

@@ -76,7 +76,7 @@ struct ChannelVideosView: View {
#endif
#if !os(tvOS)
.toolbar {
ToolbarItem(placement: shareButtonPlacement) {
ToolbarItem(placement: .navigation) {
ShareButton(
contentItem: contentItem,
presentingShareSheet: $presentingShareSheet
@@ -140,14 +140,6 @@ struct ChannelVideosView: View {
}
}
private var shareButtonPlacement: ToolbarItemPlacement {
#if os(iOS)
.navigation
#else
.automatic
#endif
}
private var contentItem: ContentItem {
ContentItem(channel: channel)
}