# GoogleNavigation Framework Reference

# GMSNavigationAccessoryView

    @protocol GMSNavigationAccessoryView <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.
- `


  ### [-heightForAccessoryViewConstrainedToSize:onMapView:](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Protocols/GMSNavigationAccessoryView#/c:objc(pl)GMSNavigationAccessoryView(im)heightForAccessoryViewConstrainedToSize:onMapView:)


  `

  #### Declaration

  Swift

      func heightForAccessoryViewConstrained(to size: CGSize, on mapView: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSMapView.html) -> CGFloat

  Objective-C

      - (CGFloat)heightForAccessoryViewConstrainedToSize:(CGSize)size
                                               onMapView:
                                                   (nonnull https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSMapView.html *)mapView;

  #### Return Value

  Desired height of the accessory view constrained to the given `size.`