SwiftUI Repaint View Components on Device Rotation : <p>How to detect device rotation in SwiftUI and re-draw view components?</p>

<p>I have a @State variable initialized to the value of UIScreen.main.bounds.width when the first appears. But this value doesn't change when the device orientation changes. I need to redraw all components when the user changes the device orientation.</p>
