Created
April 13, 2019 23:30
-
-
Save JeremyXue77/490975e55829310b9357d53f45514b36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum GesturePasswordType: Int { | |
| case setting = 0 | |
| case unlock = 1 | |
| } | |
| @IBAction func changeType(_ sender: UISegmentedControl) { | |
| guard let type = GesturePasswordType(rawValue: sender.selectedSegmentIndex) else { return } | |
| gesturePasswordType = type | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment