---
title: Element
framework: swift
role: symbol
role_heading: Associated Type
path: swift/optionset/element
---

# Element

The element type of the option set.

## Declaration

```swift
associatedtype Element = Self
```

## Discussion

Discussion To inherit all the default implementations from the OptionSet protocol, the Element type must be Self, the default.
