[!WARNING] The
noppefoxwolf/RefreshControl
is using some black magic. I recommend reviewing the implementation code. You can use this library with own risk.
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