Skip to content

Commit b4e39ab

Browse files
committed
Merge branch 'release/2.2.2'
2 parents 08769e2 + da5bd57 commit b4e39ab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/CarBode/CameraPreview.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public class CameraPreview: UIView {
166166
self.backgroundColor = UIColor.gray
167167

168168
DispatchQueue.global().async {
169+
Thread.sleep(forTimeInterval: 0.2)
169170
session.startRunning()
170171
DispatchQueue.main.async {
171172
let previewLayer = AVCaptureVideoPreviewLayer(session: session)

0 commit comments

Comments
 (0)