Fixed MatrixRustSDK swift package references.

This commit is contained in:
Stefan Ceriu
2022-02-22 14:11:11 +02:00
parent d634995a20
commit bea929a2ae
4 changed files with 13 additions and 4 deletions

View File

@@ -34,8 +34,8 @@ class LoginScreenViewModel: LoginScreenViewModelType, LoginScreenViewModelProtoc
// MARK: - Setup
init() {
super.init(initialViewState: LoginScreenViewState(bindings: LoginScreenViewStateBindings(username: "@stefan.ceriu-element01:matrix.org",
password: "radeon")))
super.init(initialViewState: LoginScreenViewState(bindings: LoginScreenViewStateBindings(username: "",
password: "")))
}
// MARK: - Public

View File

@@ -25,6 +25,8 @@ struct LoginScreen: View {
VStack {
TextField("Username", text: $context.username)
.textFieldStyle(.roundedBorder)
.disableAutocorrection(true)
.autocapitalization(.none)
SecureField("Enter a password", text: $context.password)
.textFieldStyle(.roundedBorder)