How to create Custom Action In FileProviderUI

Hi All,


According to WWDC Session 2017In last 10 minutes of video the presenters have mentioned about custom actions.

In this case Operations are scoped to files from your extension and Interface is provided by a UI extension.


I tried implementing the same but was unsussessfull, This is a new feature and could't find any data related to this feature.


Anyone tried this feature? Is there any sample code/ app for the same?

Replies

Hi @Jaiwal,


If you just add a File Provider Extension target to your project there is a template implementation of a custom action implemented. This works fine for me.

Thanks for the answer.

I did the following steps but its not working for me, correct me if I am wrong

1. Created a new iOS project using X-Code 9.1

2. Added "File Provider Extension", it asked me to activate.

3. Activated "File Provider Extension" and "File Provider Extension UI"

4. Run on Simulator(iPhone 8 Plus -iOS 11.1)

Hi @Jaiswal,


That sounds about right, but you also need some files to display. When you have that you can long press a file and choose "Custom Action". See the File Provider Extension UI for implementation of the custom action logic.