A type of entry in a TXT record dictionary.


enum NWTXTRecord.Entry


Entry Types

case none

The key is not mapped to any value.

case empty

The key is mapped to an empty value.

case string(String)

The key is mapped to a string.


See Also

Creating TXT Records

init([String : String])

Initializes a TXT record with a dictionary of strings.

func removeEntry(key: String) -> Bool

Removes an entry from a TXT record dictionary.

func setEntry(NWTXTRecord.Entry, for: String) -> Bool

Sets an entry in a TXT record dictionary.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software