UIScreen.mainScreen.scale on NSScreen
[[NSScreen mainScreen] backingScaleFactor]
will give you the scaling factor for main display
I'm not sure it's the same as on iOS but NSScreen
has backingScaleFactor
, which might do the trick.
[[NSScreen mainScreen] backingScaleFactor]
will give you the scaling factor for main display
I'm not sure it's the same as on iOS but NSScreen
has backingScaleFactor
, which might do the trick.