Skip to content

ChuanqingYang/YYRefresh

Repository files navigation

YYRefresh

A Custom Pull_To_Refresh Widget Code by SwiftUI.

THANKS To kavsoft

Preview

Usage

1.SPM https://github.com/ChuanqingYang/YYRefresh.git

2.Sample Code Below

YYRefresh(config: .init()) {
    // Your View Which Need To Refresh
    VStack {
        Text("Hello World~")
    }
  } onRefrsh: {
    // Async Method to fetch data from server or somewhere
    try? await Task.sleep(for: .seconds(2))
  }

About

A Custom Pull_To_Refresh Widget Code by SwiftUI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages