GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
The GMSNavigationAccessoryView protocol enables customization of accessory UI elements on the main view.
Implementing this protocol is necessary for accessory views to be displayed.
The heightForAccessoryViewConstrainedToSize:onMapView: method determines the desired height of the accessory view, confined by a given size, within the map view.
GMSNavigationAccessoryView
@protocolGMSNavigationAccessoryView<NSObject>
Protocol defining methods that support custom views specifying accessory UI elements applied to
the primary view. Accessory views must implement this protocol in order to be visible.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[],["The `GMSNavigationAccessoryView` protocol defines how custom accessory UI elements are displayed on a primary view. Accessory views must implement this protocol to be visible. The key method is `heightForAccessoryViewConstrainedToSize:onMapView:`, which determines the desired height of the accessory view, given a size constraint and a `GMSMapView` instance. This method must return the height of the accessory view when constrained to a specific size.\n"]]