title: SwiftUI text randomly goes upside down when editing
body: <p>Whenever I edit text using a SwiftUI TextField, or the old NSTextField, my text randomly becomes reversed and upside down (see image below). It also rarely happens to normal SwiftUI Text labels when resizing the window. By random, I mean as you type, the text toggles back and fourth between normal and upside down.</p>
  <p><a href="https://i.stack.imgur.com/78FHD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/78FHD.png" alt="upside down text" /></a></p>
  <pre class="lang-swift prettyprint-override"><code>@State var text = &quot;Hello&quot;
  
  var body: some View {
    VStack {
      TextField(&quot;Name&quot;, text: $text)
    }
    .frame(maxWidth: .infinity, maxHeight: .infinity)
  }
  </code></pre>
  <p>Does anybody have an idea of what might cause this? I can't seem to replicate it in another project, but even when I comment everything out besides for the text field it happens.</p>