mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Location view improvements
This commit is contained in:
@@ -37,6 +37,19 @@ public struct ReverseGeocodedPlacemark {
|
||||
public let city: String?
|
||||
public let country: String?
|
||||
|
||||
public var compactDisplayAddress: String? {
|
||||
if let street = self.street {
|
||||
return street
|
||||
}
|
||||
if let city = self.city {
|
||||
return city
|
||||
}
|
||||
if let country = self.country {
|
||||
return country
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
public var fullAddress: String {
|
||||
var components: [String] = []
|
||||
if let street = self.street {
|
||||
|
||||
Reference in New Issue
Block a user