 		} else {
 			textField.text = valueToString
 		}
-		
 	}
 	
 	private func updateValue() {
 		if let tValue = textField.text {
 			value = Double(tValue) ?? min
 		}
+	}
+	
+	@objc private func onDone() {
+		textField.resignFirstResponder()
 	}
 	
 	// MARK: UITextFieldDelegate

	
	public override func awakeFromNib() {
		textField.delegate = self
	}
		
	// MARK: outlets
	
	@IBOutlet weak var increment: UIButton!

		}
	}
	
	// MARK: private methods
	
	private func updateTextField() {
		var valueToString = ""
