Reachability.swift v4.0.0 Release Notes

Release Date: 2017-10-10 // over 6 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.