---
title: max()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/simd/max()-7j0po
---

# max()

The greatest scalar in the vector.

## Declaration

```swift
func max() -> Self.Scalar
```
