---
title: "configuration(shielding:in:)"
framework: managedsettingsui
role: symbol
role_heading: Instance Method
path: "managedsettingsui/shieldconfigurationdatasource/configuration(shielding:in:)-6n6rd"
---

# configuration(shielding:in:)

Requests a configuration to use for a shield that covers a website because of its category.

## Declaration

```swift
func configuration(shielding webDomain: WebDomain, in category: ActivityCategory) -> ShieldConfiguration
```

## Parameters

- `webDomain`: The website that the shield covers.
- `category`: The category of the website that the shield covers.

## Return Value

Return Value The shield to display.

## See Also

### Styling a website shield

- [configuration(shielding:)](managedsettingsui/shieldconfigurationdatasource/configuration(shielding:)-18i24.md)
