<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedSettings",
  "identifier" : "/documentation/ManagedSettingsUI/ShieldConfigurationDataSource/configuration(shielding:in:)-ia14",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Managed Settings UI"
    ],
    "preciseIdentifier" : "s:17ManagedSettingsUI29ShieldConfigurationDataSourceC13configuration9shielding2inAA0dE0V0aB011ApplicationV_AI16ActivityCategoryVtF"
  },
  "title" : "configuration(shielding:in:)"
}
-->

# configuration(shielding:in:)

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

```
func configuration(shielding application: Application, in category: ActivityCategory) -> ShieldConfiguration
```

## Parameters

`application`

The application the shield covers.

`category`

The category of the application that the shield covers.

## Return Value

The shield to display.

---

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)