You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The public API for ELReachability consists of two types: NetworkStatus, and NetworkStatusInterpreter. The former exposes reachability state through methods, like networkStatus.isReachable() and the latter does it through computed properties, like networkStatusInterpreter.isReachable. This is kind of confusing.
FWIW, I'd rather have NetworkStatusInterpreter replaced with an enum, like:
I agree about it being confusing and that an enum would be a better fit. Since this would be a breaking API change I'd like to see it land in the next major version, which would also support Swift 3.
@nonsensery Is this something you are interested in implementing? If not I can find time in the next week to get this change in as part of the updates for Swift 3.
The public API for
ELReachability
consists of two types:NetworkStatus
, andNetworkStatusInterpreter
. The former exposes reachability state through methods, likenetworkStatus.isReachable()
and the latter does it through computed properties, likenetworkStatusInterpreter.isReachable
. This is kind of confusing.FWIW, I'd rather have
NetworkStatusInterpreter
replaced with anenum
, like:The text was updated successfully, but these errors were encountered: