---
title: Optional.none
framework: swift
role: symbol
role_heading: Case
path: swift/optional/none
---

# Optional.none

The absence of a value.

## Declaration

```swift
case none
```

## Discussion

Discussion In code, the absence of a value is typically written using the nil literal rather than the explicit .none enumeration case.

## See Also

### Creating a Nil Value

- [init(nilLiteral:)](swift/optional/init(nilliteral:).md)
