For iPhone it's the default behavior. On Mac, it's the default behavior for Safari, and it's possible for Mac apps to support autofill since Big Sur. The main benefit of this is it works for Chrome and Chromium browsers which don't support autofill on Mac.