---
title: "sensitive(mask:)"
framework: os
role: symbol
role_heading: Type Method
path: "os/oslogprivacy/sensitive(mask:)"
---

# sensitive(mask:)

Returns a privacy structure that marks an interpolated value as sensitive, and customizes the display of redacted values.

## Declaration

```swift
static func sensitive(mask: OSLogPrivacy.Mask) -> OSLogPrivacy
```

## Parameters

- `mask`: A mask that determines whether the system replaces a redacted value with a generic string or a string from a hash of the redacted value.

## Return Value

Return Value A privacy object that redacts a sensitive value.

## See Also

### Creating a Custom Privacy Mask

- [auto(mask:)](os/oslogprivacy/auto(mask:).md)
- [private(mask:)](os/oslogprivacy/private(mask:).md)
- [OSLogPrivacy.Mask](os/oslogprivacy/mask.md)
