Avatar
Kishikawa Katsumi 10/27/2020 1:29 PM
https://github.com/marchv/UIScreenExtension/blob/master/Sources/UIScreenExtension/UIScreenExtension.swift ありぜさんのおっしゃる通りで、PPIが違うので簡単じゃないです。このようなコードでやってることを見るとわかります。
An extension to UIScreen that offers information about the pixel density (or point density) of iPhones and iPads. - marchv/UIScreenExtension
1:30 PM
逆にいうと、上記のコードのようにリリース済みの全部のデバイスについてPPIを調べたらできます。 (edited)