Get the device's current public IP Address. Based on https://www.ipify.org/ (unlimited requests for free)
let ipChecker = APPublicIP();
ipChecker.getCurrentIP { (ip) -> Void in
println(ip)
}
let ipChecker = APPublicIP();
ipChecker.checkForCurrentIP({ (ip) -> Void in
println(ip)
}, interval: 0.5.second)
As for now please clone the repository and drag the source folder into your project to use APPublicIP
This project uses https://github.com/radex/SwiftyTimer from Radek Pietruszewski
APPublicIP is available under the MIT license. See the LICENSE file for more info.