Skip to content

Commit 0837874

Browse files
committed
Silence deprecation warnings
1 parent 16d7d94 commit 0837874

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/CLGeocoder+Promise.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ extension CLGeocoder {
2525
}
2626

2727
/// Submits a forward-geocoding request using the specified address dictionary.
28+
@available(iOS, deprecated: 11.0)
2829
public func geocode(_ addressDictionary: [String: String]) -> Promise<[CLPlacemark]> {
2930
return Promise { seal in
3031
geocodeAddressDictionary(addressDictionary, completionHandler: seal.resolve)
3132
}
3233
}
3334

3435
/// Submits a forward-geocoding request using the specified address string.
36+
@available(iOS, deprecated: 11.0)
3537
public func geocode(_ addressString: String) -> Promise<[CLPlacemark]> {
3638
return Promise { seal in
3739
geocodeAddressString(addressString, completionHandler: seal.resolve)

0 commit comments

Comments
 (0)