@IBAction func darkModeSystem(_ sender: Any) { if #available(iOS 13.0, *) { UIApplication.shared.keyWindow?.overrideUserInterfaceStyle = .unspecified do { try Locksmith.updateData( data: [interfaceStyle: ThemeMode.unspecified.mode], forUserAccount: theme ) } catch { print(error.localizedDescription) } } else { // Fallback on earlier versions } systemSettingButton.isSelected = true darkModeOnButton.isSelected = false darkModeOffButton.isSelected = false } @IBAction func darkModeOn(_ sender: Any) { if #available(iOS 13.0, *) { UIApplication.shared.keyWindow?.overrideUserInterfaceStyle = .dark do { try Locksmith.updateData( data: [interfaceStyle: ThemeMode.dark.mode], forUserAccount: theme ) } catch { print(error.localizedDescription) } } else { // Fallback on earlier versions } darkModeOnButton.isSelected = true systemSettingButton.isSelected = false darkModeOffButton.isSelected = false } @IBAction func darkModeOff(_ sender: Any) { if #available(iOS 13.0, *) { UIApplication.shared.keyWindow?.overrideUserInterfaceStyle = .light do { try Locksmith.updateData( data: [interfaceStyle: ThemeMode.light.mode], forUserAccount: theme ) } catch { print(error.localizedDescription) } } else { // Fallback on earlier versions } darkModeOffButton.isSelected = true darkModeOnButton.isSelected = false syst