From bc0bd60e09621221d48e7a3ec01f0c9dad42bd6d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 23 Jun 2026 08:44:32 +0800 Subject: [PATCH] feat: VideoPlayer supports controls:false to hide built-in toolbar --- Sources/SwiftBricks/Controls/VideoPlayerControl.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftBricks/Controls/VideoPlayerControl.swift b/Sources/SwiftBricks/Controls/VideoPlayerControl.swift index fe0b5fb..9552b27 100644 --- a/Sources/SwiftBricks/Controls/VideoPlayerControl.swift +++ b/Sources/SwiftBricks/Controls/VideoPlayerControl.swift @@ -60,7 +60,7 @@ struct VideoPlayerControl: View { func makeNSView(context: Context) -> NSView { let view = AVPlayerView() view.player = player - view.controlsStyle = .default + view.controlsStyle = schema.options.controls == false ? .none : .default return view }