I've been researching how to add Pull to Refresh in Swift to my View. However, Everything I come across is about reloading the tableview. I dont have a tableview. The view I have checks for internet connection. If the internet connection does not exist I want them to be able to pull down to refresh and check the connection again. If it does exist - perform function. etc..
Is it even possible? Apologies - I am a noob :)
Hmm... You would have to implement it yourself. I suggest that instead of making your user do something, set up a callback for when internet is connected and have the code do it automatically. What internet connection library are you using? I use AFNetworking, but I'm sure Alamofire would work well too.
I strongly suggest you add AFNetworking to your project, it's easy to do with cocoapods. Then you just use the
AFNetworkReachabilityManagerclass. Set it's ReachabilityStatusChangeBlock and then callstartMonitoring. Your callback will be called whenever the network status changes.(https://github.com/AFNetworking/AFNetworking)