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;
}
Differentiate macOS from iPad in "(Designed for iPad)" app
 
 
Q