title: SwiftUI disable auto rotation of views
body: <p>I have a SwiftUI app which should support landscape and portrait. However I want the behaviour of the Camera.app in iOS. When the device is rotated only the buttons are rotated when switching landscape/portrait all other content is as is.</p>
  
  <p>So I want to disable the auto rotation of some views and enable rotation for some views. Not sure how to implement it.</p>
  
  <pre><code>struct ContentView: View {
     var view: some View {
         HStack {
             Text("Hello") // Don't rotate
             Text("World") // Rotate
         }
     }
  }
  </code></pre>