I have implemented a looping scrolling method using TouchAction to search for a text on the screen. However, I do not know how to determine when I have reached the end of the page. The data we use is dynamic so it can either take 5 swipes or up to 20 to reach the bottom. I originally used UiScrollable but because the data fills up the page dynamically, when network speed is slow, the UiScrollable will fail because it thinks it has reached the end of the page even though data is still loading.
For now, I just have a while loop that swipes until it finds the specified text. I put an int counter as a temporary failsafe, but would like to know if there’s a way to determine that we’ve truly reached the end of the page and no new data will be loaded.