Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

App Extension Best Practices #10

Open
nixzhu opened this issue Mar 16, 2018 · 0 comments
Open

App Extension Best Practices #10

nixzhu opened this issue Mar 16, 2018 · 0 comments

Comments

@nixzhu
Copy link

nixzhu commented Mar 16, 2018

I have watched a WWDC session recently. I think maybe use a NSItemProvider for UIActivityViewController is better.

https://developer.apple.com/videos/play/wwdc2015/224/
(from 08:00)

As this video shows, a NSItemProvider can register different items, for example, kUTTypePlainText or kUTTypePDF.

And text file does not have a default preview image in system's share action. NSItemProvider.previewImageHandler can let host app to provide one.

I never use a NSItemProvider before, so there is not a pull request from me, sorry about that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant