How to detect retina displaybrowsing

Working on the project I found that I need to detect what type of the screen have device that running my code. And made this simple detector. Probaby it is not something big, but for me this is first bites of code that uses objc bindings. Hope you will find it useful

You could also use scene.get_screen_scale() for this (which is basically just a wrapper around [[UIScreen mainScreen] scale) – nothing wrong with your code, just wanted to point out that it's not necessary to delve into ObjC for this.