'Determine on iPhone if user has enabled AutoFill Passwords

Hyperlink is shown at last for attached image, want to show highlighted option value from device setting section to my app .

How to get current value of AutoFill Passwords in Passwords & Accounts section of Settings in iOS?

There is any api available for this or have any sample code for the same?

I want to access this setting programmatically Like below,

Ex:- To check notification setting we can use below code

let isRegisteredForRemoteNotifications = UIApplication.shared.isRegisteredForRemoteNotifications

Just like this I want below setting Setting Image



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source