Properly determine iOS version

hey, I am stuck a bit in determining when user has operating system below 11.

this returns me a string, which I convert to float, and compare, as below, however, this still causes crashes on devices that does not support it. Am I even doing it right? could I use something like @available(iOS 11.0, *)?
thanks!

iOSVersion = float.Parse(iOS.Device.systemVersion, System.Globalization.CultureInfo.InvariantCulture.NumberFormat);
if(iOSVersion<11){
//disable
}

You could try using System.Version for comparisons.

1 Like