---
title: textFields
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uialertcontroller/textfields
---

# textFields

The array of text fields displayed by the alert.

## Declaration

```swift
var textFields: [UITextField]? { get }
```

## Discussion

Discussion Use this property to access the text fields displayed by the alert. The text fields are in the order in which you added them to the alert controller. This order also corresponds to the order in which they are displayed in the alert.

## See Also

### Configuring text fields

- [addTextField(configurationHandler:)](uikit/uialertcontroller/addtextfield(configurationhandler:).md)
