title: Getting push notification details on app launch using swiftUI language
body: <p>I'm using SwiftUI language </p>
  
  <p>I click on a notification and redirect to the home screen, but I need a detailed screen in a redirection.  </p>
  
  <p>This is my set root code.. how to set here detail screen using SwiftUI language</p>
  
  <pre><code>if(application.applicationState == .inactive)
      {
          // let storyboard = UIStoryboard(name: "Main", bundle: nil)
  
          let contentView = ContentView1()
  
          if let window = UIApplication.shared.keyWindow {
  
              self.window = window
  
          }
  
          self.window?.rootViewController =  UIHostingController(rootView: contentView)
          self.window?.makeKeyAndVisible()
  
          print("user tapped the notification bar when the app is in background")
      }
  </code></pre>