# swatch Icon

> The swatch icon from Heroicons as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Heroicons](https://composables.com/icons/icon-libraries/heroicons.md)
- License: MIT (full text in the [Heroicons library page](https://composables.com/icons/icon-libraries/heroicons.md))
- Styles: [Outline](https://composables.com/icons/icon-libraries/heroicons/swatch.md?v=outline), [Solid](https://composables.com/icons/icon-libraries/heroicons/swatch.md?v=solid), [Mini](https://composables.com/icons/icon-libraries/heroicons/swatch.md?v=mini), [Micro](https://composables.com/icons/icon-libraries/heroicons/swatch.md?v=micro)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/swatch.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeJoin
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val HeroiconsSwatch: ImageVector
    get() {
        if (_HeroiconsSwatch != null) return _HeroiconsSwatch!!
        
        _HeroiconsSwatch = ImageVector.Builder(
            name = "swatch",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 1.5f,
                strokeLineJoin = StrokeJoin.Miter
            ) {
                moveTo(4.098f, 19.902f)
                arcToRelative(3.75f, 3.75f, 0f, false, false, 5.304f, 0f)
                lineToRelative(6.401f, -6.402f)
                moveTo(6.75f, 21f)
                arcTo(3.75f, 3.75f, 0f, false, true, 3f, 17.25f)
                verticalLineTo(4.125f)
                curveTo(3f, 3.504f, 3.504f, 3f, 4.125f, 3f)
                horizontalLineToRelative(5.25f)
                curveToRelative(0.621f, 0f, 1.125f, 0.504f, 1.125f, 1.125f)
                verticalLineToRelative(4.072f)
                moveTo(6.75f, 21f)
                arcToRelative(3.75f, 3.75f, 0f, false, false, 3.75f, -3.75f)
                verticalLineTo(8.197f)
                moveTo(6.75f, 21f)
                horizontalLineToRelative(13.125f)
                curveToRelative(0.621f, 0f, 1.125f, -0.504f, 1.125f, -1.125f)
                verticalLineToRelative(-5.25f)
                curveToRelative(0f, -0.621f, -0.504f, -1.125f, -1.125f, -1.125f)
                horizontalLineToRelative(-4.072f)
                moveTo(10.5f, 8.197f)
                lineToRelative(2.88f, -2.88f)
                curveToRelative(0.438f, -0.439f, 1.15f, -0.439f, 1.59f, 0f)
                lineToRelative(3.712f, 3.713f)
                curveToRelative(0.44f, 0.44f, 0.44f, 1.152f, 0f, 1.59f)
                lineToRelative(-2.879f, 2.88f)
                moveTo(6.75f, 17.25f)
                horizontalLineToRelative(0.008f)
                verticalLineToRelative(0.008f)
                horizontalLineTo(6.75f)
                verticalLineToRelative(-0.008f)
                close()
            }
        }.build()
        
        return _HeroiconsSwatch!!
    }

private var _HeroiconsSwatch: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/swatch.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:strokeColor="@android:color/black"
        android:strokeWidth="1.5"
        android:pathData="M4.098,19.902a3.75,3.75 0 0,0 5.304,0l6.401,-6.402M6.75,21A3.75,3.75 0 0,1 3,17.25V4.125C3,3.504 3.504,3 4.125,3h5.25c0.621,0 1.125,0.504 1.125,1.125v4.072M6.75,21a3.75,3.75 0 0,0 3.75,-3.75V8.197M6.75,21h13.125c0.621,0 1.125,-0.504 1.125,-1.125v-5.25c0,-0.621 -0.504,-1.125 -1.125,-1.125h-4.072M10.5,8.197l2.88,-2.88c0.438,-0.439 1.15,-0.439 1.59,0l3.712,3.713c0.44,0.44 0.44,1.152 0,1.59l-2.879,2.88M6.75,17.25h0.008v0.008H6.75v-0.008Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/swatch.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"><path stroke-linecap="round" stroke-linejoin="round" d="M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88c.438-.439 1.15-.439 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008Z"/></svg>
```
