RefreshControl
A customized refresh control based on UIRefreshControl.
Install / Use
/learn @noppefoxwolf/RefreshControlREADME
RefreshControl

[!WARNING] The
noppefoxwolf/RefreshControlis using some black magic. I recommend reviewing the implementation code. You can use this library with own risk.
Feature
UIRefreshControl compatible
- [x] Arrow style content view (ContentHostingRefreshControl)
- [x] Offscreen begin refresh (WaitHostingRefreshControl)
- [x] UIRefreshControl extensions (UIRefreshControl+)
Subclass extends
- [x] Customize content view (ContentHostingRefreshControl)
- [x] Overtime message (OvertimeRefreshControl)
- [x] Timeout handler (TimeoutRefreshControl)
- [x] Add delegate (DelegatableRefreshControl)
- [x] Private method access (InternalRefreshControl)
Additional extends
- [x] disabled control (RefreshControlController)
Usage
The noppefoxwolf/RefreshControl is subclass of UIRefreshControl.
You can use this library same of UIRefreshControl.
import RefreshControl
...
refreshControl = RefreshControl()
refreshControl!.addAction(UIAction { _ in
...
}, for: .primaryActionTriggered)
If you want to use disabled refreshControl.
You can use RefreshControlController.
tableView.refreshControlController = RefreshControlController(
refreshControl: refreshControl
)
tableView.refreshControlController.isEnabled = false // Show disabled view
Apps Using
<p float="left"> <a href="https://apps.apple.com/app/id1668645019"><img src="https://github.com/noppefoxwolf/MediaViewer/blob/main/.github/dawn.png" height="65"></a> </p>If you use a RefreshControl, add your app via Pull Request.
LICENSE
RefreshControl is released under an MIT license. See the LICENSE file for more information
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
