Skip to content
This repository was archived by the owner on Jul 1, 2022. It is now read-only.

Commit e5f476d

Browse files
Fixed iPad rotation bug by waiting for preview to be created before fixing rotation
1 parent 3405e86 commit e5f476d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ALCameraViewController/Views/CameraView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public class CameraView: UIView {
5959
session.startRunning()
6060
DispatchQueue.main.async() { [weak self] in
6161
self?.createPreview()
62+
self?.rotatePreview()
6263
}
6364
}
6465
}

0 commit comments

Comments
 (0)