---
title: "add(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkusercontentcontroller/add(_:)"
---

# add(_:)

Adds the specified content rule list to the content controller object.

## Declaration

```swift
func add(_ contentRuleList: WKContentRuleList)
```

## Parameters

- `contentRuleList`: The rule list to add. Create and retrieve rules lists using a WKContentExtensionStore object.

## Discussion

Discussion Call this method to apply a set of content filtering rules to your web view’s configuration.

## See Also

### Adding and Removing Content Rules

- [remove(_:)](webkit/wkusercontentcontroller/remove(_:).md)
- [removeAllContentRuleLists()](webkit/wkusercontentcontroller/removeallcontentrulelists().md)
- [WKContentRuleList](webkit/wkcontentrulelist.md)
