Initializer

init(_:)

Initializes an IP address with a string.

Required.

Declaration

init?(_ string: String)

Discussion

The provided string will be interpreted as an IPv4 or IPv6 address. If the string cannot be interpreted as an address, the initialization will fail.

See Also

Creating Addresses

init?(Data, NWInterface?)

Initializes an IP address with data.

Required.