fix
This commit is contained in:
parent
5942de1eea
commit
2647f5836c
@ -95,6 +95,7 @@ public struct CustomTextField: View {
|
|||||||
.lineSpacing(20)
|
.lineSpacing(20)
|
||||||
}
|
}
|
||||||
Spacer()
|
Spacer()
|
||||||
|
if !text.isEmpty {
|
||||||
if security {
|
if security {
|
||||||
Button {
|
Button {
|
||||||
eye.toggle()
|
eye.toggle()
|
||||||
@ -102,6 +103,7 @@ public struct CustomTextField: View {
|
|||||||
Image(!eye ? "EyeClose" : "EyeOpen", bundle: .module)
|
Image(!eye ? "EyeClose" : "EyeOpen", bundle: .module)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}.padding(.horizontal, 14)
|
}.padding(.horizontal, 14)
|
||||||
}
|
}
|
||||||
if error {
|
if error {
|
||||||
@ -114,5 +116,5 @@ public struct CustomTextField: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#Preview {
|
#Preview {
|
||||||
CustomTextField(titleKey: "",security: true , text: .constant(""))
|
CustomTextField(titleKey: "",security: true , text: .constant("dwed"))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user