SkillAgentSearch skills...

SSASwiftReachability

A Swift Library To Track Network Reachability Changes. A Replacement For Apple's Reachability Class

Install / Use

/learn @SSA111/SSASwiftReachability
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SSASideMenu

###Usage

    override func viewDidLoad() {
        super.viewDidLoad()

        SSASwiftReachability.sharedManager?.startMonitoring()

        // MARK: Listen For Network Reachability Changes
        NotificationCenter.default.addObserver(self, selector: #selector(self.reachabilityStatusChanged(notification:)), name:   NSNotification.Name(rawValue: SSAReachabilityDidChangeNotification), object: nil)
    }

    func reachabilityStatusChanged(notification: NSNotification) {
        if let info = notification.userInfo {
            if let s = info[SSAReachabilityNotificationStatusItem] {
                reachabilityStatusLabel.text = (s as AnyObject).description
            }
        }
    }

###Installation As for now please clone the repository and drag the source folder into your project to use SSASwiftReachability. (Cocoapods & Carthage support coming soon)

###Author

Sebastian Andersen

Inspired by AFNetworkReachabilityManager

###License

SSASwiftReachability is available under the MIT license. See the LICENSE file for more info.

View on GitHub
GitHub Stars175
CategoryDevelopment
Updated19d ago
Forks15

Languages

Swift

Security Score

80/100

Audited on Mar 11, 2026

No findings