<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.2.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NetServiceBrowserDelegate/netServiceBrowser(_:didFindDomain:moreComing:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(pl)NSNetServiceBrowserDelegate(im)netServiceBrowser:didFindDomain:moreComing:"
  },
  "title" : "netServiceBrowser(_:didFindDomain:moreComing:)"
}
-->

# netServiceBrowser(_:didFindDomain:moreComing:)

Tells the delegate the sender found a domain.

```
optional func netServiceBrowser(_ browser: NetServiceBrowser, didFindDomain domainString: String, moreComing: Bool)
```

## Parameters

`browser`

Sender of this delegate message.

`domainString`

Name of the domain found by `netServiceBrowser`.

`moreComing`

<doc://com.apple.documentation/documentation/Swift/true> when `netServiceBrowser` is waiting for additional domains. <doc://com.apple.documentation/documentation/Swift/false> when there are no additional domains.

## Discussion

The delegate uses this message to compile a list of available domains. It should wait until `moreDomainsComing` is <doc://com.apple.documentation/documentation/Swift/false> to do a bulk update of user interface elements.

## See Also

[`searchForBrowsableDomains()`](/documentation/Foundation/NetServiceBrowser/searchForBrowsableDomains())

Initiates a search for domains visible to the host. This method returns immediately.

  [Bonjour Overview](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/NetServices/Introduction.html#//apple_ref/doc/uid/10000119i)

  [NSNetServices and CFNetServices Programming Guide](https://developer.apple.com/library/archive/documentation/Networking/Conceptual/NSNetServiceProgGuide/Introduction.html#//apple_ref/doc/uid/TP40002736)

[`searchForRegistrationDomains()`](/documentation/Foundation/NetServiceBrowser/searchForRegistrationDomains())

Initiates a search for domains in which the host may register services.



---

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)