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

@@ -162,11 +162,7 @@ struct ControlsBar: View {
}
}
ShareButton(
contentItem: .init(video: model.currentVideo),
presentingShareSheet: $presentingShareSheet,
shareURL: $shareURL
)
ShareButton(contentItem: .init(video: model.currentVideo))
Section {
Button {
@@ -225,7 +221,8 @@ struct ControlsBar: View {
Text(model.currentVideo?.author ?? "")
.font(.system(size: 12))
if let channel = model.currentVideo?.channel,
if !presentingControls,
let channel = model.currentVideo?.channel,
let subsriptions = channel.subscriptionsString
{
HStack(spacing: 2) {