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
isHiddenproperty of the arranged views, as this object will manage their visibility.- If
positionis.topor.center, views are laid out from top to bottom. If
positionis.bottom, views are laid out from bottom to top.
Declaration
Swift
init(position: GMSNavigationHidingStackPosition, alignment: GMSNavigationHidingStackViewAlignment)Objective-C
- (nonnull instancetype) initWithPosition:(GMSNavigationHidingStackPosition)position alignment:(GMSNavigationHidingStackViewAlignment)alignment;Parameters
positionThe vertical position of the entire stack view within this container’s bounds (top, center, or bottom).
alignmentThe horizontal alignment of the individual views within the stack view (leading or trailing).
- If
-
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
isHiddenproperty 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;