MKLocalSearchCompleter has a property named results , which is an array of MKLocalSearchCompletion. This type has a property named subtitle, which is what you may be looking for.
You can try something like this:
let completer: MKLocationSearchCompleter = yourCompleter
let subtitle: String = completer.results.first?.subtitle
More on this subject: https://developer.apple.com/documentation/mapkit/mklocalsearchcompletion
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.