<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NetworkBrowser/State",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network0A7BrowserC5StateO"
  },
  "title" : "NetworkBrowser.State"
}
-->

# NetworkBrowser.State

Possible states for the browser to be in.

```
enum State
```

## Topics

### Enumeration Cases

[`case cancelled`](/documentation/Network/NetworkBrowser/State/cancelled)

The browser has been cancelled. Do not call `start()` on
the browser to restart it. Instead, create a new browser.

[`case failed(NWError)`](/documentation/Network/NetworkBrowser/State/failed(_:))

The browser has irrecoverably failed. Do not call `start()` on the
browser to restart it. Instead, `cancel()` the browser and create a
new browser.

[`case ready`](/documentation/Network/NetworkBrowser/State/ready)

The browser is active and will monitor services on the network.
Set the `browseResultsChangedHandler` to get updates for these
services.

[`case setup`](/documentation/Network/NetworkBrowser/State/setup)

The browser has been created but not started. Set any relevant
callback handlers on the browser before calling `start()`.

[`case waiting(NWError)`](/documentation/Network/NetworkBrowser/State/waiting(_:))

The browser is waiting for connectivity.
Results will not be delivered until the browser moves into the ready
state. A browser can move from the ready state into the waiting state.
The associated error indicates why the browser is unable to browse.

## Relationships

### Conforms To

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

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

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

---

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)