title: How can I delay splash launch screen programmatically in Swift Xcode iOS
body: <p>I have put an <code>image</code> in <code>imageView</code> in <code>LaunchStoreyboard</code>. How can I delay the time of image programmatically?</p>
  
  <p>Here is the <strong><a href="https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/launch-screen/" rel="noreferrer">Launch Screen Guideline from Apple</a></strong>.</p>
  
  <p><strong>Here is code for Launch Screen View controller</strong>:</p>
  
  <pre><code>import UIKit
  class LaunshViewController: UIViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
          self.delay(0.4)
      }
  
      func delay(_ delay:Double, closure:@escaping ()-&gt;()) {
          let when = DispatchTime.now() + delay
          DispatchQueue.main.asyncAfter(deadline: when, execute: closure)
      }
  }
  </code></pre>