@@ -43,10 +43,10 @@ public extension Notification.Name {
43
43
static let reachabilityChanged = Notification . Name ( " reachabilityChanged " )
44
44
}
45
45
46
- public class ReachabilityKit {
46
+ public class Reachability {
47
47
48
- public typealias NetworkReachable = ( ReachabilityKit ) -> ( )
49
- public typealias NetworkUnreachable = ( ReachabilityKit ) -> ( )
48
+ public typealias NetworkReachable = ( Reachability ) -> ( )
49
+ public typealias NetworkUnreachable = ( Reachability ) -> ( )
50
50
51
51
@available ( * , unavailable, renamed: " Connection " )
52
52
public enum NetworkStatus : CustomStringConvertible {
@@ -166,7 +166,7 @@ public class ReachabilityKit {
166
166
}
167
167
}
168
168
169
- public extension ReachabilityKit {
169
+ public extension Reachability {
170
170
171
171
// MARK: - *** Notifier methods ***
172
172
func startNotifier( ) throws {
@@ -252,7 +252,7 @@ public extension ReachabilityKit {
252
252
}
253
253
}
254
254
255
- fileprivate extension ReachabilityKit {
255
+ fileprivate extension Reachability {
256
256
257
257
func setReachabilityFlags( ) throws {
258
258
try reachabilitySerialQueue. sync { [ unowned self] in
@@ -281,7 +281,7 @@ fileprivate extension ReachabilityKit {
281
281
282
282
extension SCNetworkReachabilityFlags {
283
283
284
- typealias Connection = ReachabilityKit . Connection
284
+ typealias Connection = Reachability . Connection
285
285
286
286
var connection : Connection {
287
287
guard isReachableFlagSet else { return . unavailable }
@@ -398,8 +398,8 @@ extension SCNetworkReachabilityFlags {
398
398
- still allow for automatic stopping of the notifier on `deinit`.
399
399
*/
400
400
private class ReachabilityWeakifier {
401
- weak var reachability : ReachabilityKit ?
402
- init ( reachability: ReachabilityKit ) {
401
+ weak var reachability : Reachability ?
402
+ init ( reachability: Reachability ) {
403
403
self . reachability = reachability
404
404
}
405
405
}
0 commit comments