Here's how to rotate the iOS Simulator:
Launch the Simulator: Open the iOS Simulator from Xcode by navigating to Xcode > Open Developer Tool > Simulator or simply search for "Simulator" in Spotlight (Cmd + Space).
Rotate Device: In the Simulator window, you can rotate the device using the menu options or keyboard shortcuts:
Menu option: Click Hardware in the Simulator menu bar, then select "Rotate Left" or "Rotate Right".
Keyboard shortcuts: Use Cmd + Left Arrow to rotate left or Cmd + Right Arrow to rotate right.