Untitled

Anonymous
swift
10/12/2022 10:28 AM
484 B
18
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...