I am implementing an auto-complete feature for users to search for address based on their input.
However, I want to ensure that the search results are always in English, regardless of the user's phone language.
While I considered using completer.region
of English-speaking countries, this would restrict the feature's usability and provide me results only from the region I specified.
private lazy var localSearchCompleter: MKLocalSearchCompleter = {
let completer = MKLocalSearchCompleter()
completer.delegate = self
completer.resultTypes = .address
return completer
}()
func searchAddress(_ searchableText: String) {
guard searchableText.isEmpty == false else { return }
localSearchCompleter.queryFragment = searchableText
}
Does someone have an Idea how can I solve this issue?)
I was trying using completer.region
but it limited the results to this region only.