Skip to content

Why NetworkStatus rawValue dose not match to the Apple's Reachability ? #169

Description

@kenmaz

Could you please explain the reason for this mismatch ?

tonymillion/Reachability - Reachability.h

typedef NS_ENUM(NSInteger, NetworkStatus) {
    // Apple NetworkStatus Compatible Names.
    NotReachable = 0,
    ReachableViaWiFi = 2,
    ReachableViaWWAN = 1
};

Apple's Reachability sample code - Reachability.h

typedef enum : NSInteger {
    NotReachable = 0,
    ReachableViaWiFi,  //=1
    ReachableViaWWAN  //=2
} NetworkStatus;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions