Geek Culture
Published in

Geek Culture

Search using MapKit in SwiftUI

Photo by Z on Unsplash
self.searchCompleter.resultTypes = [.address]self.searchCompleter.pointOfInterestFilter = .includingAllself.publisher = $search.receive(on: RunLoop.main).sink(receiveValue: { [weak self] (str) inself?.searchCompleter.queryFragment = str})

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sai Durga Mahesh

Using Data Science to provide better solutions to real word problems