---
title: "addRule(_:style:index:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/domcssstylesheet/addrule(_:style:index:)"
---

# addRule(_:style:index:)

## Declaration

```swift
func addRule(_ selector: String!, style: String!, index: UInt32) -> Int32
```
