diff --git a/FloatLabelRow.podspec b/FloatLabelRow.podspec index 84818ef..847f7a9 100644 --- a/FloatLabelRow.podspec +++ b/FloatLabelRow.podspec @@ -10,5 +10,5 @@ Pod::Spec.new do |s| s.requires_arc = true s.ios.source_files = ['Sources/**/*.{swift}'] s.ios.frameworks = 'UIKit', 'Foundation' - s.dependency 'Eureka', '~> 3.0' + s.dependency 'Eureka', '>= 3.0' end diff --git a/Sources/FloatLabelRow.swift b/Sources/FloatLabelRow.swift index 790dcfd..c6a74b5 100644 --- a/Sources/FloatLabelRow.swift +++ b/Sources/FloatLabelRow.swift @@ -91,7 +91,7 @@ open class _FloatLabelCell: Cell, UITextFieldDelegate, TextFieldCell where return NSLayoutConstraint.constraints(withVisualFormat: "H:|-[floatLabeledTextField]-|", options: .alignAllLastBaseline, metrics: metrics, views: views) + NSLayoutConstraint.constraints(withVisualFormat: "V:|-(vMargin)-[floatLabeledTextField]-(vMargin)-|", options: .alignAllLastBaseline, metrics: metrics, views: views) } - open func textFieldDidChange(_ textField: UITextField) { + @objc open func textFieldDidChange(_ textField: UITextField) { guard let textValue = textField.text else { row.value = nil return