mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Improve sharing, add YouTube links
This commit is contained in:
@@ -66,7 +66,7 @@ struct ChannelPlaylistView: View {
|
||||
}
|
||||
#if !os(tvOS)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: shareButtonPlacement) {
|
||||
ToolbarItem(placement: .navigation) {
|
||||
ShareButton(
|
||||
contentItem: contentItem,
|
||||
presentingShareSheet: $presentingShareSheet
|
||||
@@ -84,14 +84,6 @@ struct ChannelPlaylistView: View {
|
||||
#endif
|
||||
}
|
||||
|
||||
private var shareButtonPlacement: ToolbarItemPlacement {
|
||||
#if os(iOS)
|
||||
.navigation
|
||||
#else
|
||||
.automatic
|
||||
#endif
|
||||
}
|
||||
|
||||
private var contentItem: ContentItem {
|
||||
ContentItem(playlist: playlist)
|
||||
}
|
||||
|
Reference in New Issue
Block a user