# GMSNavigationHidingStackView

    @interface GMSNavigationHidingStackView : UIView

@brief A container view that arranges a series of views vertically and dynamically hides some of
them if needed to fit within the available vertical space.

If the container's height increases, previously hidden views will be shown again based on
available space and their order.
- `


  ### [spacing](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationHidingStackView#/c:objc(cs)GMSNavigationHidingStackView(py)spacing)


  ` The vertical space between the arranged subviews. Defaults to 8.0.

  #### Declaration

  Swift

      var spacing: CGFloat { get set }

  Objective-C

      @property (nonatomic) CGFloat spacing;

- `


  ### [-initWithPosition:alignment:](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationHidingStackView#/c:objc(cs)GMSNavigationHidingStackView(im)initWithPosition:alignment:)


  ` Initializes a GMSNavigationHidingStackView.

  When space is limited, views are hidden starting from the end of the arranged subviews array.
  Callers should not set the `isHidden` property of the arranged views, as this object will manage
  their visibility.
  - If `position` is `.top` or `.center`, views are laid out from top to bottom.
  - If `position` is `.bottom`, views are laid out from bottom to top.

  #### Declaration

  Swift

      init(position: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationHidingStackPosition.html, alignment: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationHidingStackViewAlignment.html)

  Objective-C

      - (nonnull instancetype)
          initWithPosition:(https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationHidingStackPosition.html)position
                 alignment:(https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationHidingStackViewAlignment.html)alignment;

  #### Parameters

  |---|---|
  | ` position ` | The vertical position of the entire stack view within this container's bounds (top, center, or bottom). |
  | ` alignment ` | The horizontal alignment of the individual views within the stack view (leading or trailing). |

- `


  ### [-initWithFrame:](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationHidingStackView#/c:objc(cs)GMSNavigationHidingStackView(im)initWithFrame:)


  ` Unavailable

  #### Declaration

  Objective-C

      - (nonnull instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;

- `


  ### [-initWithCoder:](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationHidingStackView#/c:objc(cs)GMSNavigationHidingStackView(im)initWithCoder:)


  ` Unavailable

  #### Declaration

  Objective-C

      - (nullable instancetype)initWithCoder:(nonnull NSCoder *)aDecoder NS_UNAVAILABLE;

- `


  ### [-init](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationHidingStackView#/c:objc(cs)GMSNavigationHidingStackView(im)init)


  ` Unavailable

  #### Declaration

  Objective-C

      - (nonnull instancetype)init NS_UNAVAILABLE;

- `


  ### [arrangedSubviews](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationHidingStackView#/c:objc(cs)GMSNavigationHidingStackView(py)arrangedSubviews)


  ` The arranged subviews of this view.
  - When space is limited, views are hidden starting from the end of the arranged subviews array.
  - Callers should not set the `isHidden` property of the arranged views, as this object will manage their visibility.
  - All views must have an intrinsic size.

  #### Declaration

  Swift

      var arrangedSubviews: [UIView] { get set }

  Objective-C

      @property (nonatomic, copy) NSArray<__kindof UIView *> *_Nonnull arrangedSubviews;