我想更改GMSPlacePickerViewController
导航栏中的取消和搜索图标的颜色。我尝试更改背景色进行测试,但无法正常工作。
func textFieldDidBeginEditing(_ textField: UITextField) {
let config = GMSPlacePickerConfig(viewport: nil)
let placePicker = GMSPlacePickerViewController(config: config)
placePicker.delegate = self
placePicker.navigationController?.navigationBar.backgroundColor = UIColor.black
placePicker.navigationController?.navigationBar.isTranslucent = false
present(placePicker, animated: true, completion: nil)
}