We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 08769e2 + da5bd57 commit b4e39abCopy full SHA for b4e39ab
1 file changed
Sources/CarBode/CameraPreview.swift
@@ -166,6 +166,7 @@ public class CameraPreview: UIView {
166
self.backgroundColor = UIColor.gray
167
168
DispatchQueue.global().async {
169
+ Thread.sleep(forTimeInterval: 0.2)
170
session.startRunning()
171
DispatchQueue.main.async {
172
let previewLayer = AVCaptureVideoPreviewLayer(session: session)
0 commit comments