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 :)
You know, UITableView is also a UIView in the top of the hierarchy. I suggest you use UIScrollView and place you view inside that scrollview and listen for scroll events. And if the user pulls it down, you call your method and smoothly place the scrollview in its start offset with the setContentOffset method.