title: Setting gradient background color to LaunchScreen which will display a logo image at center
body: <p>I have a requirement to set a Gradient background to the launch screen with a <code>UIImageView</code> in the center which shows the app logo . I tried having a view controller but I realised code will never be invoked.</p>
  
  <p>I need some way to get behaviour as the code below does </p>
  
  <pre><code>self.view.backgroundColor = UIColor(patternImage: UIImage(named: "background.png")!)
  </code></pre>
  
  <p>I went through lot of answers about the same topic,  most of the questions on gradient colour don't seem to have any  additional requirements like showing another image other than the background .</p>
  
  <p>I can hardcode the color in IB but i don't get the gradient.</p>