---
title: "state(for:)"
framework: UIKit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.1+, iPadOS 27.1+]
path: "uikit/uiarrangementviewcontroller/state(for:)"
---

# state(for:)

Returns the view state for a placement in the arrangement.

## Declaration

```swift
@MainActor @preconcurrency final func state(for placement: UIArrangementViewController.ViewPlacement) -> UIArrangementViewController.ViewState?
```

## Parameters

- `placement`: The placement of the view controller.

## See Also

### Getting view state

- [UIArrangementViewController.ViewState](uikit/uiarrangementviewcontroller/viewstate.md)
