TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

SOLVED: orientation to just "portrait" doesn't work with iPad

Forums > SwiftUI

Hi, this is my settings for the app:

No problem for iPhone, the frame stay to portrait forever, but it is not the case with iPad (it flips to landscape and i don't want). Do you know why ?

3      

I have the same problem. Did you find a solution?

3      

Goto the pList (or xCode 13 the info tab) and find Supported interface orientations (iPad) and click on the minus button for the ones you do not want.

PS Remember that most people use thier iPad in landscape so restricting it to portrait might not be a good unless your app really need it.

3      

Hi Nigel, I ended up finding and forgetting to update the post, anyway thank you. For the app I am doing, portrait mode is the right choice, I could only add landscape mode when I made a real interface dedicated to this mod.

3      

Hacking with Swift is sponsored by String Catalog.

SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!

Localize My App

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

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

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.