<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NWBrowser",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network9NWBrowserC"
  },
  "title" : "NWBrowser"
}
-->

# NWBrowser

An object you use to browse for available network services.

```
final class NWBrowser
```

## Topics

### Essentials

  <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSBonjourServices>

  <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/NSLocalNetworkUsageDescription>

### Browsing for Services

[`init(for:using:)`](/documentation/Network/NWBrowser/init(for:using:))

Initializes a browser with a type of service to discover.

[`Descriptor`](/documentation/Network/NWBrowser/Descriptor-swift.enum)

A service description used to discover Bonjour services.

[`start(queue:)`](/documentation/Network/NWBrowser/start(queue:))

Starts browsing for services, and sets the queue on which all browser events will be delivered.

[`browseResultsChangedHandler`](/documentation/Network/NWBrowser/browseResultsChangedHandler)

A handler that delivers updates about discovered services.

[`Result`](/documentation/Network/NWBrowser/Result)

A set of discovered services and changes from the last result.

[`browseResults`](/documentation/Network/NWBrowser/browseResults)

The list of discovered services.

### Managing Browsers

[`stateUpdateHandler`](/documentation/Network/NWBrowser/stateUpdateHandler)

A handler that receives browser state updates.

[`State`](/documentation/Network/NWBrowser/State-swift.enum)

States indicating whether a browser is able to discover services.

[`state`](/documentation/Network/NWBrowser/state-swift.property)

The current state of the browser.

[`cancel()`](/documentation/Network/NWBrowser/cancel())

Stops browsing for services.

### Inspecting Browsers

[`descriptor`](/documentation/Network/NWBrowser/descriptor-swift.property)

The service descriptor with which the browser was initialized.

[`parameters`](/documentation/Network/NWBrowser/parameters)

The parameters with which the browser was initialized.

[`queue`](/documentation/Network/NWBrowser/queue)

The queue on which browser events are delivered.

## Relationships

### Conforms To

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

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

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

---

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)