iosswiftxcode7markupuiactivityviewcontroller

Markup feature in images in swift


I've created a chat app, where user can chat and share images. Now I need to add feature where user can edit and perform some annotation on images. I've heard from iOS 9 there's a new feature called markup to perform editting on images. I've checked UIActivityViewController and couldn't find in it. Is this feature available and can it fit to my requirement? If not, is there any other alternatives that I can approach?


Solution

  • Yes you are Right Markup feature is available from ios 9.

    iOS 9 has introduced a set of markup tools for images that you attach with a message in the Mail app.

    To use this feature,

    1) Open the Mail app and compose a new message (or reply to an old one if that’s what you need to do).

    2) Tap and hold on the message body area and in the floating actions bar, tap the Insert Photo or Video option. From your camera roll, insert a photo.

    3) Tap and hold on the photo and in the floating actions bar that appears on the photo, tap the new ‘Markup’ option.

    --> Your photo will be enter in Editing mode.

    Markup tool will look like this ,

    enter image description here

    From the link whats-new you will find that apple implement markup option for mail.

    enter image description here

    So, As per your Question , Markup image facility provided bydefault by apple in Mail. so, i think you can't implement it programatically. but when user will open the mail from UIActivitycontroller from your application then user will get Markup feature with following above procedure. (But user have to manually do process to enable Markup feature)

    You can also check video on youtube ,

    How to markup and annotate an attachment in iOS 9

    Reference link regarding markup feature,

    ios-9-markup-annotate-email-attachments

    I hope this info is helpful for you.