A network Ping implementation for iOS. Written in Swift.
A wrapper for SimpleSwiftPing by François Lamboley and example application.
// Use a domain name or an ip address
// let hostName = "192.168.1.2"
let hostName = "google.com"
let ping = Ping.init(hostName: hostName, completion: { (result, message) in
// Do something with the response.
})
ping.sendPing()