From 9c8ab968e03734ad799b41c94d2812f365b1cb35 Mon Sep 17 00:00:00 2001 From: kishanraja Date: Sun, 18 Apr 2021 16:54:33 +0530 Subject: [PATCH] Update REDME.md and podfile --- FloatingLabelTextFieldSwiftUI.podspec | 2 +- README.md | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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. } } ```