MESSENGER-3710 Layout and text fixes

This commit is contained in:
Frank Rotermund
2022-12-08 11:47:21 +01:00
parent 7fa2dd0ec7
commit 90ead59c71
5 changed files with 18 additions and 31 deletions
@@ -30,7 +30,12 @@ class AuthenticationServerSelectionViewModel: AuthenticationServerSelectionViewM
// MARK: - Setup
init(homeserverAddress: String, flow: AuthenticationFlow, hasModalPresentation: Bool) {
let bindings = AuthenticationServerSelectionBindings(homeserverAddress: homeserverAddress)
var bindings = AuthenticationServerSelectionBindings(homeserverAddress: homeserverAddress)
if BWIBuildSettings.shared.bumLoginFlowLayout {
bindings.homeserverAddress = ""
}
super.init(initialViewState: AuthenticationServerSelectionViewState(bindings: bindings,
flow: flow,
hasModalPresentation: hasModalPresentation))
@@ -110,7 +110,7 @@ struct AuthenticationServerSelectionScreen: View {
/// The text field, extracted for iOS 15 modifiers to be applied.
var textField: some View {
TextField(VectorL10n.authenticationServerSelectionServerUrl, text: $viewModel.homeserverAddress) {
TextField(BWIL10n.authenticationServerSelectionServerUrl, text: $viewModel.homeserverAddress) {
isEditingTextField = $0
}
.keyboardType(.URL)