mirror of
https://github.com/yattee/yattee.git
synced 2025-10-16 04:18:13 +00:00
Add share actions to video context menu
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user