mirror of
https://github.com/yattee/yattee.git
synced 2025-04-25 08:06:31 +00:00
Fix keyboard issue with account/instance form on iOS
This commit is contained in:
parent
72246448f1
commit
f3659904dc
@ -94,8 +94,12 @@ struct AccountForm: View {
|
||||
}
|
||||
|
||||
@ViewBuilder var validationStatus: some View {
|
||||
if !username.isEmpty && !password.isEmpty {
|
||||
Section {
|
||||
Section {
|
||||
if username.isEmpty || password.isEmpty {
|
||||
Text("Enter account credentials to connect...")
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.foregroundColor(.secondary)
|
||||
} else {
|
||||
AccountValidationStatus(
|
||||
app: .constant(instance.app),
|
||||
isValid: $isValid,
|
||||
|
@ -99,8 +99,12 @@ struct InstanceForm: View {
|
||||
}
|
||||
|
||||
@ViewBuilder var validationStatus: some View {
|
||||
if !url.isEmpty {
|
||||
Section {
|
||||
Section {
|
||||
if url.isEmpty {
|
||||
Text("Enter location address to connect...")
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.foregroundColor(.secondary)
|
||||
} else {
|
||||
AccountValidationStatus(
|
||||
app: $app,
|
||||
isValid: $isValid,
|
||||
|
Loading…
x
Reference in New Issue
Block a user