<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebView-swift.class/groupName",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebView(py)groupName"
  },
  "title" : "groupName"
}
-->

# groupName

The receiver’s group name.

```
var groupName: String! { get set }
```

## Discussion

You might use this to set the group name of a `WebView` object after it is loaded from a nib file.

## See Also

[`init!(frame: NSRect, frameName: String!, groupName: String!)`](/documentation/WebKit/WebView-swift.class/init(frame:frameName:groupName:))

Initializes the receiver with a frame rectangle, frame name, and group name.



---

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)