Peter Zignego I checked that out. I am still quite unknowledgeable on server side swift and how it works. I followed your example in this tutorial. Then I tested out that snippet from the README file. I realised that the way the server works has changed now and my swift code was exiting even when server?.start() was being called. I forgot to include the line RunLoop.main.run() at the end of the main.swift file. Thanks for your response :)

Senior iOS Engineer @ Onfido. Writing weekly blogs on iOS and programming. Follow me to stay tuned!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store