Before iOS 15, the Autocomplete feature was totally fine. However, from iOS 15, the GMSAutocompleteViewController has the bug as can be seen in the following screenshot. The screenshot also shows the codes for GMSAutocompleteViewController.
At first I thought it was because I used the old version of the Google Places SDK since it has not been upgraded for 2 years. However, after I upgraded the SDK to the latest version, which is 6.1.1, the bug is still there.
I would like to ask for how to fix it?
I can't find a direct solution on Google.
I found a workaround solution in the here.
The solution is to implement an autocomplete view controller using GMSAutocompleteResultsViewController
and UISearchController
.