target-specific parameters

Example: for an ios app, I might want to pass an iosGraphics object and in a desktop app, a graphics object.

Inside a method we can do #if targetDesktop or #if targets to separate the code, but can we do this when passing a parameter to a method?

Sort of. Overload the method and make one available on desktop & the other on iOS using the compatibility settings on the advanced tab.