iOS has a dedicated API for password managers - Password Autofill (https://developer.apple.com/documentation/security/password_...). It presents passwords in password managers the same way it would passwords in iCloud Keychain.
You still sometimes need to use the interfaces you mention, but increasingly rarely.