Removed controls in CompactPosts

This commit is contained in:
Lumaa 2024-02-21 08:27:30 +01:00
parent 7319b87086
commit e35565c246

View File

@ -90,7 +90,7 @@ struct PostAttachment: View {
} else if attachment.supportedType == .video {
ZStack {
if player != nil {
VideoPlayer(player: player)
NoControlsPlayerViewController(player: player!) // No controls outside of AttachmentView
.overlay(
RoundedRectangle(cornerRadius: 15)
.stroke(.gray.opacity(0.3), lineWidth: 1)