---
title: tag
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiview/tag
---

# tag

An integer that you can use to identify view objects in your application.

## Declaration

```swift
var tag: Int { get set }
```

## Discussion

Discussion The default value is 0. You can set the value of this tag and use that value to identify the view later.

## See Also

### Identifying the view at runtime

- [viewWithTag(_:)](uikit/uiview/viewwithtag(_:).md)
