|
|
|
@ -15,6 +15,7 @@
|
|
|
|
|
#import <SignalMessaging/OWSNavigationController.h>
|
|
|
|
|
#import <SignalServiceKit/NSString+SSK.h>
|
|
|
|
|
#import <SignalServiceKit/SignalServiceKit-Swift.h>
|
|
|
|
|
#import <SignalMessaging/UIUtil.h>
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
@ -81,6 +82,7 @@ NSString *const kKeychainKey_LastRegisteredPhoneNumber = @"kKeychainKey_LastRegi
|
|
|
|
|
self.view.userInteractionEnabled = YES;
|
|
|
|
|
[self.view
|
|
|
|
|
addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(backgroundTapped:)]];
|
|
|
|
|
self.view.accessibilityIdentifier = SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, @"root_view");
|
|
|
|
|
|
|
|
|
|
UIView *headerWrapper = [UIView containerView];
|
|
|
|
|
[self.view addSubview:headerWrapper];
|
|
|
|
@ -112,6 +114,7 @@ NSString *const kKeychainKey_LastRegisteredPhoneNumber = @"kKeychainKey_LastRegi
|
|
|
|
|
legalTopMatterLabel.textAlignment = NSTextAlignmentCenter;
|
|
|
|
|
legalTopMatterLabel.attributedText = attributedLegalTopMatter;
|
|
|
|
|
legalTopMatterLabel.userInteractionEnabled = YES;
|
|
|
|
|
SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, legalTopMatterLabel);
|
|
|
|
|
|
|
|
|
|
UITapGestureRecognizer *tapGesture =
|
|
|
|
|
[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(didTapLegalTerms:)];
|
|
|
|
@ -157,6 +160,7 @@ NSString *const kKeychainKey_LastRegisteredPhoneNumber = @"kKeychainKey_LastRegi
|
|
|
|
|
[countryRow
|
|
|
|
|
addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self
|
|
|
|
|
action:@selector(countryCodeRowWasTapped:)]];
|
|
|
|
|
SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, countryRow);
|
|
|
|
|
|
|
|
|
|
UILabel *countryNameLabel = [UILabel new];
|
|
|
|
|
countryNameLabel.text
|
|
|
|
@ -216,6 +220,7 @@ NSString *const kKeychainKey_LastRegisteredPhoneNumber = @"kKeychainKey_LastRegi
|
|
|
|
|
[phoneNumberRow addSubview:phoneNumberTextField];
|
|
|
|
|
[phoneNumberTextField autoVCenterInSuperview];
|
|
|
|
|
[phoneNumberTextField autoPinTrailingToSuperviewMargin];
|
|
|
|
|
SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, phoneNumberTextField);
|
|
|
|
|
|
|
|
|
|
UILabel *examplePhoneNumberLabel = [UILabel new];
|
|
|
|
|
self.examplePhoneNumberLabel = examplePhoneNumberLabel;
|
|
|
|
@ -253,6 +258,7 @@ NSString *const kKeychainKey_LastRegisteredPhoneNumber = @"kKeychainKey_LastRegi
|
|
|
|
|
[activateButton autoPinLeadingAndTrailingToSuperviewMargin];
|
|
|
|
|
[activateButton autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:separatorView2 withOffset:15];
|
|
|
|
|
[activateButton autoSetDimension:ALDimensionHeight toSize:kActivateButtonHeight];
|
|
|
|
|
SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, activateButton);
|
|
|
|
|
|
|
|
|
|
UIActivityIndicatorView *spinnerView =
|
|
|
|
|
[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
|
|
|
|
@ -282,6 +288,8 @@ NSString *const kKeychainKey_LastRegisteredPhoneNumber = @"kKeychainKey_LastRegi
|
|
|
|
|
withOffset:ScaleFromIPhone5To7Plus(8, 12)];
|
|
|
|
|
[bottomLegalLinkButton setCompressionResistanceHigh];
|
|
|
|
|
[bottomLegalLinkButton setContentHuggingHigh];
|
|
|
|
|
|
|
|
|
|
SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, bottomLegalLinkButton);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void)viewDidAppear:(BOOL)animated
|
|
|
|
|