title: Offsetting text in a UILabel vertically
body: <p><a href="https://i.stack.imgur.com/evql3.png" rel="nofollow noreferrer">Layout without header background</a></p>
  
  <p><a href="https://i.stack.imgur.com/rOfv2.png" rel="nofollow noreferrer">Layout with header background so you can see its centered</a></p>
  
  <p>Im trying to make the header appear centered in the design, but because of the top space in the cells, it looks as it has been placed to high. How can I make it appeared on all screen sizes? Im worried if i use a offset in points that it it will be too small of an offset on big screens and to big of an offset on small screens?</p>
  
  <p>Currently i do it it like this:</p>
  
  <pre><code>func adjustLayoutToFrame(){
          let screenSize = UIScreen.main.bounds
          let screenHeight = screenSize.height
          let cellHeight = screenHeight / 9
          let headerHeight = cellHeight*2
  
          weekHeaderLabel.frame.size.height = headerHeight
          print("header height set to:", headerHeight)
          cellHeightForDevice = cellHeight
  
          //weekHeaderLabel.backgroundColor = .blue
  
      }
  </code></pre>