AI-generated Key Takeaways
- 
          GMSAutocompleteViewControllerpresents an interface for users to select a place from a list of autocomplete predictions.
- 
          Place selections are communicated back to the app through the GMSAutocompleteViewControllerResultsDelegateprotocol.
- 
          Developers can customize the appearance of the autocomplete view, such as colors and table cell styles. 
- 
          Filtering of autocomplete suggestions is possible using the autocompleteFilterproperty.
- 
          The placeFieldsandplacePropertiesproperties allow for the customization of the level of place details returned upon selection.
GMSAutocompleteViewController
Deprecated
Use the placeAutocomplete View extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.
@interface GMSAutocompleteViewController : UIViewControllerGMSAutocompleteViewController provides an interface that displays a table of autocomplete
 predictions that updates as the user enters text. Place selections made by the user are
 returned to the app via the GMSAutocompleteViewControllerResultsDelegate protocol.
To use GMSAutocompleteViewController, set its delegate to an object in your app that
 conforms to the GMSAutocompleteViewControllerDelegate protocol and present the controller
 (eg using presentViewController). The GMSAutocompleteViewControllerDelegate delegate methods
 can be used to determine when the user has selected a place or has cancelled selection.
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.Delegate to be notified when a place is selected or picking is cancelled. DeclarationSwift @IBOutlet weak var delegate: (any GMSAutocompleteViewControllerDelegate)? { get set }Objective-C @property (nonatomic, weak, nullable) id<GMSAutocompleteViewControllerDelegate> delegate;
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.Filter to apply to autocomplete suggestions (can be nil). DeclarationSwift var autocompleteFilter: GMSAutocompleteFilter? { get set }Objective-C @property (nonatomic, strong, nullable) GMSAutocompleteFilter *autocompleteFilter;
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.The background color of table cells. DeclarationSwift var tableCellBackgroundColor: UIColor { get set }Objective-C @property (nonatomic, strong) __GMS_AVAILABLE_BUT_DEPRECATED_MSG UIColor *tableCellBackgroundColor;
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.The color of the separator line between table cells. DeclarationSwift var tableCellSeparatorColor: UIColor { get set }Objective-C @property (nonatomic, strong) __GMS_AVAILABLE_BUT_DEPRECATED_MSG UIColor *tableCellSeparatorColor;
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.The color of result name text in autocomplete results DeclarationSwift var primaryTextColor: UIColor { get set }Objective-C @property (nonatomic, strong) __GMS_AVAILABLE_BUT_DEPRECATED_MSG UIColor *primaryTextColor;
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.The color used to highlight matching text in autocomplete results DeclarationSwift var primaryTextHighlightColor: UIColor { get set }Objective-C @property (nonatomic, strong) __GMS_AVAILABLE_BUT_DEPRECATED_MSG UIColor *primaryTextHighlightColor;
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.The color of the second row of text in autocomplete results. DeclarationSwift var secondaryTextColor: UIColor { get set }Objective-C @property (nonatomic, strong) __GMS_AVAILABLE_BUT_DEPRECATED_MSG UIColor *secondaryTextColor;
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.The tint color applied to controls in the Autocomplete view. DeclarationSwift var tintColor: UIColor? { get set }Objective-C @property (nonatomic, strong, nullable) UIColor *tintColor;
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.Specify individual place details to fetch for object GMSPlace. Defaults to returning all details if not overridden.DeclarationSwift var placeFields: GMSPlaceField { get set }Objective-C @property (nonatomic) GMSPlaceField placeFields;
- 
                  
                  Deprecated Use the placeAutocompleteView extension in Places Swift SDK (https://developers.google.com/maps/documentation/places/ios-sdk/google-places-swift) instead.The GMSPlacePropertyfor specifying explicit place details to be requested. Default returns all available properties.DeclarationSwift var placeProperties: [String] { get set }Objective-C @property (nonatomic, strong) __GMS_AVAILABLE_BUT_DEPRECATED_MSG NSArray<NSString *> *placeProperties;