<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/LoupeMarkup",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit11LoupeMarkupV"
  },
  "title" : "LoupeMarkup"
}
-->

# LoupeMarkup

A loupe magnifier that magnifies the content below the loupe.

```
struct LoupeMarkup
```

## Overview

The loupe magnifies the content beneath its frame within the parent markup. The loupe centers the magnified region on the center of its frame.

## Topics

### Creating a loupe

[`init(frame: CGRect, magnification: CGFloat, strokeColor: CGColor?, lineWidth: CGFloat, allowedInteractions: MarkupInteractions, id: MarkupID<LoupeMarkup>)`](/documentation/PaperKit/LoupeMarkup/init(frame:magnification:strokeColor:lineWidth:allowedInteractions:id:))

Initializes and returns a new loupe markup from the specified parameters.

### Configuring appearance

[`var magnification: CGFloat`](/documentation/PaperKit/LoupeMarkup/magnification)

The magnification level applied to the content displayed within the loupe.

[`var strokeColor: CGColor?`](/documentation/PaperKit/LoupeMarkup/strokeColor)

The color of the loupe’s border.

[`var lineWidth: CGFloat`](/documentation/PaperKit/LoupeMarkup/lineWidth)

The width of the loupe’s border in points.

### Identifying markup

[`var id: MarkupID<LoupeMarkup>`](/documentation/PaperKit/LoupeMarkup/id)

Stable unique identity of the markup.

## Relationships

### Conforms To

[`Identifiable`](/documentation/Swift/Identifiable)

[`Markup`](/documentation/PaperKit/Markup)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)