Add share actions to video context menu

This commit is contained in:
Arkadiusz Fal
2022-06-26 13:57:02 +02:00
parent 72ec6094bc
commit 8ebadd4758
8 changed files with 35 additions and 47 deletions

View File

@@ -120,11 +120,7 @@ struct ChannelVideosView: View {
.opacity(store.item?.subscriptionsString != nil ? 1 : 0)
}
ShareButton(
contentItem: contentItem,
presentingShareSheet: $presentingShareSheet,
shareURL: $shareURL
)
ShareButton(contentItem: contentItem)
subscriptionToggleButton
@@ -135,13 +131,6 @@ struct ChannelVideosView: View {
}
}
#endif
#if os(iOS)
.sheet(isPresented: $presentingShareSheet) {
if let shareURL = shareURL {
ShareSheet(activityItems: [shareURL])
}
}
#endif
.onAppear {
resource?.loadIfNeeded()
}