To enable autofill for passwords on iOS 17, go to the Settings app, navigate to the Password section, and toggle on the autofill feature. Your device will then automatically fill in your saved passwords whenever required.