Sketch out the 'onboarding code verification' view.

pull/2/head
Matthew Chen 7 years ago
parent efe5513c4e
commit c2b2d38f24

@ -482,19 +482,6 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
[self.searchResultsController viewDidAppear:animated];
self.hasEverAppeared = YES;
dispatch_async(dispatch_get_main_queue(), ^{
OnboardingController *onboardingController = [OnboardingController new];
[onboardingController
updateWithPhoneNumber:[[OnboardingPhoneNumber alloc] initWithE164:@"+13213214321" userInput:@"3213214321"]];
// UIViewController *view = [onboardingController initialViewController];
UIViewController *view =
[[OnboardingVerificationViewController alloc] initWithOnboardingController:onboardingController];
OWSNavigationController *navigationController =
[[OWSNavigationController alloc] initWithRootViewController:view];
[self presentViewController:navigationController animated:YES completion:nil];
});
}
- (void)viewDidDisappear:(BOOL)animated

@ -57,10 +57,6 @@ public class OnboardingBaseViewController: OWSViewController {
return button(title: title, selector: selector, titleColor: .ows_materialBlue, backgroundColor: .white)
}
func disabledLinkButton(title: String, selector: Selector) -> OWSFlatButton {
return self.button(title: title, selector: selector, titleColor: Theme.secondaryColor, backgroundColor: .white)
}
private func button(title: String, selector: Selector, titleColor: UIColor, backgroundColor: UIColor) -> OWSFlatButton {
// TODO: Make sure this all fits if dynamic font sizes are maxed out.
let font = UIFont.ows_dynamicTypeBodyClamped.ows_mediumWeight()

@ -1556,9 +1556,6 @@
/* Label for the 'resend code by voice' button in the 'onboarding verification' view. */
"ONBOARDING_VERIFICATION_RESEND_CODE_BY_VOICE_BUTTON" = "Call me instead";
/* Label for the link that lets users request another verification code. */
"ONBOARDING_VERIFICATION_RESEND_CODE_LINK" = "ONBOARDING_VERIFICATION_RESEND_CODE_LINK";
/* Label for link that can be used when the resent code did not arrive. */
"ONBOARDING_VERIFICATION_RESENT_CODE_MISSING_LINK" = "Still no code?";

Loading…
Cancel
Save