---
title: "RippleNode.BorderLogicLayerDelegate"
description: "Border logic that correctly manages the GraphicsLayer, should be released in onDetach"
type: "class"
lastmod: "2026-04-23T11:19:39.119307Z"
---
## API Reference

> Source set: Common

```kotlin
inner class BorderLogicLayerDelegate
```

Border logic that correctly manages the [GraphicsLayer](/jetpack-compose/androidx.compose.ui/ui-graphics/classes/GraphicsLayer), should be released in `onDetach`

## Properties

### borderLogic

> Source set: Common

```kotlin
val borderLogic = BorderLogic()
```

### layer

> Source set: Common

```kotlin
var layer: GraphicsLayer?
```

## Functions

### drawBorder

```kotlin
fun drawBorder(
            drawScope: DrawScope,
            width: () -> Dp,
            inset: () -> Dp,
            brush: Brush,
            outline: Outline,
        )
```

### obtainGraphicsLayer

```kotlin
fun obtainGraphicsLayer(): GraphicsLayer
```

### release

```kotlin
fun release()
```
