Latest 1.1
License MIT
Platforms ios 8.0, osx 10.9, tvos 9.2, requires ARC

CI Status
Carthage Compatible
Coverage Status


SwiftPing ICMP Pinging in swift..


let pingInterval:TimeInterval = 3
let timeoutInterval:TimeInterval = 4
let configuration = PingConfiguration(pInterval:pingInterval, withTimeout:  timeoutInterval)

print(configuration) "", configuration: configuration, queue: DispatchQueue.main) { (ping, error) in


ICMP Pinging in swift.

*Thanks to Migrated it to Swift 3 and added 1 enhancement.

Enhancement: Now pinging is supportable in any of the GCD Queue, where user wants.

SwiftPing is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SwiftPing'

SwiftPing is also available through Carthage.
To install just write into your Cartfile:

github "ankitthakur85/SwiftPing"


Test cases needs to be added


Ankit Thakur, [email protected]


We would love you to contribute to SwiftPing and request you follow these guidelines.

Raising issues

Please raise any bug reports on the issue tracker. Be sure to
search the list to see if your issue has already been raised.

A good bug report is one that make it easy for us to understand what you were
trying to do and what went wrong. Provide as much context as possible so we can try to recreate the issue.

If you find a bug, please submit a pull request with a failing test case displaying the bug or create an issue. Please add tests alongside your pull requests.

Coding standards

Please ensure you follow the coding standards used throughout the existing
code base. Some basic rules include:

  • all PRs must have passing builds for all operating systems.


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

Latest podspec

    "name": "SwiftPing",
    "summary": "SwiftPing:ICMP Ping in swift",
    "version": "1.1",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Ankit Thakur": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.1"
    "social_media_url": "",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "tvos": "9.2"
    "requires_arc": true,
    "ios": {
        "source_files": "Sources/{iOS,Shared}/**/*"
    "tvos": {
        "source_files": "Sources/{iOS,Shared}/**/*"
    "osx": {
        "source_files": "Sources/{Mac,Shared}/**/*"

Pin It on Pinterest

Share This