Is there something like this available in kotlin? ...
# multiplatform
t
Is there something like this available in kotlin?
Copy code
if #available(iOS 9.0, *) {
    // use UIStackView
} else {
    // show sad face emoji
}

@available(iOS 9.0, *)
func useStackView() {
    // use UIStackView
}
👀 1
m
You could use expect/actual to get this information, but other than that I'm not aware of an included function to request such information.