Reachability

public enum Reachability

Caseless enumeration with static methods to check reachability.

  • Returns true if the device is connected to a network, otherwise it returns false.

    Declaration

    Swift

    public static func isConnectedToNetwork() -> Bool