Add descriptive text to login view

This commit is contained in:
Angelo Stavrow 2020-09-29 14:40:15 -04:00
parent 1dd0787c26
commit e736ebbb8c
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE
3 changed files with 6 additions and 3 deletions

View File

@ -9,6 +9,9 @@ struct AccountLoginView: View {
@State private var server: String = ""
var body: some View {
VStack {
Text("Log in to publish and share your posts.")
.font(.caption)
.foregroundColor(.secondary)
HStack {
Image(systemName: "person.circle")
.foregroundColor(.gray)
@ -57,7 +60,7 @@ struct AccountLoginView: View {
as: username, password: password
)
}, label: {
Text("Login")
Text("Log In")
})
.disabled(
model.account.isLoggedIn || (username.isEmpty || password.isEmpty || server.isEmpty)

View File

@ -12,7 +12,7 @@ struct AccountLogoutView: View {
}
Spacer()
Button(action: logoutHandler, label: {
Text("Logout")
Text("Log Out")
})
}
}

View File

@ -13,7 +13,7 @@ struct AccountView: View {
.padding()
} else {
AccountLoginView()
.padding()
.padding(.top)
}
}
}