---
title: "rememberGraphicsLayer"
description: "Create a new [GraphicsLayer] instance that will automatically be released when the Composable is
disposed."
type: "composable"
---

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


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@Composable
@ComposableOpenTarget(-1)
fun rememberGraphicsLayer(): GraphicsLayer
```


Create a new `GraphicsLayer` instance that will automatically be released when the Composable is
disposed.

#### Returns

| | |
| --- | --- |
|  | a GraphicsLayer instance |





