Android and iOS uses different APIs to find certain UI element on a View. One uses androidx.compose.ui.test for Compose-UI or Espresso for Android XML and the other uses XCTest.
Even though the APIs are different in the end they do the same thing in a similar way, they both takes a tag, a name or a visible text on that View as an argument and try to find the View on the screen.