Im trying to ask for some values from a variable. The variable is going to have the description of the weather and i want to ask for specific words in order to show differen
func weatherImage(for identifier: String) -> UIImage? { switch identifier { case _ where identifier.contains("Clear"), _ where identifier.contains("rain"): return self.soleadoImage case _ where identifier.contains("broken clouds"): return self.nubladoImage default: return nil } }