title: Swift - Detect orientation and accordingly do something
body: <p>As stated in my subject I need to get my orientation and according to the present orientation i need to do some stuff.</p>
  
  <p>Also when the orientation changes i need to do some layout changes.</p>