title: How to avoid double "save password to iCloud" dialog?
body: <p>In a login dialog, the username and password text fields have their <code>contentType</code> set:</p>
  
  <pre><code>if #available(iOS 11.0, *) {
     userNameTextField.textContentType = .username
     passwordTextField.textContentType = .password
  }
  </code></pre>
  
  <p>Historically, the app was "manually" storing the credentials as shared credentials with <code>SecAddSharedWebCredential</code>.</p>
  
  <p>However, in iOS 12.0.1 I noticed that the "save password" dialog is suddenly displayed two times on top of each other:</p>
  
  <p><a href="https://i.stack.imgur.com/Pn59S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pn59S.png" alt="enter image description here"></a></p>
  
  <p>Is that because from iOS 11.0 on the dialog below appears automatically because <code>textContentType</code> is set and the dialog on top appears because of calling <code>SecAddSharedWebCredential</code>?</p>
  
  <p>Is it documented anywhere from which iOS version onwards the dialog appears that is partly hidden in the screenshot?</p>