diff --git a/Sources/FaceLiveness/Views/Liveness/LivenessViewController.swift b/Sources/FaceLiveness/Views/Liveness/LivenessViewController.swift index 5e698f23..299094b7 100644 --- a/Sources/FaceLiveness/Views/Liveness/LivenessViewController.swift +++ b/Sources/FaceLiveness/Views/Liveness/LivenessViewController.swift @@ -49,7 +49,11 @@ final class _LivenessViewController: UIViewController { super.viewDidLoad() view.backgroundColor = .black layoutSubviews() + } + + override func viewWillAppear(_ animated: Bool) { setupAVLayer() + super.viewWillAppear(animated) } private func layoutSubviews() {