---
title: "init(_:_:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/clothsimulationcomponent/frictionoverridescollection/key/init(_:_:)"
---

# init(_:_:)

Creates a material-pair key from the names of the two materials.

## Declaration

```swift
init(_ material1: String, _ material2: String)
```

## Parameters

- `material1`: The name of the first material.
- `material2`: The name of the second material.
