<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecurityInterface",
  "identifier" : "/documentation/SecurityInterface/SFCertificateView/setDisplayDetails(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Security Interface"
    ],
    "preciseIdentifier" : "c:objc(cs)SFCertificateView(im)setDisplayDetails:"
  },
  "title" : "setDisplayDetails(_:)"
}
-->

# setDisplayDetails(_:)

Specifies whether the user can see the certificate details.

```
func setDisplayDetails(_ display: Bool)
```

## Parameters

`display`

Pass <doc://com.apple.documentation/documentation/Swift/true> to display the certificate details, or <doc://com.apple.documentation/documentation/Swift/false> to hide them.

## Discussion

For behavioral compatibility with macOS 10.3, certificate details are displayed by default. To hide the details of a certificate, you must explicitly set the display value to <doc://com.apple.documentation/documentation/Swift/false>.

## See Also

[`func detailsDisplayed() -> Bool`](/documentation/SecurityInterface/SFCertificateView/detailsDisplayed())

Indicates if the view currently shows the certificate’s details.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)