I'm new in iOS app development and Swift.
What's my goal? On startup of my app I want to check the internet connection and the connection to my web server. These parts are implemented. And now I want to handle on it. If everything is fine I get a true and if anything is failed I get a false.
The first screen on startup should be a waiting view controller (viewController1) that displays something like "Please wait". I hope you know what I mean. This view controller is shown while checking the internet and server connection. After it I will go to the view controller that displays my content from server (viewController2), but only if the internet/server connection is true. if the internet/server connection is false I want to go to a third view controller (viewController3) to repeat the connection and to contact the support. But I don't know how I can do and where I can do this much simple.
I hope you can help me.
Thanks