# Workspace​Window​Actions95

Environment actions that close or minimize the containing logical window.

WorkspaceWindowActions95 gives deeply nested content a route-independent way to target the window currently hosting it.

## Use it

```swift
import Swift95
import SwiftUI

struct WorkspaceWindowActions95Example: View {
  @Environment(\.workspaceWindow95) private var window

  var body: some View {
    HStack {
      Button95("Minimize") { window.minimize() }
      Button95("Close") { window.close() }
    }
  }
}
```

## Essential behavior

**Context**The nearest [WorkspaceWindow95](/components/workspace-window/) host supplies the actions.

**No-op**Default environment actions safely do nothing outside a workspace window.

**Capabilities**Only expose controls that match the window’s configured capabilities.

## Related

- [WorkspaceWindow95](/components/workspace-window/)
- [WorkspaceWindowConfiguration95](/components/workspace-window-configuration/)
- [Button95](/components/button/)

[Open the complete WorkspaceWindowActions95 API reference →](/api/documentation/swift95/workspacewindowactions95)
