NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

SOLVED: Project 14 -Xcode Simulator - App not showing FULL screen on iPad air and newer

Forums > Swift

Hellow all!

The app shows full screen just fine on iPad 8th generation but not on iPad air and newer:

Screenshot

What am I missing?

Thank you!

   

Hi @mrkos-mrtinelli

Think you posted this twice!

Have you checked your code against Getting up and running: SKCropNode

Quote from that tutorial

To do that, open GameViewController.swift and find this line of code:

scene.scaleMode = .aspectFill

Now modify it to this:

scene.scaleMode = .fill

If you run the game again you’ll see it looks identical on iPad, iPad Air, and iPad Pro 12.9-inch, but it is ever so slightly stretched on the 11-inch iPad Pro – imperceptible, really, but it avoids our score lying off the screen.

   

Hey @NigelGee

Thanks for pointing me to that.

I do have the scene.scaleMode set to .fill (Source)

I'm still researching this but I am also just going to re-create the project and see what happens.

   

"Select your project and under General->App icons and launch images->Launch Screen File = Main" – dr0n (https://developer.apple.com/forums/thread/661269)

The above solved my issue with project 14 and project 17

   

Hacking with Swift is sponsored by Fernando Olivares

SPONSORED Would you describe yourself as knowledgeable, but struggling when you have to come up with your own code? Fernando Olivares has a new book containing iOS rules you can immediately apply to your coding habits to see dramatic improvements, while also teaching applied programming fundamentals seen in refactored code from published apps.

Try the book!

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.