ECScrollView

1.2.0

A SwiftUI ScrollView supporting offset & deceleration callbacks
EvanCooper9/ECScrollView

What's New

1.2.0

2021-02-07T02:33:33Z

ECScrollView

A SwiftUI ScrollView supporting offset & deceleration callbacks

Installation

SPM

.package(url: "https://github.com/EvanCooper9/ECScrollView", from: "1.0.0")

Usage

Initialize like a regular ScrollView, and optionally handle offset changes & deceleration

import ECScrollView

ECScrollView() {
    // content ...
}
.onContentOffsetChanged { offset, size, proxy in
    // handle content offset
}
.didEndDecelerating { offset, proxy in
    // handle deceleration ending
}

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

Last updated: Mon Oct 21 2024 13:44:36 GMT-0900 (Hawaii-Aleutian Daylight Time)