---
title: "addItem(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uifieldbehavior/additem(_:)"
---

# addItem(_:)

Associates the field behavior with the specified dynamic item.

## Declaration

```swift
func addItem(_ item: any UIDynamicItem)
```

## Parameters

- `item`: The dynamic item whose behavior you want to modify.

## Discussion

Discussion Use this method to apply a field to a dynamic item in your interface. This method adds the specified dynamic item to the field behavior’s list of dynamic items.

## See Also

### Managing the associated dynamic items

- [removeItem(_:)](uikit/uifieldbehavior/removeitem(_:).md)
- [items](uikit/uifieldbehavior/items.md)
