---
title: isForMainFrame
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wknavigationresponse/isformainframe
---

# isForMainFrame

A Boolean value that indicates whether the response targets the web view’s main frame.

## Declaration

```swift
var isForMainFrame: Bool { get }
```

## Discussion

Discussion The value of this property is true if the response targets the main frame. The value is false if the response targets a different frame, such as the frame in a new window.

## See Also

### Getting Additional Response Information

- [canShowMIMEType](webkit/wknavigationresponse/canshowmimetype.md)
