From 78793d63ac827599fb180fb65e69d39764ce2ebe Mon Sep 17 00:00:00 2001 From: Darren Ehlers Date: Tue, 11 Aug 2020 16:18:58 -0500 Subject: [PATCH 1/7] Added textField returnKeyType accessor --- AnimatedField/Classes/AnimatedField.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AnimatedField/Classes/AnimatedField.swift b/AnimatedField/Classes/AnimatedField.swift index 319082e..73acce2 100644 --- a/AnimatedField/Classes/AnimatedField.swift +++ b/AnimatedField/Classes/AnimatedField.swift @@ -154,6 +154,10 @@ open class AnimatedField: UIView { didSet { textField.keyboardType = keyboardType } } + public var returnKeyType = UIReturnKeyType.default { + didSet { textField.returnKeyType = returnKeyType } + } + public var keyboardToolbar: UIToolbar? { didSet { textField.inputView = keyboardToolbar } } From 80cf079af6bbfe0b770d5a63d09f8a31b90d620e Mon Sep 17 00:00:00 2001 From: Darren Ehlers Date: Wed, 12 Aug 2020 21:54:43 -0500 Subject: [PATCH 2/7] Added isFirstResponder accessor --- AnimatedField/Classes/AnimatedField.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/AnimatedField/Classes/AnimatedField.swift b/AnimatedField/Classes/AnimatedField.swift index 73acce2..fad9e0c 100644 --- a/AnimatedField/Classes/AnimatedField.swift +++ b/AnimatedField/Classes/AnimatedField.swift @@ -350,7 +350,13 @@ open class AnimatedField: UIView { textField.inputAccessoryView = accessoryView ?? toolBar textField.inputView = numberPicker } - + + open override var isFirstResponder: Bool { + get { + return textField.isFirstResponder + } + } + open override func becomeFirstResponder() -> Bool { textField.becomeFirstResponder() return super.becomeFirstResponder() From 93fb8270b9c686ee34556967a9e8a85b376eee66 Mon Sep 17 00:00:00 2001 From: Darren Ehlers Date: Wed, 12 Aug 2020 22:00:47 -0500 Subject: [PATCH 3/7] Changed TextField height to 34 --- AnimatedField/Classes/AnimatedField.xib | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/AnimatedField/Classes/AnimatedField.xib b/AnimatedField/Classes/AnimatedField.xib index a3734ce..bb30ab1 100644 --- a/AnimatedField/Classes/AnimatedField.xib +++ b/AnimatedField/Classes/AnimatedField.xib @@ -1,9 +1,9 @@ - + - + @@ -32,9 +32,9 @@ - + - + @@ -43,7 +43,7 @@ -