I'd have tried to customize NavigationController in GooglePlacePicker on Swift4, but there is not working what I want.
Does anyone know how to change navigation UI in placePicker on Swift4? Thank you for reading this!
@IBAction func pickPlaceBtn(_ sender: Any) {
let config:GMSPlacePickerConfig = GMSPlacePickerConfig(viewport: nil)
print(config.viewport)
let placePicker:GMSPlacePickerViewController = GMSPlacePickerViewController(config: config)
placePicker.delegate = self
present(placePicker, animated: true, completion: nil)
//Does not work.
placePicker.navigationController?.navigationBar.backgroundColor = UIColor.black
}
try this