---
title: function
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/shader/function
---

# function

The shader function called by the shader.

## Declaration

```swift
var function: ShaderFunction
```

## See Also

### Getting the shader function

- [arguments](swiftui/shader/arguments.md)
