Skip to content

Commit 46ab0a4

Browse files
committed
fix: Calculating camera frame size on viewWillAppear instead
1 parent 737eb08 commit 46ab0a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/FaceLiveness/Views/Liveness/LivenessViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ final class _LivenessViewController: UIViewController {
4949
super.viewDidLoad()
5050
view.backgroundColor = .black
5151
layoutSubviews()
52+
}
53+
54+
override func viewWillAppear(_ animated: Bool) {
5255
setupAVLayer()
56+
super.viewWillAppear(animated)
5357
}
5458

5559
private func layoutSubviews() {

0 commit comments

Comments
 (0)