Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FloatLabelRow.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Sources/FloatLabelRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ open class _FloatLabelCell<T>: Cell<T>, 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
Expand Down