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

# max()

## Declaration

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