I am implementing a very basic Refresh control...
var refreshControl = UIRefreshControl() refreshControl.addTarget(self, action: Selector((\"refresh:
Why do you add refreshControl as subview? You must do that:
refreshControl
refreshControl.addTarget(self, action: Selector(("refresh:")), for: UIControlEvents.valueChanged) if #available(iOS 10.0, *) { tableView.refreshControl = refreshControl } else { tableView.backgroundView = refreshControl }