Add share actions to video context menu

This commit is contained in:
Arkadiusz Fal
2022-06-26 13:57:02 +02:00
parent 820d5ce962
commit 280f90e4c6
8 changed files with 35 additions and 47 deletions

View File

@@ -64,6 +64,11 @@ struct ContentView: View {
#if os(iOS)
.overlay(videoPlayer)
.sheet(isPresented: $navigation.presentingShareSheet) {
if let shareURL = navigation.shareURL {
ShareSheet(activityItems: [shareURL])
}
}
#endif
// iOS 14 has problem with multiple sheets in one view