From 683054896ff624b47697edc6768ee403ceb82311 Mon Sep 17 00:00:00 2001 From: Samir Ben-Yelles Date: Thu, 1 Nov 2018 21:29:16 +0100 Subject: [PATCH 1/2] Updating podspec to allow interop with Eureka 4.x --- FloatLabelRow.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 1b64fa3b7e3bd59e97a8f12b95c5579dfb69ac6b Mon Sep 17 00:00:00 2001 From: Samir Ben-Yelles Date: Thu, 1 Nov 2018 21:36:00 +0100 Subject: [PATCH 2/2] Add Objc reference --- Sources/FloatLabelRow.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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