Learn Courses My Dashboard

SpriteKit: Selectively prevent scene background from auto rotating

I’m quite new to this and I’m having a problem that is difficult to solve. I have tried googling it many times using multiple words and phrases without success.
I intend having a number of graphics scenes each of which has a background made up of SKSpriteNodes. This background and some foreground SKSpriteNodes should NEVER rotate on the device regardless of it’s orientation. There will be some text etc on each screen which I can rotate manually and move around if necessary. I don’t have a problem with that. There are also other screens (SwiftUI with text and images) that should auto rotate with the device as normal.
Can anyone help with selectively inhibiting the autorotation?