一种基于 UIRefreshControl 的自定义刷新控件
RefreshControl
注意
noppefoxwolf/RefreshControl
正在使用一些黑魔法。
我建议查看实现代码。
你可以自行承担风险使用此库。
用法
noppefoxwolf/RefreshControl
是 UIRefreshControl 的子类。
你可以像使用 UIRefreshControl 一样使用此库。
import RefreshControl
...
refreshControl = RefreshControl()
refreshControl!.addAction(UIAction { _ in
...
}, for: .primaryActionTriggered)
许可证
RefreshControl 在 MIT 许可证下发布。有关更多信息,请参阅 LICENSE 文件