setrforum.blogg.se

Swift share extension open app
Swift share extension open app











Sensitive data like your access token, used send data back and forth between device and the WriteFreely server, is securely encrypted and stored in the system's Keychain.WriteFreely for iOS stores information in one of three places on your device: PR195, Migrate persistent store to App Group.Then -as you might well expect- the action extension itself needed to be built. First, some data and preferences needed to be moved to an App Group so they can be accessed both by the WriteFreely and by its action extension. How It Was Builtīuilding this functionality was done in a couple of steps (see the related GitHub issue).

swift share extension open app swift share extension open app

This is only saved to your iOS device, so you can always go back to the app and continue editing it before publishing. Via: ( Below that, the Save To menu lets you choose the blog to which you'd like to save the post. Add anything else you want to the Content field, before or after the link: ( If you have selected text on the webpage, then it's included as a blockquote before the link: > This text was selected on the webpage. Without selected text, you just get the link. The formatting of the content is a little bit different, depending on whether there's selected text. If you've selected any text on the page, that's included too. The Content field gets pre-populated with a Markdown link using the title and URL of the current webpage. The Title field is optional if you want to create a new draft with a title, enter it here. Tapping the “Create WriteFreely draft” option in the menu brings up the extension's user interface, which lets you create a note and save it as a local draft for a particular blog in your WriteFreely/Write.as account: In the case of the WriteFreely for iOS extension, Safari's Share menu gets a new entry:

swift share extension open app

The action extension is a bit special, in that it lets users interact with one app from another app (typically via the Share button). How It WorksĮssentially, iOS exposes an extension system that developers can use to extend their apps: this includes things like home-screen widgets, Siri shortcuts, and action extensions. With version 1.0.8 -now available on the App Store- we've added an action extension for Safari that makes this task much easier. Posts like this are great for sharing a quick thought, or a snippet from a web page.ĭoing the latter, though, is a bit annoying - it involves several round trips between WriteFreely and Safari, copying and pasting bits of information (the URL, the page title, and any selection of text) between the two apps, one at a time. These get posted to one of my Write.as blogs, and are then syndicated to various social networks. One thing I love to do with the app is write up quick little notes on my iPhone as “titleless” micro-blog posts. Today, I want to talk a little bit about a new feature in WriteFreely for iOS: sharing from Safari.













Swift share extension open app