Supporting Multiple Device Orientations For Mr. Pig

I am attempting to support landscape orientations for Mr. Pig, like Breaker. But, when the same method is implemented in Mr. Pig as was used in Breaker, on the landscape orientation, the right half of the screen is white. I believe this happens because Mr. Pig has scnView = SCNView(frame: self.view.frame) limiting the size of the view, whereas Breaker has scnView = self.view as! SCNView. I was unable to define scnView in Mr. Pig as it was defined in Breaker without getting an error saying Could not cast value of type ‘UIView’ to ‘SCNView’. How can I make it so Mr. Pig can support landscape and portrait orientations like Breaker?

UPDATE: Found out I could change the frame size and position of the view when the orientation changes, so it can fit in landscape mode.