Various fixes

This commit is contained in:
Ilya Laktyushin
2022-09-05 03:35:37 +02:00
parent 8d11f8c700
commit 69009600a0
3 changed files with 14 additions and 4 deletions

View File

@@ -405,8 +405,13 @@ final class AuthorizationSequenceCodeEntryControllerNode: ASDisplayNode, UITextF
} else {
self.signInWithAppleButton?.isHidden = true
self.dividerNode.isHidden = true
self.nextOptionButtonNode.isHidden = false
items.append(AuthorizationLayoutItem(node: self.nextOptionButtonNode, size: nextOptionSize, spacingBefore: AuthorizationLayoutItemSpacing(weight: 50.0, maxValue: 120.0), spacingAfter: AuthorizationLayoutItemSpacing(weight: 0.0, maxValue: 0.0)))
if case .email = codeType {
self.nextOptionButtonNode.isHidden = true
} else {
self.nextOptionButtonNode.isHidden = false
items.append(AuthorizationLayoutItem(node: self.nextOptionButtonNode, size: nextOptionSize, spacingBefore: AuthorizationLayoutItemSpacing(weight: 50.0, maxValue: 120.0), spacingAfter: AuthorizationLayoutItemSpacing(weight: 0.0, maxValue: 0.0)))
}
}
}
} else {