Initializes a Bonjour service to advertise with a TXT record.


init(name: String? = nil, type: String, domain: String? = nil, txtRecord: NWTXTRecord)


Advertised services are primarily defined by their types. If you do not specify a service name, the device name will be chosen. You should not specify a Bonjour domain unless you know you need to advertise only on a particular domain.

See Also

Defining Services

var noAutoRename: Bool

A Boolean that indicates whether the service prohibits automatic renaming in the event of a name conflict.