Why do I need 1x, 2x and 3x iOS images?
Master System Design with Codemia
Enhance your system design skills with over 120 practice problems, detailed solutions, and hands-on exercises.
In the ever-evolving landscape of mobile app development, ensuring an optimal user experience across different devices and screen resolutions is paramount. This is particularly true for iOS app development due to the variety of devices Apple offers, each with its own screen size and pixel density. Here's where @1x, @2x, and @3x images come into play. These image assets are necessary for creating applications that look crisp and clear across all iOS devices, making your app feel both professional and aesthetically pleasing.
Understanding the Need for @1x, @2x, and @3x Images
What Are @1x, @2x, and @3x Images?
In iOS development, these terms refer to the different image resolutions used to accommodate various screen densities. At the core is the concept of points and pixels:
- Points: A unit of measurement in the iOS coordinate system.
- Pixels: The smallest physical unit in a raster image.
Apple devices are known for their Retina displays, which have higher pixel density. This means more pixels fit into the same amount of physical space, resulting in sharper images and text.
The scaling factor—@1x, @2x, and @3x—corresponds to different pixel densities:
- @1x: Standard definition, one pixel per point.
- @2x: Retina resolution with two pixels per point.
- @3x: Super Retina or higher, three pixels per point.
Why Different Scales?
Device Compatibility
Different iOS devices have varying screen sizes and densities:
- Older models or non-retina displays work best with @1x images.
- iPhones from the iPhone 4 onward generally need @2x images.
- More recent models with higher resolutions, like the iPhone X and later, benefit from @3x images.
Clarity and Sharpness
The goal is to prevent images from appearing blurry or pixelated when displayed on devices with high-resolution screens. Having the correct image resolution ensures that visual elements are crisp and clear, maintaining the app’s visual fidelity.
Technical Explanation
Scaling Images Correctly
Consider an icon image that is originally designed at 100x100 pixels:
- @1x (100x100 pixels): Used for old or non-retina devices.
- @2x (200x200 pixels): Scaled up for devices with retina displays.
- @3x (300x300 pixels): Further scaled for devices with higher pixel densities, such as the iPhone 12 Pro.
Implementation in Xcode
In Xcode, each image asset can be set into a 1x, 2x, and 3x slot. When an app is run on a device, iOS automatically selects the appropriate asset based on the device’s screen properties.
Best Practices for Image Asset Management
- Design at @3x, then scale down for smaller images to ensure the highest quality.
- Use vector graphics whenever possible. This allows easy scaling without loss of quality.
- Automate the creation of different scales using tools or scripts, which can save a lot of time in production environments.
Testing Your Images
To make sure your images look sharp across all devices, use Xcode's Simulator and on-device testing across multiple iOS devices.
Summary Table
| Scale | Density | Device Examples | Usage |
| @1x | 1 | Older iPhones (pre-iPhone 4) or non-retina iPads | Simple images and rarely seen in modern apps |
| @2x | 2 | iPhone 4 to iPhone 8, iPad Retina | Most common for a wide range of devices |
| @3x | 3 | iPhone 6 Plus, iPhone X, iPhone 11 Pro, iPhone 12 Pro | Required for the latest high-resolution screens |
Further Topics
Adapting to Future Devices
Apple regularly releases new devices with potentially higher pixel densities. To future-proof your applications, always consider the latest device specifications and anticipate an increase in pixel density for future releases.
Tools and Resources
- Image Optimization Tools: Use tools like Sketch or Photoshop for creating images at high resolution and scaling them effectively.
- Online Services: Services like Slicy or Zeplin automate the slicing and exporting of assets at multiple resolutions.
By providing @1x, @2x, and @3x image assets, developers ensure that their applications deliver a visually stunning experience on every iOS device. While creating multiple image assets might seem daunting initially, with the right practices and tools, it becomes an integral part of developing a superior app.

