# Workspace​State95

Serializable logical window order, activation, minimization, and frames.

WorkspaceState95 lets an app own and restore the exact state that [Workspace95](/components/workspace/) would otherwise keep transiently.

## Use it

```swift
import Swift95

private enum Route: Hashable {
  case notes
  case settings
}

private struct WorkspaceStateExample {
  var state = WorkspaceState95<Route>(
    openWindows: [.notes, .settings],
    activeWindow: .notes
  )
}
```

## Essential behavior

**Binding**Pass a Binding to [Workspace95](/components/workspace/) to observe and control its state.

**Normalization**Initialization removes duplicate routes and repairs order invariants.

**Persistence**The type is Codable when Route is Codable.

## Related

- [Workspace95](/components/workspace/)
- [DesktopState95](/components/desktop-state/)
- [WorkspacePresentation95](/components/workspace-presentation/)

[Open the complete WorkspaceState95 API reference →](/api/documentation/swift95/workspacestate95)
