---
title: "init(frame:)"
framework: quicklookui
role: symbol
role_heading: Initializer
path: "quicklookui/qlpreviewview/init(frame:)"
---

# init(frame:)

Creates a preview view with the provided frame.

## Declaration

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

## Parameters

- `frame`: The frame rectangle for the initialized QLPreviewView object.

## Return Value

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

## Discussion

Discussion Calling this method is equivalent to calling init(frame:style:) with the style parameter being QLPreviewViewStyle.normal.

## See Also

### Creating a Preview View

- [init(frame:style:)](quicklookui/qlpreviewview/init(frame:style:).md)
- [QLPreviewViewStyle](quicklookui/qlpreviewviewstyle.md)
