This is the standard behavior of iOS, you can see it in any Apple application.
You can check if the touch has ended at the end of the screen and consider it as “cancel sliding,” but the user may want to slide so far.
My advice agrees with this because, as I said, this is standard behavior, and Apple tells us to stick with it - users expect standard behavior.
source share