title: How to check validity of URL in Swift?
body: <p>Trying to make an app launch the default browser to a URL, but only if the URL entered is valid, otherwise it displays a message saying the URL is invalid.</p>
  
  <p>How would I go about checking the validity using Swift?</p>