SkillAgentSearch skills...

RefreshControl

A customized refresh control based on UIRefreshControl.

Install / Use

/learn @noppefoxwolf/RefreshControl
About this skill

Quality Score

0/100

Supported Platforms

Zed

README

RefreshControl

[!WARNING] The noppefoxwolf/RefreshControl is 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

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated4mo ago
Forks0

Languages

Swift

Security Score

87/100

Audited on Dec 2, 2025

No findings