# ``CodeEdit/SegmentedControl``

## Usage

```swift
@State var selected: Int = 0
var items: [String] = ["Tab 1", "Tab 2"]

SegmentedControl($selected, options: items)
```

## Preview

![Segmented Control](SegmentedControl_View.png)

## Topics

### Item

- ``SegmentedControlItem``
