Fix tvOS build

This commit is contained in:
Arkadiusz Fal
2022-11-13 23:40:18 +01:00
parent 041a28e7a0
commit f66451db35
3 changed files with 59 additions and 43 deletions

View File

@@ -12,13 +12,15 @@ struct VideoActions: View {
var body: some View {
HStack {
if let video {
if !video.isLocal || video.localStreamIsRemoteURL {
ShareButton(contentItem: .init(video: video)) {
actionButton("Share", systemImage: "square.and.arrow.up")
}
#if !os(tvOS)
if !video.isLocal || video.localStreamIsRemoteURL {
ShareButton(contentItem: .init(video: video)) {
actionButton("Share", systemImage: "square.and.arrow.up")
}
Spacer()
}
Spacer()
}
#endif
if !video.isLocal {
if accounts.signedIn, accounts.app.supportsUserPlaylists {