<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedSettings",
  "identifier" : "/documentation/ManagedSettings/WebDomain",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Managed Settings"
    ],
    "preciseIdentifier" : "s:15ManagedSettings9WebDomainV"
  },
  "title" : "WebDomain"
}
-->

# WebDomain

An object that represents a website.

```
struct WebDomain
```

## Topics

### Creating a web domain

[`init(domain: String)`](/documentation/ManagedSettings/WebDomain/init(domain:))

Creates an object that represents the specified web domain.

[`init(token: WebDomainToken)`](/documentation/ManagedSettings/WebDomain/init(token:))

Creates an object that represents the provided domain.

### Identifying a web domain

[`let domain: String?`](/documentation/ManagedSettings/WebDomain/domain)

A string that identifies a specific web domain.

[`let token: WebDomainToken?`](/documentation/ManagedSettings/WebDomain/token)

An opaque representation of a specific web domain.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)