Reputation: 743
I've created a Share extension that will save a file URL to user default. The extension comes with a UI with Post and Cancel button. How can I remove this (the UI) so that when I press my share extension, it will straight away call the didSelectPost?
I'm using Swift 3 and building for iPhone
Upvotes: 2
Views: 1196
Reputation: 536027
The template uses a SLComposeServiceViewController. Use a plain view controller instead. The entire interface, including providing a way to dismiss the view controller, will then be up to you.
(However, I can't help wondering whether what you really want might not be an Action extension.)
Upvotes: 1