<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedSettings",
  "identifier" : "/documentation/ManagedSettings/ShieldSettings/ActivityCategoryPolicy/specific(_:except:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Managed Settings"
    ],
    "preciseIdentifier" : "s:15ManagedSettings06ShieldB0V22ActivityCategoryPolicyO8specificyAEy_xGShyAA5TokenVyAA0dE0VGG_ShyAIyxGGtcAGmlF"
  },
  "title" : "ShieldSettings.ActivityCategoryPolicy.specific(_:except:)"
}
-->

# ShieldSettings.ActivityCategoryPolicy.specific(_:except:)

A policy that indicates the device shields specific categories of activity, with some exceptions.

```
case specific(Set<ActivityCategoryToken>, except: Set<Token<Activity>> = [])
```

## Discussion

List categories you want to shield in the first parameter.
Use the `except` parameter to specify apps and websites not to shield,
even if they’re in the categories that you list.
Your app can shield up to 50 category tokens and
specify up to 50 application or web domain tokens exceptions at once.

---

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)