One Logo Pool Ball
SwiftUI · IOS API REFERENCE

ViewAlignedScrollTargetBehavior.LimitBehavior

struct · iOS 17.0+ · SDK 27.1

struct LimitBehavior

A type that defines the amount of views that can be scrolled at a time.

Members (5)

get · iOS 18.0+

alwaysByFew

TypeScript
static get alwaysByFew(): ViewAlignedScrollTargetBehavior_LimitBehavior
Swift declaration
static var alwaysByFew: ViewAlignedScrollTargetBehavior.LimitBehavior { get }

The always-by-few limit behavior. Limit the number of views that can be scrolled by a single interaction to a small number of views, rather than a single view at a time. The number of views is determined automatically.

get · iOS 18.0+

alwaysByOne

TypeScript
static get alwaysByOne(): ViewAlignedScrollTargetBehavior_LimitBehavior
Swift declaration
static var alwaysByOne: ViewAlignedScrollTargetBehavior.LimitBehavior { get }

The always-by-one limit behavior. Limit the number of views that can be scrolled by a single interaction to a single view.

get · iOS 17.0+

never

TypeScript
static get never(): ViewAlignedScrollTargetBehavior_LimitBehavior
Swift declaration
static var never: ViewAlignedScrollTargetBehavior.LimitBehavior { get }

The never limit behavior. Never limit the amount of views that can be scrolled.

get · iOS 17.0+

always

TypeScript
static get always(): ViewAlignedScrollTargetBehavior_LimitBehavior
Swift declaration
static var always: ViewAlignedScrollTargetBehavior.LimitBehavior { get }

The always limit behavior. Always limit the amount of views that can be scrolled.

get · iOS 17.0+

automatic

TypeScript
static get automatic(): ViewAlignedScrollTargetBehavior_LimitBehavior
Swift declaration
static var automatic: ViewAlignedScrollTargetBehavior.LimitBehavior { get }

The automatic limit behavior. By default, the behavior will be limited in compact horizontal size classes and will not be limited otherwise.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →