init(_:)
Initializes an IP address with a string.
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.
Initializes an IP address with a string.
init?(_ string: String)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.