fix: Prevent phone from going to sleep if Camera is active (#2421)

This commit is contained in:
Marc Rousavy 2024-01-19 12:35:33 +01:00 committed by GitHub
parent 97684af851
commit a739ca18e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,6 +250,9 @@ public final class CameraView: UIView, CameraSessionDelegate {
self.setupFpsGraph() self.setupFpsGraph()
} }
} }
// Prevent phone from going to sleep
UIApplication.shared.isIdleTimerDisabled = isActive
} }
func setupFpsGraph() { func setupFpsGraph() {