I'm developing an URL shortner app, the base work is done but I want to add a feature where it automatically shorts an URL (in background) as soon as the user copies a valid URL, I have all the things running except that event whenever a text is clipped.
I have no idea how to build a background service and how to handle the event in swift.