IOS Mobile Application Development
Session 14 Swift IOS Code
//enum
enum weatherType {
case sun, cloud, rain, wind, snow
}
func weather(type: weatherType) -> String? {
if (types == weatherType.sun {
return nil
} else {
return "Nothing"
}
}
getHaterStatus(weather: WeatherType.rain)
No comments:
Post a Comment
Fell free to write your query in comment. Your Comments will be fully encouraged.