Multiple View Controllers

I’m trying to set up multiple views. Pop ups really.

But not using Storyboards I want to learn by just using pure code. I’m finding it clearer and easier to learn to build a UI with straight up coding and I’ve got quite far but multiple windows are tricky.

I have a call to a .swift file containing the Class and the didMoveToView like this. Called for a SpriteNode being pressed.

this is the file being called

so my sizing seems to do nothing although my background image is fine I want to have a hovering view. Whats the best way to do this?

did you try to change your scalemode? aspectfill might be what “stretches” your popup