We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c8ab96 commit b0af4c7Copy full SHA for b0af4c7
Sources/FloatingLabelTextFieldSwiftUI/FloatingLabelTextField.swift
@@ -59,7 +59,7 @@ public struct FloatingLabelTextField: View {
59
var centerTextFieldView: some View {
60
ZStack(alignment: notifier.textAlignment.getAlignment()) {
61
62
- if (notifier.isAnimateOnFocus ? !isSelected : textFieldValue.isEmpty) {
+ if (notifier.isAnimateOnFocus ? (!isSelected && textFieldValue.isEmpty) : textFieldValue.isEmpty) {
63
Text(placeholderText)
64
.font(notifier.placeholderFont)
65
.multilineTextAlignment(notifier.textAlignment)
0 commit comments