 	}
 }
 
-public class TextFieldFormItemCell: UITableViewCell, UITextFieldDelegate, CellHeightProvider {
+public class TextFieldFormItemCell: UITableViewCell {
 	public let model: TextFieldFormItemCellModel
 	public let titleLabel = UILabel()
 	public let textField = CustomTextField()

		let valid = validateAndUpdateErrorIfNeeded(s, shouldInstallTimer: true, checkSubmitRule: false)
		return valid
	}
	
	public func timerUpdate() {
		invalidateTimer()
		//SwiftyFormLog("timer update")

		let s = textField.text ?? ""
		_ = validateAndUpdateErrorIfNeeded(s, shouldInstallTimer: false, checkSubmitRule: false)
	}

	public func reloadPersistentValidationState() {
		invalidateTimer()
		//SwiftyFormLog("reload persistent message")

		let s = textField.text ?? ""
		_ = validateAndUpdateErrorIfNeeded(s, shouldInstallTimer: false, checkSubmitRule: true)
	}

	public func form_cellHeight(indexPath: IndexPath, tableView: UITableView) -> CGFloat {
		let sizes: TextFieldFormItemCellSizes = compute(bounds.width)
		let value = sizes.cellHeight
		//SwiftyFormLog("compute height of row: \(value)")
		return value
	}
	
	public func textFieldDidBeginEditing(_ textField: UITextField) {
		updateToolbarButtons()
	}
	
	// MARK: UIResponder
	
	public override var canBecomeFirstResponder : Bool {
		return true
	}
	
	public override func becomeFirstResponder() -> Bool {
		return textField.becomeFirstResponder()
	}
	
	public override func resignFirstResponder() -> Bool {
		return textField.resignFirstResponder()
	}
	
}



public class CustomTextField: UITextField {
	public func configure() {
		backgroundColor = UIColor.white
		autocapitalizationType = .sentences
