SkillAgentSearch skills...

SwiftUIRefresh

Pull To Refresh for SwiftUI lists

Install / Use

/learn @siteline/SwiftUIRefresh
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SwiftUI-Refresh

Maintainer: @ldiqual

Native Pull To Refresh in SwiftUI.

What is this?

SwiftUI-Refresh adds a native UIRefreshControl to a SwiftUI List view. It does this by introspecting the view hierarchy to find the relevant UITableView, then adding a refresh control to it.

Demo

<image src="docs/demo.gif" width="40%">

Install

SwiftPM

https://github.com/timbersoftware/SwiftUIRefresh.git

Cocoapods

pod "SwiftUIRefresh"

Usage

import SwiftUI
import SwiftUIRefresh

struct ContentView: View {
    
    @State private var isShowing = false
    var body: some View {
        List {
            Text("Item 1")
            Text("Item 2")
        }
        .pullToRefresh(isShowing: $isShowing) {
            DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
                self.isShowing = false
            }
        }
    }
}
View on GitHub
GitHub Stars634
CategoryDevelopment
Updated4d ago
Forks55

Languages

Swift

Security Score

95/100

Audited on Mar 19, 2026

No findings