Hello. I need to perform swift's <Availability-Con...
# ios
v
Hello. I need to perform swift's Availability-Condition aka
if #available (iOS 16.0, *) {}
but from Kotlin. Couldn't find lot of info about that. I see the
available(vararg pairs: Pair<OS, OSVersion>)
in the
org.jetbrain.skiko.OsVersion.apple.kt
which seems to doing the trick with
available(OS.Ios to OSVersion(major = 16))
. My concern is that it is not documented or mentioned so I am not sure if it is safe to use and or intended to for public usage