I have a function that is aimed at iOS 11+ marked with the following:
@available(iOS 11.0, *)
Now I need to target a different function for iOS versions less than iOS 11. How do I write that?
if #available(iOS 11.0, *) {} else {
// do something (pre iOS 11.0)
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With