Thank you all for your help. I'm relatively new to Swift, and so didn't understand that the order of modifiers mattered.
As suggested, I rotated before positioning and it now works as intended. It looks like I need some study on the topic of modifers.