Skip to content

Commit

Permalink
Fixes Camera frozen when back from filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
s4cha committed Feb 12, 2018
1 parent 5b6f1c6 commit 827dab9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/Camera/YPCameraVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ public class YPCameraVC: UIViewController, UIGestureRecognizerDelegate, Permissi
}
}

public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
if isPreviewSetup {
startCamera()
}
}

public override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
refreshFlashButton()
Expand Down

0 comments on commit 827dab9

Please sign in to comment.