Warning
The noppefoxwolf/RefreshControl
is using some black magic.
I recommend reviewing the implementation code.
You can use this library with own risk.
- Arrow style content view (ContentHostingRefreshControl)
- Offscreen begin refresh (WaitHostingRefreshControl)
- UIRefreshControl extensions (UIRefreshControl+)
- Customize content view (ContentHostingRefreshControl)
- Overtime message (OvertimeRefreshControl)
- Timeout handler (TimeoutRefreshControl)
- Add delegate (DelegatableRefreshControl)
- Private method access (InternalRefreshControl)
- disabled control (RefreshControlController)
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
If you use a RefreshControl, add your app via Pull Request.
RefreshControl is released under an MIT license. See the LICENSE file for more information