diff --git a/SessionUIKit/Components/SessionTextField.swift b/SessionUIKit/Components/SessionTextField.swift index a688ec9bb..0795ef914 100644 --- a/SessionUIKit/Components/SessionTextField.swift +++ b/SessionUIKit/Components/SessionTextField.swift @@ -56,11 +56,17 @@ public struct SessionTextField: View { .stroke(themeColor: (error?.isEmpty == false) ? .danger : .borderSeparator) ) - Text(error ?? " ") - .bold() - .font(.system(size: Values.mediumFontSize)) - .foregroundColor(themeColor: .danger) - .multilineTextAlignment(.center) + ZStack { + Text(error ?? "") + .bold() + .font(.system(size: Values.mediumFontSize)) + .foregroundColor(themeColor: .danger) + .multilineTextAlignment(.center) + } + .frame( + height: 50, + alignment: .top + ) } } }