Reachability.swift v4.0.0 Release Notes

Release Date: 2017-10-10 // over 2 years ago
  • 🔄 Changed

    • NetworkStatus renamed Connection
    • currentReachabilityStatus renamed connection
    • isReachableViaWWAN has been renamed to isReachableViaCellular
    • reachableOnWWAN has been renamed to allowsCellularConnection
    • The notification for reachability changes has been renamed from ReachabilityChangedNotification to Notification.Name.reachabilityChanged
    • All closure callbacks and notification are fired on the main queue (including when startNotifier() is called)

    🗄 Deprecated

    • 🗄 reachability.currentReachabilityString has been deprecated. Use "\(reachability.connection)" instead.
    • 🗄 isReachable has been deprecated. Use connection != .none instead.
    • 🗄 isReachableViaWWAN has been deprecated. Use connection == .cellular instead.