---
title: identifier
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uistoryboardsegue/identifier
---

# identifier

The identifier for the segue object.

## Declaration

```swift
var identifier: String? { get }
```

## Discussion

Discussion You assign identifiers to your segues in Interface Builder. An identifier is a string that your application uses to distinguish one segue from another. For example, if you have a source view controller that can segue to two or more different destination view controllers, you’d assign different identifiers to each segue so that the source view controller’s prepare(for:sender:) method could tell them apart and prepare each segue appropriately.

## See Also

### Accessing the segue attributes

- [source](uikit/uistoryboardsegue/source.md)
- [destination](uikit/uistoryboardsegue/destination.md)
