Differentiate macOS from iPad in "(Designed for iPad)" app

I have an iOS app that I would like to execute on mac os with the "Designed for iPad" feature (not catalyst).

I would like to know if there is a way to have specific behaviour on macOS ? I have tested all the UIDevice information but it all comes with iPad information.

Very late reply, but just for anyone else I use the following:

{
    BOOL isAppOnMac = NO;
    if (@available(iOS 14.0, *)) {
        isAppOnMac = [NSProcessInfo processInfo].isiOSAppOnMac;
    }
    return isAppOnMac;
}

Thank you! The inabliity to code specifically for Designed for iPad is non-trivial. This is exactly what I needed. Here's a Swift rendition that's working perfectly for me:

var isRunningInDesignedForIPadMode: Bool {
    if #available(iOS 14.0, *) {
        return ProcessInfo.processInfo.isiOSAppOnMac
    }
    return false
}
Differentiate macOS from iPad in "(Designed for iPad)" app
 
 
Q