segue

A segue is a connection that represents a transition from one scene to another scene, such as one scene sliding over another. The connection is between an object in one scene that a user touches to initiate the transition, and a scene or a storyboard reference that is the target of the transition.

On the storyboard, segues appear as an arrow between scenes. The arrow includes a symbol for the type of segue. The screenshot shows a push segue.

Segue Types

There are several types of segues, some of which are unique to either macOS or iOS. The following two tables list the types of segue for each platform, including the name, Interface Builder symbol, and a brief description.

Symbol

Type

Description

Show

Present the content in the detail or master area depending on the content of the screen.

If the app is displaying a master and detail view, the content is pushed onto the detail area. If the app is only displaying the master or the detail, the content is pushed on top of the current view controller stack.

Show Detail

Present the content in the detail area.

If the app is displaying a master and detail view, the new content replaces the current detail. If the app is only displaying the master or the detail, the content replaces the top of the current view controller stack.

Present Modally

Present the content modally.

Present as Popover

Present the content as a popover anchored to an existing view.

Custom

Create your own behaviors by using a custom segue.

Symbol

Type

Description

Show

Present the content in a new window.

Modal

Present the content as a modal dialog.

Popover

Present the content as a popover anchored to an existing view.

Sheet

Present the content as a sheet attached to the originating window.

Custom

Create your own behaviors by using a custom segue.