Post

Replies

Boosts

Views

Activity

Reply to Open Share Extension
Many years later, I came up with a solution: This is only possible via the private API, Using VK as an example: NSExtension *shareExtension = [NSExtension extensionWithIdentifier: @"com.vk.vkclient.shareextension" error:nil]; self.vkExtension = shareExtension;//Strong reference otherwise it will be released if (extension) { SLComposeViewController *shareVC = [SLComposeViewController composeViewControllerForExtension:shareExtension]; [self presentViewController:shareVC animated:YES completion:nill]; }
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’24
Reply to Open Share Extension
Many years later, I came up with a solution: This is only possible via the private API, Using VK as an example: NSExtension *shareExtension = [NSExtension extensionWithIdentifier: @"com.vk.vkclient.shareextension" error:nil]; self.vkExtension = shareExtension;//Strong reference otherwise it will be released if (extension) { SLComposeViewController *shareVC = [SLComposeViewController composeViewControllerForExtension:shareExtension]; [self presentViewController:shareVC animated:YES completion:nill]; }
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’24