# swap_horiz Icon

> The swap_horiz icon from Material Symbols as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Material Symbols](https://composables.com/icons/icon-libraries/material-symbols.md)
- License: Apache 2.0 (full text in the [Material Symbols library page](https://composables.com/icons/icon-libraries/material-symbols.md))
- Styles: [Outlined](https://composables.com/icons/icon-libraries/material-symbols/swap_horiz.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-symbols/swap_horiz.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-symbols/swap_horiz.md?v=sharp), [Outlined Filled](https://composables.com/icons/icon-libraries/material-symbols/swap_horiz.md?v=outlined-filled), [Rounded Filled](https://composables.com/icons/icon-libraries/material-symbols/swap_horiz.md?v=rounded-filled), [Sharp Filled](https://composables.com/icons/icon-libraries/material-symbols/swap_horiz.md?v=sharp-filled)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-symbols/swap_horiz.kt`

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

val MaterialSymbolsSwapHoriz: ImageVector
    get() {
        if (_MaterialSymbolsSwapHoriz != null) return _MaterialSymbolsSwapHoriz!!
        
        _MaterialSymbolsSwapHoriz = ImageVector.Builder(
            name = "swap_horiz",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 960f,
            viewportHeight = 960f
        ).apply {
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(280f, 800f)
                lineTo(80f, 600f)
                lineToRelative(200f, -200f)
                lineToRelative(56f, 57f)
                lineToRelative(-103f, 103f)
                horizontalLineToRelative(287f)
                verticalLineToRelative(80f)
                horizontalLineTo(233f)
                lineToRelative(103f, 103f)
                lineToRelative(-56f, 57f)
                close()
                moveToRelative(400f, -240f)
                lineToRelative(-56f, -57f)
                lineToRelative(103f, -103f)
                horizontalLineTo(440f)
                verticalLineToRelative(-80f)
                horizontalLineToRelative(287f)
                lineTo(624f, 217f)
                lineToRelative(56f, -57f)
                lineToRelative(200f, 200f)
                lineToRelative(-200f, 200f)
                close()
            }
        }.build()
        
        return _MaterialSymbolsSwapHoriz!!
    }

private var _MaterialSymbolsSwapHoriz: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-symbols/swap_horiz.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="960"
    android:viewportHeight="960">
    <path
        android:fillColor="@android:color/black"
        android:pathData="M280,800L80,600l200,-200l56,57l-103,103h287v80H233l103,103l-56,57Zm400,-240l-56,-57l103,-103H440v-80h287L624,217l56,-57l200,200l-200,200Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/material-symbols/swap_horiz.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="currentColor"><path d="M280-160 80-360l200-200 56 57-103 103h287v80H233l103 103-56 57Zm400-240-56-57 103-103H440v-80h287L624-743l56-57 200 200-200 200Z"/></svg>
```
