# switch_camera Icon

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

- Library: [Material Icons](https://composables.com/icons/icon-libraries/material-icons.md)
- License: Apache 2.0 (full text in the [Material Icons library page](https://composables.com/icons/icon-libraries/material-icons.md))
- Styles: [Filled](https://composables.com/icons/icon-libraries/material-icons/switch_camera.md?v=filled), [Outlined](https://composables.com/icons/icon-libraries/material-icons/switch_camera.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-icons/switch_camera.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-icons/switch_camera.md?v=sharp), [Two-Tone](https://composables.com/icons/icon-libraries/material-icons/switch_camera.md?v=twotone)
- Categories: [Image](https://composables.com/icons/categories/image.md)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-icons/switch_camera.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 MaterialIconsSwitchCamera: ImageVector
    get() {
        if (_MaterialIconsSwitchCamera != null) return _MaterialIconsSwitchCamera!!
        
        _MaterialIconsSwitchCamera = ImageVector.Builder(
            name = "switch_camera",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent)
            ) {
                moveTo(0f, 0f)
                horizontalLineToRelative(24f)
                verticalLineToRelative(24f)
                horizontalLineTo(0f)
                verticalLineTo(0f)
                close()
            }
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(20f, 4f)
                horizontalLineToRelative(-3.17f)
                lineTo(15f, 2f)
                horizontalLineTo(9f)
                lineTo(7.17f, 4f)
                horizontalLineTo(4f)
                curveToRelative(-1.1f, 0f, -2f, 0.9f, -2f, 2f)
                verticalLineToRelative(12f)
                curveToRelative(0f, 1.1f, 0.9f, 2f, 2f, 2f)
                horizontalLineToRelative(16f)
                curveToRelative(1.1f, 0f, 2f, -0.9f, 2f, -2f)
                verticalLineTo(6f)
                curveToRelative(0f, -1.1f, -0.9f, -2f, -2f, -2f)
                close()
                moveTo(9.88f, 4f)
                horizontalLineToRelative(4.24f)
                lineToRelative(1.83f, 2f)
                horizontalLineTo(20f)
                verticalLineToRelative(12f)
                horizontalLineTo(4f)
                verticalLineTo(6f)
                horizontalLineToRelative(4.05f)
            }
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(15f, 11f)
                horizontalLineTo(9f)
                verticalLineTo(8.5f)
                lineTo(5.5f, 12f)
                lineTo(9f, 15.5f)
                verticalLineTo(13f)
                horizontalLineToRelative(6f)
                verticalLineToRelative(2.5f)
                lineToRelative(3.5f, -3.5f)
                lineTo(15f, 8.5f)
                close()
            }
        }.build()
        
        return _MaterialIconsSwitchCamera!!
    }

private var _MaterialIconsSwitchCamera: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-icons/switch_camera.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:pathData="M0,0h24v24H0V0Z" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M20,4h-3.17L15,2H9L7.17,4H4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V6c0,-1.1 -0.9,-2 -2,-2ZM9.88,4h4.24l1.83,2H20v12H4V6h4.05" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M15,11H9V8.5L5.5,12L9,15.5V13h6v2.5l3.5,-3.5L15,8.5Z" />
</vector>
```

## SVG

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

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM9.88 4h4.24l1.83 2H20v12H4V6h4.05"/><path d="M15 11H9V8.5L5.5 12 9 15.5V13h6v2.5l3.5-3.5L15 8.5z"/></svg>
```
