Linking purchase of iOS app and separate macOS app

Hi all,

Just wondering if I have an iOS app and a seperate macOS app is there a way to link the purchase so that if a user buys one, they automatically get the other?

Thanks! Pete