mirror of
https://github.com/yattee/yattee.git
synced 2025-10-14 19:38:13 +00:00
Improve sharing, add YouTube links
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user