---
title: MPSGraphWhileAfterBlock
framework: metalperformanceshadersgraph
role: symbol
role_heading: Type Alias
path: metalperformanceshadersgraph/mpsgraphwhileafterblock
---

# MPSGraphWhileAfterBlock

The block that executes after the condition evaluates for each iteration.

## Declaration

```swift
typealias MPSGraphWhileAfterBlock = ([MPSGraphTensor]) -> [MPSGraphTensor]
```

## Parameters

- `bodyBlockArguments`: Inputs to the body of the while loop passed by the condition block return, and should be the same element types as the return of the while loop.

## Return Value

Return Value A valid MPSGraphTensor array with results forwarded to the condition block.
