lostAtSeaJoshua
lostAtSeaJoshua

Reputation: 1755

Is there a size variant in Xcode's interface builder to target smaller iPhones?

Is there a size variant to target smaller iPhones in portrait (iPhone 7 and below)?

Width Compact covers all iPhones.

Xcode Interface builder size variant bar

Upvotes: 0

Views: 183

Answers (1)

matt
matt

Reputation: 534893

No, the concept of size classes is not as fine-grained as that. As you rightly say, compact width embraces all iPhones (except the Plus phones in landscape). If you want to do something based on what size iPhone this actually is, you'll have to look directly at the screen dimensions or other determinant, in code; Apple discourages this kind of behavior, but some apps do it.

Upvotes: 1

Related Questions