Skip to content

Commit

Permalink
fix: Remove focus listeners after resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Mar 18, 2024
1 parent 462fb6e commit 2611625
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/ios/Core/CameraSession+Focus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ extension CameraSession {

// Disable listeners
device.isSubjectAreaChangeMonitoringEnabled = false
// Remove any existing listeners
NotificationCenter.default.removeObserver(self,
name: NSNotification.Name.AVCaptureDeviceSubjectAreaDidChange,
object: nil)
}
}

0 comments on commit 2611625

Please sign in to comment.