I'm confused. Could someone please tell me why I get a "No exact matches in call to initializer" error when I have this code....
let bill = textField.text
let billTotal = Double(bill)
but when I force unwrap textField.text the error goes away and everything is good...
let bill = textField.text!
let billTotal = Double(bill)
My thinking is that it should still work without force unwrapping but the app will crash if the textField is nil.
Also, why can I not use an optional instead of force unwrapping?
let bill = textField.text?
let billTotal = Double(bill)
Using an optional gives me the same error: "No exact matches in call to initializer"