diff --git a/FloatingLabelTextFieldSwiftUI.podspec b/FloatingLabelTextFieldSwiftUI.podspec index 16d39be..20f012b 100644 --- a/FloatingLabelTextFieldSwiftUI.podspec +++ b/FloatingLabelTextFieldSwiftUI.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'FloatingLabelTextFieldSwiftUI' - s.version = '4.1.0' + s.version = '4.2.0' s.summary = 'A beautiful floating label textfield library written in SwiftUI.' s.description = <<-DESC diff --git a/README.md b/README.md index 3714b3c..7eb9e1b 100644 --- a/README.md +++ b/README.md @@ -101,8 +101,11 @@ struct ThemeTextFieldStyle: FloatingLabelTextFieldStyle { .textFont(.system(size: 15)) // Sets the text font. .placeholderColor(.gray) // Sets the placeholder color. .placeholderFont(.system(size: 15)) // Sets the placeholder font. - .errorColor(.red) /// Sets the error color. - .addDisableEditingAction([.paste]) /// Disable text field editing action. Like cut, copy, past, all etc. + .errorColor(.red) // Sets the error color. + .addDisableEditingAction([.paste]) // Disable text field editing action. Like cut, copy, past, all etc. + .enablePlaceholderOnFocus(true) // Enable the placeholder label when the textfield is focused. + .allowsHitTesting(true) // Whether this view participates in hit test operations. + .disabled(false) // Whether users can interact with this. } } ```