How do you account for iPhoneSettings.generation not working in the Editor?

iPhoneSettings.generation always Unknown ((int)iPhoneSettings.generation is zero) in the Editor, but you need to adjust values based on resolution, like:

[SerializeField] float worldUnitsPerPixelSwiped;

void Awake () {
    if ((int)iPhoneSettings.generation < 7) worldUnitsPerPixelSwiped *= 2;
}

What do you do?

call me super cheap and hacky, but I'm just using a

if(Screen.width == (whatEverTheEarlyGenIPhoneRezIsIForget))
    doShit();

You have to export into your phone in order to test it out the iPhone generation. Unity remote cant detect whether your are using iPhone3GS or iPhone4.