---
title: "setAlternateButtonTitle(_:)"
framework: securityinterface
role: symbol
role_heading: Instance Method
path: "securityinterface/sfcertificatepanel/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

### Related Documentation

- [setDefaultButtonTitle(_:)](securityinterface/sfcertificatepanel/setdefaultbuttontitle(_:).md)
- [runModal(for:message:)](securityinterface/sfcertificatetrustpanel/runmodal(for:message:).md)

### Customizing the Appearance of the Sheet or Panel

- [setDefaultButtonTitle(_:)](securityinterface/sfcertificatepanel/setdefaultbuttontitle(_:).md)
- [setPolicies(_:)](securityinterface/sfcertificatepanel/setpolicies(_:).md)
- [policies()](securityinterface/sfcertificatepanel/policies().md)
