mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
AuthVC: Fix social login layout issue.
This commit is contained in:
@@ -79,6 +79,8 @@ static const CGFloat kAuthInputContainerViewMinHeightConstraintConstant = 150.0;
|
||||
// Current SSO transaction id used to identify and validate the SSO authentication callback
|
||||
@property (nonatomic, strong) NSString *ssoCallbackTxnId;
|
||||
|
||||
@property (nonatomic, getter = isFirstViewAppearing) BOOL firstViewAppearing;
|
||||
|
||||
@end
|
||||
|
||||
@implementation AuthenticationViewController
|
||||
@@ -110,6 +112,8 @@ static const CGFloat kAuthInputContainerViewMinHeightConstraintConstant = 150.0;
|
||||
defaultCountryCode = @"GB";
|
||||
|
||||
didCheckFalseAuthScreenDisplay = NO;
|
||||
|
||||
_firstViewAppearing = YES;
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
@@ -302,6 +306,11 @@ static const CGFloat kAuthInputContainerViewMinHeightConstraintConstant = 150.0;
|
||||
{
|
||||
[super viewDidAppear:animated];
|
||||
|
||||
if (self.isFirstViewAppearing)
|
||||
{
|
||||
self.firstViewAppearing = NO;
|
||||
}
|
||||
|
||||
if (self.keyVerificationCoordinatorBridgePresenter)
|
||||
{
|
||||
return;
|
||||
@@ -333,6 +342,16 @@ static const CGFloat kAuthInputContainerViewMinHeightConstraintConstant = 150.0;
|
||||
[super viewDidDisappear:animated];
|
||||
}
|
||||
|
||||
- (void)viewDidLayoutSubviews
|
||||
{
|
||||
[super viewDidLayoutSubviews];
|
||||
|
||||
if (self.isFirstViewAppearing)
|
||||
{
|
||||
[self refreshContentViewHeightConstraint];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)destroy
|
||||
{
|
||||
[super destroy];
|
||||
|
||||
Reference in New Issue
Block a user