Checking iOS Version

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)}
if #available(iOS 9, *) {
// iOS 9} else {
// iOS 8 or earlier}
let minimumVersionString = "3.1.3"
let versionComparison =…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mr.Javed Multani

Mr.Javed Multani

296 Followers

iOS Developer, Triple graduated, Passionate, Love workout, blogger