Reachability.swift v5.0.0 Release Notes
Release Date: 2019-06-19 // over 5 years ago-
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.