Contents

certificateSheet(trust:title:message:help:)

Displays a certificate sheet using the provided certificate trust.

Declaration

@MainActor @preconcurrency func certificateSheet(trust: Binding<SecTrust?>, title: String? = nil, message: String? = nil, help: URL? = nil) -> some View

Parameters

  • trust:

    A binding to a SecTrust reference created with SecTrustCreateWithCertificates (see <Security/SecTrust.h>) that determines whether to present the certificate sheet.

  • title:

    The title to display. Uses a default title if nil.

  • message:

    The message to display. Uses a default message if nil.

  • help:

    URL for the “Learn More” button. Uses a default URL if nil.