<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIStoryboardSegue/init(identifier:source:destination:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIStoryboardSegue(im)initWithIdentifier:source:destination:"
  },
  "title" : "init(identifier:source:destination:)"
}
-->

# init(identifier:source:destination:)

Initializes and returns a storyboard segue object for use in performing a segue.

```
init(identifier: String?, source: UIViewController, destination: UIViewController)
```

## Parameters

`identifier`

The identifier you want to associate with this particular instance of the segue. You can use this identifier to differentiate one type of segue from another at runtime.

`source`

The view controller visible at the start of the segue.

`destination`

The view controller to display after the completion of the segue.

## Return Value

An initialized segue object.

## Discussion

This method is the designated initializer for segue objects. If you subclass [`UIStoryboardSegue`](/documentation/UIKit/UIStoryboardSegue), you can override this method and perform any custom initialization in your implementation. Your implementation should call `super` first and then proceed if that method doesn’t return `nil`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)