https://www.zdnet.com/article/how-to-clear-your-iphones-ram/
This is a trick to use when restarting your iPhone just isn't enough to solve a problem, but you don't want to go the nuclear option and carry out a factory reset.
This is one of those tricks that you don't need to use that often, but when you do run into problems it can be a huge timesaver.
So how do you clear the RAM on an iPhone?
Well, I'll tell you now that there's no button to toggle in the Settings app to do this. And how you do it depends on whether your iPhone has a Touch ID button or not.
For iPhones that have Touch ID, here's the process:
OK, so what about the iPhone X or later that don't have a Touch ID Home button? Well, this is when you have to be creative and activate a feature called AssistiveTouch.
AssistiveTouch floats a small menu on your display (which you can move about on the screen to wherever suits you) that allows you to carry out gestures such as pinching or multi-finger swipes with a single finger, offers quick access to a variety of functions, and even allows you to activate Siri without pressing the Home button.
It also gives you access to a virtual on-screen Home button.
There are three ways to activate AssistiveTouch:
I recommend using the first option because this then immediately allows you to then add the Home button to the menu by clicking on Customize Top Level Menu… and making sure the Home button is there. Tap on a button to add it if it is not there.