Can't you just detect it and hide the text. There is no way to prevent the screenshot even in the previous IOS16. The most you can do is detect it.
I think the question is whether when you do detect it, if there is enough time to hide the text before the screenshot is actually taken.