title: Export all texts for localization
body: <p>In SwiftUI, I have many custom views that contains <code>Text()</code> wherer Text's content is passed from super-views. When exporting string for localization (<strong>Product -&gt; Export localization</strong>), xCode only exports texts I have used directly in <code>Text()</code> as in <strong>code snippet 1</strong>. xCode does not export those texts that I pass from superviews as in <code>code snippet 2</code>.</p>
  <h3>1.</h3>
  <pre><code>// xcode export this. 
  Text(&quot;Text for licalization&quot;)
  </code></pre>
  <h3>2.</h3>
  <pre><code>struct ListItemView: View {
      var leadingText: String
  
      var body: some View {
           Text(trailingText)
      }
  }
  </code></pre>
  <p>SuperView:</p>
  <pre><code>struct AddItemView: View {
      var body: some View {
          ListItemView(leadingText: &quot;Add&quot;)
      }
  }
  </code></pre>
  <p><strong>How can I export all texts that I have used in my app?</strong></p>