diff --git a/Sources/Brave/Frontend/Settings/SettingsViewController.swift b/Sources/Brave/Frontend/Settings/SettingsViewController.swift index 824cfe577d7..2c5a17c7dd2 100644 --- a/Sources/Brave/Frontend/Settings/SettingsViewController.swift +++ b/Sources/Brave/Frontend/Settings/SettingsViewController.swift @@ -660,7 +660,7 @@ class SettingsViewController: TableViewController { text: Strings.Privacy.browserLock, detailText: Strings.Privacy.browserLockDescription, image: UIImage(braveSystemNamed: "leo.biometric.login"), - accessory: .view(SwitchAccessoryView(initialValue: Preferences.Privacy.lockWithPasscode.value, valueChange: { isOn in + accessory: .view(SwitchAccessoryView(initialValue: Preferences.Privacy.lockWithPasscode.value, valueChange: { [unowned self] isOn in if isOn { Preferences.Privacy.lockWithPasscode.value = isOn } else {