Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.7k
feat: allow custom image scales on iOS#10212
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
nx-cloudbot commentedFeb 14, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
☁️ Nx Cloud ReportCI is running/has finished running commands for commitaf106de. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 2 targetsSent with 💌 fromNxCloud. |
This might be too much of a burden to support in the future (especially if we decide to support orientation as well). This is a viable alternative that's around 0.02ms slower and doesn't require any code to support:
|
PR Checklist
What is the current behavior?
Images are always loaded with scale 1.0 (if they are files/resources then they're loaded with the appropriate scale when
@2x.png
is provided, for example)What is the new behavior?
Allows you to set a hardcoded scale for the image.