Skip to content

Commit b392a08

Browse files
committed
Renamed sharedGeocoder to shared
1 parent 03271fd commit b392a08

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

MapboxGeocoder/MBGeocoder.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ open class Geocoder: NSObject {
119119

120120
To use this object, a Mapbox [access token](https://www.mapbox.com/help/define-access-token/) should be specified in the `MGLMapboxAccessToken` key in the main application bundle’s Info.plist.
121121
*/
122-
open static let sharedGeocoder = Geocoder(accessToken: nil)
122+
@objc(sharedGeocoder)
123+
open static let shared = Geocoder(accessToken: nil)
123124

124125
/// The API endpoint to request the geocodes from.
125126
internal var apiEndpoint: URL

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Alternatively, you can place your access token in the `MGLMapboxAccessToken` key
5555
5656
```swift
5757
// main.swift
58-
let geocoder = Geocoder.sharedGeocoder
58+
let geocoder = Geocoder.shared
5959
```
6060

6161
```objc

0 commit comments

Comments
 (0)