Reachability.swift v5.1.0 Release Notes
Release Date: 2020-09-22 // about 4 years ago-
Thanks to @massimobio, @EmDee, @dvshelley
Previous changes from v5.0.0
-
Thanks to:
- @p4checo
- @connorpower
๐ Changed
init()
methods nowthrow
ReachabilityError
contains the error code returned bySCError(
) after an error occurs.- ๐ Renamed error cases to start with lowercase ### โ Added
- ๐ Allow configuring the notification
DispatchQueue
, which was previously hardcoded toDispatchQueue.main
. It is now an optional, which if set tonil
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. UseConnection.unavailable
instead.