---
title: WebFrameView
framework: webkit
role: symbol
role_heading: Class
path: webkit/webframeview
---

# WebFrameView

WebFrameView objects and their subviews display the web content contained in a frame. You never create instances of WebFrameView directly—WebView objects create and manage a hierarchy of WebFrameView objects, one for each frame. WebFrameView objects use a scroll view whose document view conforms to the WebDocumentView protocol.

## Declaration

```swift
class WebFrameView
```

## Topics

### Getting the Web Frame

- [webFrame](webkit/webframeview/webframe.md)

### Getting Subviews

- [documentView](webkit/webframeview/documentview.md)

### Setting Scrolling Behavior

- [allowsScrolling](webkit/webframeview/allowsscrolling.md)

### Printing Views

- [canPrintHeadersAndFooters](webkit/webframeview/canprintheadersandfooters.md)
- [printOperation(with:)](webkit/webframeview/printoperation(with:).md)
- [documentViewShouldHandlePrint](webkit/webframeview/documentviewshouldhandleprint.md)
- [printDocumentView()](webkit/webframeview/printdocumentview().md)

## Relationships

### Inherits From

- [NSView](appkit/nsview.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSAccessibilityElementProtocol](appkit/nsaccessibilityelementprotocol.md)
- [NSAccessibilityProtocol](appkit/nsaccessibilityprotocol.md)
- [NSAnimatablePropertyContainer](appkit/nsanimatablepropertycontainer.md)
- [NSAppearanceCustomization](appkit/nsappearancecustomization.md)
- [NSCoding](foundation/nscoding.md)
- [NSDraggingDestination](appkit/nsdraggingdestination.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSStandardKeyBindingResponding](appkit/nsstandardkeybindingresponding.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [NSUserActivityRestoring](appkit/nsuseractivityrestoring.md)
- [NSUserInterfaceItemIdentification](appkit/nsuserinterfaceitemidentification.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Working with Frames (Legacy)

- [WebFrame](webkit/webframe.md)
- [WebDataSource](webkit/webdatasource.md)
- [WebFrameLoadDelegate](webkit/webframeloaddelegate.md)
