RefreshUI icon indicating copy to clipboard operation
RefreshUI copied to clipboard

Programmatic Refresh

Open nikitaame opened this issue 5 years ago • 1 comments

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)        
    }
}

nikitaame avatar Jan 17 '20 01:01 nikitaame

Any suggestion on how to programmatically with code start the refresh animation @noppefoxwolf ??

nikitaame avatar Jan 31 '20 07:01 nikitaame