---
title: max()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/simd3/max()-xz2j
---

# max()

The greatest scalar in the vector.

## Declaration

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