title: iOS - relative top space to superView
body: <p>I need to set up relative top space of view to its superview. e.g. Suppose top space to view to its superview is 5px and it should proportionately increase for iPhone 7,8,X,Xr etc. I have attached image for better idea.</p>
  <p><a href="https://i.stack.imgur.com/wKPau.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wKPau.png" alt="enter image description here" /></a></p>
  <p>How can I achieve it?</p>