Monday, November 9, 2026
HomeiOS Developmentios - Swift: Share extension - switch picture in share extension or...

ios – Swift: Share extension – switch picture in share extension or subsequent app launch

[ad_1]

I’m including a share extension for an app, which permits the person so as to add any variety of pictures to the app by (1) copying the chosen photographs as authentic photographs into the doc listing of the app and (2) write an entry into the apps database for every picture positioned within the doc listing too.

I learn a number of instances about reminiscence limits of app extensions, e.g. right here and right here and I see now 2 methods of implementing:

  1. copy the photographs and make the db entries within the code of the share extenion (ShareViewController)
  2. write the photographs URLs into the doc listing and test on every app launch whether or not there are some URLs, then copy the photographs and do the db entries on the app launch and clear the URLs from the doc listing

Did anybody face the identical downside or obtained any advice?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments