---
title: "add"
description: "Returns a [WindowInsets] that has values of this, added to the values of [insets]. For example,
if this has a top of 10 and insets has a top of 5, the returned [WindowInsets] will have a top
of 15."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun WindowInsets.add(insets: WindowInsets): WindowInsets
```


Returns a `WindowInsets` that has values of this, added to the values of `insets`. For example,
if this has a top of 10 and insets has a top of 5, the returned `WindowInsets` will have a top
of 15.



