Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

Programmatic Refresh #3

Open
nikitaame opened this issue Jan 17, 2020 · 1 comment
Open

Programmatic Refresh #3

nikitaame opened this issue Jan 17, 2020 · 1 comment

Comments

@nikitaame
Copy link

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
Copy link
Author

nikitaame commented Jan 31, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant