Is there an easy way to check the OS version on iO...
# kotlin-native
t
Is there an easy way to check the OS version on iOS from iosMain? I'm struggling with how to use NSProcessInfo.processInfo().operatingSystemVersion().
Here is how in case it helps somebody else.
Copy code
// Is iOS 16 or greater?
val osVersion = NSProcessInfo.processInfo().operatingSystemVersion()
val majorVersion = osVersion.useContents { majorVersion }
val isIos16OrGreater = majorVersion >= 16