GlassBarItemAxisBehavior enum
Whether an item moves into iPhone Duo's vertical bar strip.
Mirrors SwiftUI's ToolbarItem.axisBehavior(_:). Only read where a
GlassNavigationShell has resolved a strip; see GlassVerticalBar.
Values
- automatic → const GlassBarItemAxisBehavior
-
The system decides, as natively: icons go vertical, and custom content stays behind in a horizontal capsule at the top-trailing corner of the content, beside the title.
GlassBarItem.icon, GlassBarItem.menu and GlassBarItem.sheet go vertical; GlassBarItem.custom stays horizontal.
- horizontalOnly → const GlassBarItemAxisBehavior
-
The item stays in the horizontal capsule even where its kind would go vertical.
- verticalPreferred → const GlassBarItemAxisBehavior
-
The item goes vertical even where its kind would stay horizontal.
For GlassBarItem.custom content that works squeezed to the strip's 48pt width — an unread count, a small avatar. It is laid out at that width and whatever height it asks for.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
GlassBarItemAxisBehavior> - A constant List of the values in this enum, in order of their declaration.