|
|
|
@ -318,7 +318,7 @@ public class OnboardingVerificationViewController: OnboardingBaseViewController
|
|
|
|
|
])
|
|
|
|
|
stackView.axis = .vertical
|
|
|
|
|
stackView.alignment = .fill
|
|
|
|
|
stackView.layoutMargins = UIEdgeInsets(top: 32, left: 32, bottom: 32, right: 32)
|
|
|
|
|
stackView.layoutMargins = UIEdgeInsets(top: 16, left: 16, bottom: 16, right: 16)
|
|
|
|
|
stackView.isLayoutMarginsRelativeArrangement = true
|
|
|
|
|
view.addSubview(stackView)
|
|
|
|
|
stackView.autoPinWidthToSuperview()
|
|
|
|
@ -437,6 +437,8 @@ public class OnboardingVerificationViewController: OnboardingBaseViewController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MARK: - View Lifecycle
|
|
|
|
|
|
|
|
|
|
public override func viewDidAppear(_ animated: Bool) {
|
|
|
|
|
super.viewDidAppear(animated)
|
|
|
|
|
|
|
|
|
@ -491,7 +493,7 @@ public class OnboardingVerificationViewController: OnboardingBaseViewController
|
|
|
|
|
Logger.info("")
|
|
|
|
|
|
|
|
|
|
guard onboardingCodeView.isComplete else {
|
|
|
|
|
self.setHasInvalidCode(true)
|
|
|
|
|
self.setHasInvalidCode(false)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -499,7 +501,12 @@ public class OnboardingVerificationViewController: OnboardingBaseViewController
|
|
|
|
|
|
|
|
|
|
onboardingController.update(verificationCode: onboardingCodeView.verificationCode)
|
|
|
|
|
|
|
|
|
|
// Temporarily hide the "resend link" button during the verification attempt.
|
|
|
|
|
codeStateLink?.layer.opacity = 0.05
|
|
|
|
|
|
|
|
|
|
onboardingController.tryToVerify(fromViewController: self, completion: { (outcome) in
|
|
|
|
|
self.codeStateLink?.layer.opacity = 1
|
|
|
|
|
|
|
|
|
|
if outcome == .invalidVerificationCode {
|
|
|
|
|
self.setHasInvalidCode(true)
|
|
|
|
|
}
|
|
|
|
|