title: No exact matches in call to initializer of Text, how can I solve this issue in SwiftUI?
body: <p>I am new to swift, this might be a stupid question but it confuses me a long time.
  Here is my code, I wrote this code by imitating the sandwich example from WWDC 2020's intro to swiftUI.</p>
  <pre><code>import SwiftUI
  
  struct movieDetail: View {
  
      var idnum:Int
  
      var body: some View {
  
          Text(idnum)
  
      }
  }
  
  struct movieDetail_Previews: PreviewProvider {
  
      static var previews: some View {
  
          NavigationView {
              movieDetail(idnum:24428)
          }
         
      }
  }
  </code></pre>
  <p>while it displays as compile error:</p>
  <blockquote>
  <p>No exact matches in call to initializer.</p>
  </blockquote>
  <p>WWDC 2020's example is below</p>
  <pre><code>import SwiftUI
  
  struct sandwichdetail: View {
  
      var sandwich:Sandwich
      @State private var zoomed = false
  
      var body: some View {
  
          VStack {
              Text(sandwich.name)
          }
          .navigationTitle(sandwich.name)
          .edgesIgnoringSafeArea(.bottom)
      }
  }
  
  struct sandwichdetail_Previews: PreviewProvider {
  
      static var previews: some View {
          NavigationView{
              sandwichdetail(sandwich: testData[1])
          }
          
      }
  }
  </code></pre>
  <p>I don't quite understand the difference between these 2 pieces of code and why mine fail and the sandwich example succeed displaying the sandwich's name.</p>