pantelisss / PullableScrollView

Pull to refresh functionality for SwiftUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PullableScrollView

Platform SwiftVersion

PullableScrollView is a SwiftUI component to integarate the missing pull to refresh functionality from scroll views.

Usage

PullableScrollView(tintColor: .red,
                   refreshCallback: { callback in
                       // Fetch some data and invoke `callBack` to hide the indicator.
                   }, content: {
                       Text("Scroll view content")
                   })

Install

SwiftPM

https://github.com/pantelisss/PullableScrollView.git

About

Pull to refresh functionality for SwiftUI

License:MIT License


Languages

Language:Swift 100.0%