---
title: "init(url:)"
framework: webkit
role: symbol
role_heading: Initializer
path: "webkit/wkcontentruleliststore/init(url:)-dile"
---

# init(url:)

Creates a new content rule list store in the specified directory.

## Declaration

```swift
convenience init!(url: URL!)
```

## Parameters

- `url`: A URL that specifies a directory. The returned object uses this directory to store its content rules persistently. For example, you might store your app-specific rules in your app’s container directory.

## Return Value

Return Value A content rule store associated with the specified directory.

## Discussion

Discussion If the specified directory already contains compiled rule lists, this method loads those rules and adds them to the returned object. If you change any rules after creating this object, the store saves those changes to the same directory.

## See Also

### Creating a Content Rule List Store

- [default()](webkit/wkcontentruleliststore/default().md)
