Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to detect screen resolution #21

Closed
selwin opened this issue Apr 25, 2016 · 1 comment
Closed

Add a way to detect screen resolution #21

selwin opened this issue Apr 25, 2016 · 1 comment

Comments

@selwin
Copy link

selwin commented Apr 25, 2016

iPhone 6 Plus uses 3x assets, everything else below it uses 2x image assets.

@ZevEisenberg
Copy link

You can do this with UIScreen.main.scale. It will give you back 1.0, 2.0, or 3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants