<!--
{
  "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/init(frame:magnification:strokeColor:lineWidth:allowedInteractions:id:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit11LoupeMarkupV5frame13magnification11strokeColor9lineWidth19allowedInteractions2idACSo6CGRectV_14CoreFoundation7CGFloatVSo10CGColorRefaSgAnA0dL0VAA0D2IDVyACGtcfc"
  },
  "title" : "init(frame:magnification:strokeColor:lineWidth:allowedInteractions:id:)"
}
-->

# init(frame:magnification:strokeColor:lineWidth:allowedInteractions:id:)

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

```
init(frame: CGRect, magnification: CGFloat = 1.5, strokeColor: CGColor? = nil, lineWidth: CGFloat = 2.0, allowedInteractions: MarkupInteractions = .all, id: MarkupID<LoupeMarkup> = MarkupID())
```

## Parameters

`frame`

The frame of the shape.

`magnification`

The magnification level used to zoom the content below the loupe. Defaults to `1.5`.

`strokeColor`

The color of the loupe’s border. Defaults to `nil` for no border.

`lineWidth`

The width of the loupe’s border in points. Defaults to `2.0`.

`allowedInteractions`

The flags controlling the interactions people can perform. Defaults to `.all`.

`id`

The identity of the loupe. Defaults to a unique id.

---

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)