I keep getting this error. βThe initializer for the conditional binding must be of an optional type, notβ Double. βI am trying to display some basic data data, and this is double. Ive tried to get around this the same way I had to do to save the values ββwhen converting it.
heres code that gives me an error:
func displayStats() { // display other attributes if they have values if let servingSize = mealstats.serving { servingsLabel.text = servingSize }
source share