Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
Structure

ViewAlignedScrollTargetBehavior

The Compose SwiftUI form of SwiftUI's ViewAlignedScrollTargetBehavior.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
class ViewAlignedScrollTargetBehavior

Overview

This is the Kotlin form of SwiftUI ViewAlignedScrollTargetBehavior: SwiftUI documentation. In Swift it reads:

struct ViewAlignedScrollTargetBehavior

Topics

Initializers

constructor(limitBehavior: ViewAlignedScrollTargetBehavior.LimitBehavior, anchor: UnitPoint?)
SwiftUI ViewAlignedScrollTargetBehavior.init(limitBehavior:anchor:) · iOS 26.0+, macOS 26.0+, tvOS 26.0+, watchOS 26.0+
constructor(limitBehavior: ViewAlignedScrollTargetBehavior.LimitBehavior = ViewAlignedScrollTargetBehavior.LimitBehavior.automatic)
SwiftUI ViewAlignedScrollTargetBehavior.init(limitBehavior:)
constructor(anchor: UnitPoint?)
SwiftUI ViewAlignedScrollTargetBehavior.init(anchor:) · iOS 26.0+, macOS 26.0+, tvOS 26.0+, watchOS 26.0+

Type properties

val alwaysByFew: ViewAlignedScrollTargetBehavior.LimitBehavior
SwiftUI ViewAlignedScrollTargetBehavior.LimitBehavior.alwaysByFew · iOS 18.0+, macOS 15.0+, tvOS 18.0+, watchOS 11.0+
val alwaysByOne: ViewAlignedScrollTargetBehavior.LimitBehavior
SwiftUI ViewAlignedScrollTargetBehavior.LimitBehavior.alwaysByOne · iOS 18.0+, macOS 15.0+, tvOS 18.0+, watchOS 11.0+
val never: ViewAlignedScrollTargetBehavior.LimitBehavior
SwiftUI ViewAlignedScrollTargetBehavior.LimitBehavior.never
val always: ViewAlignedScrollTargetBehavior.LimitBehavior
SwiftUI ViewAlignedScrollTargetBehavior.LimitBehavior.always
val automatic: ViewAlignedScrollTargetBehavior.LimitBehavior
SwiftUI ViewAlignedScrollTargetBehavior.LimitBehavior.automatic

Types

class ViewAlignedScrollTargetBehavior
SwiftUI ViewAlignedScrollTargetBehavior
class LimitBehavior
SwiftUI ViewAlignedScrollTargetBehavior.LimitBehavior