title: Check for internet connection availability in Swift
body: <p>Is there a way to check if the internet connection is available using Swift?</p>
  
  <p>I know there are many third party libraries to do this but they are all written in Objective-C. I'm looking for a Swift alternative.</p>