The visibility of scroll indicators of a UI element.
Pass a value of this type to the ``View/scrollIndicators(_:axes:)`` method
to specify the preferred scroll indicator visibility of a view hierarchy.
Members (4)
get · iOS 16.0+
never
TypeScript
static get never(): ScrollIndicatorVisibility
Swift declaration
static var never: ScrollIndicatorVisibility { get }
Scroll indicators should never be visible.
This value behaves like ``hidden``, but
overrides scrollable views that choose
to keep their indicators visible. When using this value,
provide an alternative method of scrolling. The typical
horizontal swipe gesture might not be available, depending on
the current input device.
get · iOS 16.0+
hidden
TypeScript
static get hidden(): ScrollIndicatorVisibility
Swift declaration
static var hidden: ScrollIndicatorVisibility { get }
Hide the scroll indicators.
By default, scroll views in macOS show indicators when a
mouse is connected. Use ``never`` to indicate
a stronger preference that can override this behavior.
get · iOS 16.0+
visible
TypeScript
static get visible(): ScrollIndicatorVisibility
Swift declaration
static var visible: ScrollIndicatorVisibility { get }
Show the scroll indicators.
The actual visibility of the indicators depends on platform
conventions like auto-hiding behaviors in iOS or user preference
behaviors in macOS.
get · iOS 16.0+
automatic
TypeScript
static get automatic(): ScrollIndicatorVisibility
Swift declaration
static var automatic: ScrollIndicatorVisibility { get }
Scroll indicator visibility depends on the
policies of the component accepting the visibility configuration.