Created
February 21, 2021 12:05
-
-
Save kemalekren/1c836a64c8434eb9a945d86c4e4c02b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBAction func billTextFieldAction(_ sender: Any) { | |
let tip = Double(tipTextField.text ?? "") ?? 0 | |
let bill = Double(billTextField.text ?? "") ?? 0 | |
calculateTip(tipAmount: tip, billAmount: bill) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment