   }
   
   private func removePin() {
-    UserDefaults.standard.removeObject(forKey: ALConstants.kPincode)
+    AppLocker.myValet.removeObject(forKey: ALConstants.kPincode)
     dismiss(animated: true, completion: nil)
   }
   

  private var isFirstCreationStep = true
  private var savedPin: String? {
    get {
      return UserDefaults.standard.string(forKey: ALConstants.kPincode)
    }
    set {
      UserDefaults.standard.set(newValue, forKey: ALConstants.kPincode)
    }
  }
  

import UIKit
import AudioToolbox
import LocalAuthentication
import Valet

public enum ALConstants {
  static let nibName = "AppLocker"
  static let kPincode = "pincode" // Key for saving pincode to keychain
  static let kLocalizedReason = "Unlock with sensor" // Your message when sensors must be shown
  static let duration = 0.3 // Duration of indicator filling
  static let maxPinLength = 4
