From aa5e78a244d3d568a32bb22dc1d712d8c94982d9 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 10 May 2026 15:21:14 +0200 Subject: [PATCH] Silence Sendable warnings in TVRemoteHoldSeekOverlay Annotate makeCoordinator/makeUIView/updateUIView as @MainActor so reading the @MainActor-typed onTick closure stays within MainActor isolation and no longer triggers a Sendable conversion warning. --- Yattee/Views/Player/tvOS/TVRemoteHoldSeekObserver.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Yattee/Views/Player/tvOS/TVRemoteHoldSeekObserver.swift b/Yattee/Views/Player/tvOS/TVRemoteHoldSeekObserver.swift index f0bd161b..7e6df141 100644 --- a/Yattee/Views/Player/tvOS/TVRemoteHoldSeekObserver.swift +++ b/Yattee/Views/Player/tvOS/TVRemoteHoldSeekObserver.swift @@ -26,10 +26,12 @@ struct TVRemoteHoldSeekOverlay: UIViewRepresentable { let isActive: Bool let onTick: TVRemoteHoldSeekTick + @MainActor func makeCoordinator() -> Coordinator { Coordinator(onTick: onTick) } + @MainActor func makeUIView(context: Context) -> UIView { let view = TVRemoteHoldSeekHostView() view.backgroundColor = .clear @@ -38,6 +40,7 @@ struct TVRemoteHoldSeekOverlay: UIViewRepresentable { return view } + @MainActor func updateUIView(_: UIView, context: Context) { context.coordinator.update(onTick: onTick, isActive: isActive) }