---
title: "setAlternateButtonTitle(_:)"
framework: securityinterface
role: symbol
role_heading: Instance Method
path: "securityinterface/sfchooseidentitypanel/setalternatebuttontitle(_:)"
---

# setAlternateButtonTitle(_:)

Customizes the title of the alternate button.

## Declaration

```swift
func setAlternateButtonTitle(_ title: String!)
```

## Parameters

- `title`: The new title for the alternate button. If this method is not called, or if title is set to nil, the button is not shown.

## Discussion

Discussion The alternate button is typically labelled “Cancel”. The alternate button dismisses the sheet or panel and returns a value of NSCancelButton.

## See Also

### Customizing the Appearance of the Sheet or Panel

- [setDefaultButtonTitle(_:)](securityinterface/sfchooseidentitypanel/setdefaultbuttontitle(_:).md)
- [setPolicies(_:)](securityinterface/sfchooseidentitypanel/setpolicies(_:).md)
- [policies()](securityinterface/sfchooseidentitypanel/policies().md)
- [informativeText()](securityinterface/sfchooseidentitypanel/informativetext().md)
- [setInformativeText(_:)](securityinterface/sfchooseidentitypanel/setinformativetext(_:).md)
