Runtime save and share screen

I’ve made a simple iOS painting game/app using blueprints. Users can create sketches with particle effects. Ideally, I’d like the user to be able to save and share short animated gifs or videos of their sketch. Is this a possibility? Has anyone created a feature like this before? Maybe using instant replay?

I’m looking for something similar to this, but for Unreal: