File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,12 @@ public class Reachability: NSObject, Printable {
7575 }
7676
7777 // MARK: - *** Initialisation methods ***
78+
79+ public required init ( reachabilityRef: SCNetworkReachability ) {
80+ reachableOnWWAN = true
81+ self . reachabilityRef = reachabilityRef
82+ }
83+
7884 public convenience init ( hostname: String ) {
7985 let ref = SCNetworkReachabilityCreateWithName ( nil , ( hostname as NSString ) . UTF8String) . takeRetainedValue ( )
8086 self . init ( reachabilityRef: ref)
@@ -203,11 +209,6 @@ public class Reachability: NSObject, Printable {
203209 } ( )
204210 private var previousReachabilityFlags : SCNetworkReachabilityFlags ?
205211
206- private init ( reachabilityRef: SCNetworkReachability ) {
207- reachableOnWWAN = true
208- self . reachabilityRef = reachabilityRef
209- }
210-
211212 func timerFired( ) {
212213 let currentReachabilityFlags = reachabilityFlags
213214 if let _previousReachabilityFlags = previousReachabilityFlags {
You can’t perform that action at this time.
0 commit comments