Skip to content

Instantly share code, notes, and snippets.

@nic004
Created March 7, 2018 03:11
Show Gist options
  • Save nic004/9408b474f535b10c3d3c5b3924536d65 to your computer and use it in GitHub Desktop.
Save nic004/9408b474f535b10c3d3c5b3924536d65 to your computer and use it in GitHub Desktop.
phone number verification without Reactive #6
class PhoneVerifyViewController: UIViewController {
enum PhoneNumberVerifyStep {
case inputPhoneNumber, inputVerifyNumber, verifying, succeed, failed
}
var verifyStep: PhoneNumberVerifyStep = .inputPhoneNumber
@IBOutlet weak var phoneNumberTextField: UITextField!
@IBOutlet weak var verifyNumberTextField: UITextField!
@IBOutlet weak var requestVerifyNumberButton: UIButton!
@IBOutlet weak var verifyButton: UIButton!
@IBOutlet weak var statusLabel: UILabel!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment