fix an issue when input showing error message the layout would change
This commit is contained in:
parent
f6bf61f1b3
commit
f5e086dee1
|
@ -56,11 +56,17 @@ public struct SessionTextField: View {
|
||||||
.stroke(themeColor: (error?.isEmpty == false) ? .danger : .borderSeparator)
|
.stroke(themeColor: (error?.isEmpty == false) ? .danger : .borderSeparator)
|
||||||
)
|
)
|
||||||
|
|
||||||
Text(error ?? " ")
|
ZStack {
|
||||||
.bold()
|
Text(error ?? "")
|
||||||
.font(.system(size: Values.mediumFontSize))
|
.bold()
|
||||||
.foregroundColor(themeColor: .danger)
|
.font(.system(size: Values.mediumFontSize))
|
||||||
.multilineTextAlignment(.center)
|
.foregroundColor(themeColor: .danger)
|
||||||
|
.multilineTextAlignment(.center)
|
||||||
|
}
|
||||||
|
.frame(
|
||||||
|
height: 50,
|
||||||
|
alignment: .top
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue