Dark mode does not switch to a Dark mode background in Xcode
I think you might need to uncheck the Resizing checkbox and set the Scales property to Single Scale. It worked for me.
I think it is an Xcode bug. You can confirm it by changing your setting in the iOS Simulator.
Go to Settings -> Developer -> Dark Appearance