for some time I was using code like
extension UIRefreshControl {
func beginRefreshingManually() {
if let scrollView = superview as? UIScrollView {
scrollView.setContentOffset(CGPoint(x: 0, y: scrollView.contentOffset.y - frame.height), animated: false)
}
beginRefreshing()
}}
To start manually refreshing (show spinning circle) in viewDidLoad of UIViewControllers and it works like a charm.
After migrating to swift 3.0 and iOS 10 it suddenly stops. Moreover, I tried to move invocation into viewDidAppear, and for my frustration, on some controllers it works, and on some not (If there is any pattern, I was unable to find it)
any solutions ?
cheers Wojtek