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

# max()

## Declaration

```swift
func max() -> Result<Result<Success, Failure>.Publisher.Output, Failure>.Publisher
```
