I am engaged on an app for various gadgets.. iPhone
and iPad
…
I am utilizing @Setting(.verticalSizeClass) personal var verticalSizeClass
to handle the orientation of the system…
I’m already conscious of the truth that it’s ineffective to make use of each horizontalSizeClass
and verticalSizeClass
on the iPad
as they at all times return common / common
no matter whether or not the iPad
is in panorama
or portrait
mode however on iPhone
this works and by setting verticalSizeClass == .compact
I at all times get the panorama
of all iPhone, however right here comes my downside…
I’ve to assign a padding worth after I’m in panorama
however to not iPhoneSE
and right here I am unable to to discover a resolution to know when panorama mode is on iPhoneSE
since if i take advantage of horizontalSizeClass == .compact
it additionally consists of different iPhone fashions and due to this fact I will not attain my purpose.
So with horizontalSizeClass
and verticalSizeClass
how can I do know if iPhone
is an SE
or not?