---
title: "insertRule(_:index:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/domcssstylesheet/insertrule(_:index:)"
---

# insertRule(_:index:)

## Declaration

```swift
func insertRule(_ rule: String!, index: UInt32) -> UInt32
```
