title: How to detect when iOS app appears in foreground, with Swift?
body: <p>I need to detect when my app becomes visible? (for example by double tapping the Home button and then tapping on an app that is already in the background)
  If possible, I would like to detect that event inside my UIViewController.
  I am working with Swift 2.2.</p>