---
title: "setDefaultButtonTitle(_:)"
framework: securityinterface
role: symbol
role_heading: Instance Method
path: "securityinterface/sfcertificatepanel/setdefaultbuttontitle(_:)"
---

# setDefaultButtonTitle(_:)

Customizes the title of the default button.

## Declaration

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

## Parameters

- `title`: The new title for the default button. The default title for this button is “OK”.

## Discussion

Discussion The default button dismisses the sheet or panel and returns a value of NSOKButton.

## See Also

### Customizing the Appearance of the Sheet or Panel

- [setAlternateButtonTitle(_:)](securityinterface/sfcertificatepanel/setalternatebuttontitle(_:).md)
- [setPolicies(_:)](securityinterface/sfcertificatepanel/setpolicies(_:).md)
- [policies()](securityinterface/sfcertificatepanel/policies().md)
