Home:ALL Converter>AirDrop a custom file type from one IOS device to another / excludedActivityTypes

AirDrop a custom file type from one IOS device to another / excludedActivityTypes

Ask Time:2022-02-27T17:49:18         Author:pete

Json Formatter

Currently I can send custom type Data from one device to another via email but I'm now trying to use AirDrop with my incomplete code below . I think the problem is I need to add my custom file type in the excludedActivityTypes but not sure how ??

I believe I need to add my document type and exported type identifier but not sure how ? (I've added screen shots below of my declared custom file)

enter code here   let dataToShare: NSMutableArray = self.quizDataBase

       let controller = UIActivityViewController(activityItems: [dataToShare], applicationActivities: nil)
    controller.excludedActivityTypes = nil

    self.present(controller, animated: true, completion: nil)

enter image description here

Author:pete,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/71283712/airdrop-a-custom-file-type-from-one-ios-device-to-another-excludedactivitytype
yy