'Weibo is not getting excluded in UIActivityViewController

I am excluding .postToWeibo but still I can see Weibo app in the options of UIActivityViewController. My code is

 var activityViewController = UIActivityViewController(activityItems: [documentId+".pdf", pDfdata], applicationActivities: nil)   

 activityViewController.excludedActivityTypes = [.postToTwitter, .postToFacebook, .postToFlickr, .postToTencentWeibo, .postToVimeo, .postToWeibo]

 present(activityViewController, animated: true)'''

Can you please let me know what is the reason for this?

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source