formulaLabel.text = "" answerLabel.text = "" } @IBAction func inputFormula(_ sender: UIButton) { // ϘλϯʢCͱ=Ҏ֎ʣ͕ԡ͞ΕͨΒࣜΛදࣔ͢Δ guard let formulaText = formulaLabel.text else { return } guard let senderedText = sender.titleLabel?.text else { return } formulaLabel.text = formulaText + senderedText }