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

# setDisplayTrust(_:)

Specifies whether the user can see the certificate’s trust settings.

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

## Parameters

`display`

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

## Discussion

Certificate trust settings are not displayed by default. To show the certificate’s trust settings, you must explicitly set the display value to <doc://com.apple.documentation/documentation/Swift/true>. with either this method or the [`setEditableTrust(_:)`](/documentation/SecurityInterface/SFCertificateView/setEditableTrust(_:)) method.

## See Also

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

Indicates if the view currently shows the certificate’s trust settings.



---

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)