RefreshUI
RefreshUI copied to clipboard
Programmatic Refresh
Have you considered adding some functionality to allow programmatic call to refresh??
extension UIRefreshControl {
func programaticallyBeginRefreshing(in tableView: UITableView) {
beginRefreshing()
let offsetPoint = CGPoint.init(x: 0, y: -frame.size.height)
tableView.setContentOffset(offsetPoint, animated: true)
}
}
Any suggestion on how to programmatically with code start the refresh animation @noppefoxwolf ??