Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

TableView Pull To Refresh not working #101

@Harout360

Description

@Harout360

Describe the bug
I'm unable to enable pullToRefresh for tableviews. Even the Instafeed demo that uses pull to refresh doesn't actually pull to refresh. See the following code from the demo:

ASTableView(sections: sections)
            .tableViewSeparatorsEnabled(false)
            .tableViewOnPullToRefresh { endRefreshing in
                print("PULL TO REFRESH")
                Timer.scheduledTimer(withTimeInterval: 2, repeats: false) { _ in
                    endRefreshing()
                }
        }
        ....

Looking into ASTableView, it seems like func configureRefreshControl(for tv: UITableView) isn't being called anywhere?

To Reproduce
Launch demo, go to instafeed, try pull to refresh

Expected behaviour
tableViewOnPullToRefresh enables pull to refresh

Screenshots
If applicable, add screenshots to help explain your problem.

Xcode Version:

  • 11.3

Simulator, Device, Both?

  • Simulator

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions