Skip to content

A simple way to add Pull-to-Refresh support for all versions of SwiftUI

License

Notifications You must be signed in to change notification settings

smakus/SwiftUIPullToRefresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

SwiftUIPullToRefresh

A simple way to add Pull-to-Refresh support for all versions of SwiftUI.

Usage:

Add the PullToRefreshView to your project, then use it put it at the top of any scrollview and utilize it via a coordinate space:

EXAMPLE:

      ScrollView {
          PullToRefreshHack(coordinateSpaceName: "p2r", onRefresh: {
            //your refresh function/code goes here
          })
      }.coordinateSpace(name: "p2r")

About

A simple way to add Pull-to-Refresh support for all versions of SwiftUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages