Untitled
unknown
swift
2 years ago
362 B
5
Indexable
var location: (String?, String?) switch location { case (let city, let country) where city != nil && country != nil: layout.location.attributedText = addSymbolPrefix(with: Symbols.location.rawValue, for: "\(city), \(country)") default: layout.location.attributedText = addSymbolPrefix(with: Symbols.location.rawValue, for: "Unknown :(") }
Editor is loading...