UI Testing iOS, Selecting Secure Text Entry textField

As discussed in the comments, when accessing a secure text field use the secureTextFields selector.

let passwordTextField = app.secureTextFields["password"]
passwordTextField.tap()
passwordTextField.typeText("my secure password")

Also if you need to type to secureTextField

If menu I/O Hardware Keyboard is ON typeText not working for secureTextField.

enter image description here

Use below to type to secure field

        password.tap()

        app.keys["t"].tap()
        app.keys["e"].tap()
        app.keys["s"].tap()
        app.keys["t"].tap()