Stabilize beta release with warning cleanup and edge-case fixes

This commit is contained in:
Trey t
2026-02-22 13:18:14 -06:00
parent fddea81e36
commit ec2bbb4764
55 changed files with 712 additions and 315 deletions

View File

@@ -225,18 +225,13 @@ actor POISearchService {
return pois
}
@available(iOS, deprecated: 26.0, message: "Uses placemark for address formatting")
private func formatAddress(_ item: MKMapItem) -> String? {
var components: [String] = []
if let subThoroughfare = item.placemark.subThoroughfare {
components.append(subThoroughfare)
if let shortAddress = item.address?.shortAddress, !shortAddress.isEmpty {
return shortAddress
}
if let thoroughfare = item.placemark.thoroughfare {
components.append(thoroughfare)
if let fullAddress = item.address?.fullAddress, !fullAddress.isEmpty {
return fullAddress
}
guard !components.isEmpty else { return nil }
return components.joined(separator: " ")
return nil
}
}