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) }