GoogleNavigation Framework Reference

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.

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

    Declaration

    Swift

    var spacing: CGFloat { get set }

    Objective-C

    @property (nonatomic) CGFloat spacing;
  • 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

    Objective-C

    - (nonnull instancetype)
        initWithPosition:(GMSNavigationHidingStackPosition)position
               alignment:(GMSNavigationHidingStackViewAlignment)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).

  • Unavailable

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • 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;