Accessibility id on iOS

Hi, what is the best way to find elements on iOS.
On iOS elements have ‘accessibility id’ which is perfect to use to find elements. But I find that this ‘Accessibility Id’ is like ‘Text’ which contains element.
For example:
We have ‘Login’ btn. This button has text ‘Login’ and accessibility id is the same. But when developer changes name of a button or app language the same element will have another ‘accessibility id’(Example: Text on Login btn changed to ‘Sign In’ . ----> Accessibility id = ‘Sign In’). So how to use ‘Accessibility id’ correctly? Or we have another better way to find an elements?

In comparison with Android. A lot of elements have their unique ‘id’ and it is always the same. It never changes when developers change text in element or etc.

Just curious if you ever found a solution to this. I am experiencing the same issue currently.