fix: Prevent phone from going to sleep if Camera is active (#2421)
This commit is contained in:
parent
97684af851
commit
a739ca18e0
@ -250,6 +250,9 @@ public final class CameraView: UIView, CameraSessionDelegate {
|
||||
self.setupFpsGraph()
|
||||
}
|
||||
}
|
||||
|
||||
// Prevent phone from going to sleep
|
||||
UIApplication.shared.isIdleTimerDisabled = isActive
|
||||
}
|
||||
|
||||
func setupFpsGraph() {
|
||||
|
Loading…
Reference in New Issue
Block a user