         weightField.returnKeyType = .done
         weightField.isHidden = true
         weightField.delegate = self
+        weightField.addTarget(self, action: #selector(self.weightFieldTextChanged), for: .editingChanged)
         weightField.keyboardType = .decimalPad
         
         // Add an input accessory view which will display done

        return true
    }
    
    override func layoutSubviews() {
        // Remove these views and redraw them
        nameField.removeFromSuperview()

    var promptLabel: UILabel!
    var nameField: UIFloatingPromptTextField!
    var weightField: UIFloatingPromptTextField!
    var isBackspace = false
    
    private lazy var plusLayer = CAShapeLayer()
    private lazy var buttonGesture = UITapGestureRecognizer()
