Swiftpack.co - TimmysApp/ScrollViewStyle as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by TimmysApp.
TimmysApp/ScrollViewStyle 2.0.0
More control for ScrollViews.
⭐️ 11
🕓 15 weeks ago
iOS macOS
.package(url: "https://github.com/TimmysApp/ScrollViewStyle.git", from: "2.0.0")

ScrollViewStyle

Usage example:

  1. Add a property to track the state of the ScrollView
    @ScrollState var state
    
  2. Use the scrollViewStyle modifier
    .scrollViewStyle(.defaultStyle($state))
    

TestView

struct TestView: View {
    @ScrollState var state
    var body: some View {
        ScrollView {
            ...
        }.scrollViewStyle(.defaultStyle($state))
        .onChange(of: state.isDragging) { newValue in
            print(newValue)
        }
    }
}

GitHub

link
Stars: 11
Last commit: 15 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

2.0.0
15 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics