---
title: secondaryAction
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidocumentviewcontroller/launchoptions-swift.class/secondaryaction
---

# secondaryAction

The launch scene’s secondary action.

## Declaration

```swift
@NSCopying var secondaryAction: UIAction? { get set }
```

## Mentioned in

Customizing a document-based app’s launch experience

## Discussion

Discussion Set this property to add a secondary action to the document launch scene. If you set this property, the system adds a button for the secondary action to the title view.

## See Also

### Adding actions

- [primaryAction](uikit/uidocumentviewcontroller/launchoptions-swift.class/primaryaction.md)
