iOS 8 and later

suggest change

isOperatingSystemAtLeast is available on iOS 8 and later. This sample checks for version 8.1.2 or newer, not for every iOS 8 release. ProcessInfo() is the process’s shared info object.

Swift 3:

let minimumVersion = OperatingSystemVersion(majorVersion: 8, minorVersion: 1, patchVersion: 2)
if ProcessInfo().isOperatingSystemAtLeast(minimumVersion) {
    //current version is >= (8.1.2)
} else {
    //current version is < (8.1.2)
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents