How to detect orientation change (Swift 3.0)