Fix 2fa registration screen layout

Don't obscure message text on smaller form factors

Also, disable overzealous assert with non-callkit adapters. The adapter
is not a singleton, it gets rebuilt whenever call related privacy
settings are triggered.

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent 34a56a56c4
commit ec9538a3e4

@ -74,7 +74,10 @@ NS_ASSUME_NONNULL_BEGIN
@"REGISTER_2FA_INSTRUCTIONS", @"Instructions to enter the 'two-factor auth pin' in the 2FA registration view.");
// Layout
[entryView autoPinEdgesToSuperviewMargins];
[entryView autoPinToTopLayoutGuideOfViewController:self withInset:0];
[entryView autoPinEdgeToSuperviewMargin:ALEdgeLeft];
[entryView autoPinEdgeToSuperviewMargin:ALEdgeRight];
[entryView autoPinToBottomLayoutGuideOfViewController:self withInset:0];
}
- (void)viewWillAppear:(BOOL)animated

@ -26,8 +26,6 @@ class NonCallKitCallUIAdaptee: NSObject, CallUIAdaptee {
self.notificationsAdapter = notificationsAdapter
super.init()
SwiftSingletons.register(self)
}
func startOutgoingCall(handle: String) -> SignalCall {

@ -116,7 +116,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)createContents
{
const CGFloat kVSpacing = 30.f;
const CGFloat kVSpacing = ScaleFromIPhone5(12);
UILabel *instructionsLabel = [self createLabelWithText:nil];
self.instructionsLabel = instructionsLabel;

Loading…
Cancel
Save