How to disable password autofill on iOS 11

iOS 11 introduces the password autofill. Am I able to disable it in my app? The text accessery view (where the key icon is) is blocked the password field on small devices.



Ok so after a bit of digging, one way of disabling it would be to change the content type of the field to something that is not username or password.

nameTextField.textContentType = UITextContentType.nickname

This solution no longer seems to work in iOS 12 betas. Any other ideas?