title: SwiftUI can't use navigationBarTitle modifier (deprecated) in iOS 13 versions, but can in iOS 14
body: <p>I lowered my minimum deployment target from iOS 14.0 to iOS 13.0. I then got this error:</p>
  <p><img src="https://i.stack.imgur.com/Izpmy.png" alt="'navigationBarTitle(_:displayMode:)' is only available in iOS 14.0 or newer" /></p>
  <blockquote>
  <p>'navigationBarTitle(_:displayMode:)' is only available in iOS 14.0 or newer</p>
  </blockquote>
  <p>But, the <a href="https://developer.apple.com/documentation/swiftui/view/navigationbartitle(_:displaymode:)-8buvp" rel="noreferrer">documentation</a> says it's available from iOS 13.0-14.2, and previous SO <a href="https://stackoverflow.com/a/60618723/14351818">answers</a> posted (back when iOS 13 was the newest) also used it.</p>
  <img src="https://i.stack.imgur.com/FDVVD.png" width="500">
  <p>Is it because it's &quot;Deprecated&quot; that I can't use it? But then why can I use it in iOS 14.0?</p>
  <hr />
  <h3>Edit:</h3>
  <p>After trying to reproduce, it seems to work only if I don't have <code>title</code> stored in a property.</p>
  <p><a href="https://i.stack.imgur.com/JY0qI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JY0qI.png" alt="comparison of storing &quot;title&quot; inside a property or not" /></a></p>
  <pre><code>import SwiftUI
  
  struct ContentView: View {
      var body: some View {
          Text(&quot;Hi!&quot;)
              .navigationBarTitle(&quot;Title&quot;, displayMode: .inline)
      }
  }
  struct DetailView: View {
      var title: String = &quot;&quot;
      var body: some View {
          Text(&quot;Hi!&quot;)
              .navigationBarTitle(title, displayMode: .inline)
      }
  }
  </code></pre>