---
title: first()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/optional/publisher-swift.struct/first()
---

# first()

## Declaration

```swift
func first() -> Optional<Wrapped>.Publisher
```
