I would like to use conditional if on import for objective c, didn't see any API for this and wanted to know if this is possible. (this is for adding an import only for a specific IOS) so far I saw this check but it's only for the code, not at the import stage Thanks
if (@available(iOS 11, *)) {
// Use iOS 11 APIs.
} else {
// Alternative code for earlier versions of iOS.
}