Contents

appendInterpolation(_:align:privacy:)

Appends an interpolated type description.

Declaration

mutating func appendInterpolation(_ value: @autoclosure  @escaping () -> any Any.Type, align: OSLogStringAlignment = .none, privacy: OSLogPrivacy = .auto)

Parameters

  • value:

    A Swift type.

  • align:

    The alignment to apply to the type name. Use this parameter to specify the width of the column containing the name, and the alignment of the name within that column. If you don’t specify this parameter, the system doesn’t align the value.

  • privacy:

    The privacy level of the information. If you don’t specify this parameter, the system uses the default rules to determine whether to show the information.

Discussion

Don’t call this function directly. The system calls it automatically when interpolating values of this type. When specifying the value in your string, you may include any of the indicated parameters to change the default presentation of that value.

See Also

Appending Generic Types