# Magnifier

> Zoom into specific areas of the iOS Simulator with a pixel-level magnifier. Inspect UI details, verify alignment, and check colors at the pixel level.

RocketSim magnifies pixels on the iOS Simulator from the Comparing tab **Magnifier** view so you can inspect alignment, spacing, and colors at zoom level. Hold **⇧ Shift** and move the mouse to reposition the loupe, then copy a sampled color as SwiftUI, UIKit, or AppKit code.

The magnifier lets you zoom in pixel-level and thoroughly validate your UI implementation.

## Enabling the magnifier

1. Open the Simulator
2. Select the Magnifier tab
3. Hold `⇧ shift` and move the mouse to change the magnifier position
4. Use a two-finger drag to adjust the zoom level while moving the mouse up and down

![Magnifier zoomed into a UI element showing pixel-level detail](./magnifier/cleanshot_2023-11-01_at_14.09.172x.png)

## Copying the color code

Once hovering over a specific color, you can copy the color as code using the **Copy as code** button:

![Magnifier settings for zoom level and display options](./magnifier/cleanshot_2023-11-01_at_14.10.382x.png)

The above color resulted in the following code:

```swift
Color(red: 0.32, green: 0.32, blue: 0.32)
UIColor(red: 0.32, green: 0.32, blue: 0.32, alpha: 1.0)
NSColor(red: 0.32, green: 0.32, blue: 0.32, alpha: 1.0)
```

## Adjusting the Magnifier settings

### Toggle using Shift

Enable or disable the Shift-based toggling of the magnifier.

### Bound to device

If enabled, your mouse will be bound to the screen of the Simulator. You can disable this option to use the magnifier anywhere on your desktop, which can be great for picking a color from apps like Figma or Sketch and copying it directly as code.
