<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEURLFilterManager/ParsingConfiguration/DomainOptions/levels",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "s:16NetworkExtension18NEURLFilterManagerC20ParsingConfigurationV13DomainOptionsV6levelsSuvp"
  },
  "title" : "levels"
}
-->

# levels

The number of domain levels to preserve when parsing.

```
var levels: UInt
```

## Discussion

A value of `2` for the domain `www.sub.example.com` keeps the `example.com`.

Use a value of `0` to keep all domain levels.

---

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)