<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuickLookUI",
  "identifier" : "/documentation/QuickLookUI/QLPreviewView/init(frame:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Quick Look UI"
    ],
    "preciseIdentifier" : "c:objc(cs)QLPreviewView(im)initWithFrame:"
  },
  "title" : "init(frame:)"
}
-->

# init(frame:)

Creates a preview view with the provided frame.

```
init!(frame: NSRect)
```

## Parameters

`frame`

The frame rectangle for the initialized `QLPreviewView` object.

## Return Value

Returns a `QLPreviewView` object with the designated frame and the default style.

## Discussion

Calling this method is equivalent to calling [`init(frame:style:)`](/documentation/QuickLookUI/QLPreviewView/init(frame:style:)) with the `style` parameter being [`QLPreviewViewStyle.normal`](/documentation/QuickLookUI/QLPreviewViewStyle/normal).

---

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)