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 }