From 315fcb68a87cb9f32e3c40dfdd917fcc580c259f Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Sat, 14 Oct 2023 12:41:53 +0200 Subject: [PATCH] fix: Fix FpsGraph not updating --- package/ios/CameraView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/ios/CameraView.swift b/package/ios/CameraView.swift index 1603ede..2a2ff58 100644 --- a/package/ios/CameraView.swift +++ b/package/ios/CameraView.swift @@ -284,7 +284,9 @@ public final class CameraView: UIView, CameraSessionDelegate { #if DEBUG if let fpsGraph { - fpsGraph.onTick(CACurrentMediaTime()) + DispatchQueue.main.async { + fpsGraph.onTick(CACurrentMediaTime()) + } } #endif }