Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
Protocol

ScrollTargetBehavior

The Compose SwiftUI form of SwiftUI's ScrollTargetBehavior.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
interface ScrollTargetBehavior

Overview

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

protocol ScrollTargetBehavior

Topics

Type properties

val viewAligned: ViewAlignedScrollTargetBehavior
SwiftUI ScrollTargetBehavior.viewAligned
val paging: PagingScrollTargetBehavior
SwiftUI ScrollTargetBehavior.paging

Methods

fun viewAligned(limitBehavior: ViewAlignedScrollTargetBehavior.LimitBehavior, anchor: UnitPoint?): ViewAlignedScrollTargetBehavior
SwiftUI ScrollTargetBehavior.viewAligned(limitBehavior:anchor:) · iOS 26.0+, macOS 26.0+, tvOS 26.0+, watchOS 26.0+
fun viewAligned(limitBehavior: ViewAlignedScrollTargetBehavior.LimitBehavior): ViewAlignedScrollTargetBehavior
SwiftUI ScrollTargetBehavior.viewAligned(limitBehavior:)
fun viewAligned(anchor: UnitPoint?): ViewAlignedScrollTargetBehavior
SwiftUI ScrollTargetBehavior.viewAligned(anchor:) · iOS 26.0+, macOS 26.0+, tvOS 26.0+, watchOS 26.0+

Types

interface ScrollTargetBehavior
SwiftUI ScrollTargetBehavior