We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaca5f5 commit c805a25Copy full SHA for c805a25
GoongGeocoder/GoongAutocompleteViewController.swift
@@ -10,8 +10,20 @@ import UIKit
10
var searchBar:UISearchBar?
11
var searchedPlaces = [Prediction]()
12
let decoder = JSONDecoder()
13
- let geocoder = Geocoder.shared
+ var geocoder: Geocoder!
14
@objc public weak var delegate: GoongAutocompleteDelegate?
15
+
16
+ init() {
17
+ super.init(nibName: nil, bundle: nil)
18
+ }
19
+ @objc public convenience init(accessToken: String) {
20
+ self.init()
21
+ self.geocoder = Geocoder(accessToken: accessToken)
22
23
24
+ required public init?(coder: NSCoder) {
25
+ fatalError("init(coder:) has not been implemented")
26
27
override open func viewDidLoad() {
28
super.viewDidLoad()
29
0 commit comments