Reachability.swift v5.1.0 Release Notes

Release Date: 2020-09-22 // about 4 years ago

Previous changes from v5.0.0

  • Thanks to:

    • @p4checo
    • @connorpower

    ๐Ÿ”„ Changed

    • init() methods now throw
    • ReachabilityError contains the error code returned by SCError() after an error occurs.
    • ๐Ÿ“‡ Renamed error cases to start with lowercase ### โž• Added
    • ๐Ÿ‘ Allow configuring the notification DispatchQueue, which was previously hardcoded to DispatchQueue.main. It is now an optional, which if set to nil will use the notifier's internal queue to fire notifications. The default is still .main ### ๐Ÿ›  Fixed
    • ๐Ÿ›  Fixed a crash which could occur if Reachability was deallocated at the same time a system thread was calling back into Reachability ### ๐Ÿ—„ Deprecated
    • ๐Ÿ—„ To resolve an issue when using optional Reachability vars, Connection.none has been deprecated. Use Connection.unavailable instead.