---
title: Context
framework: swift-package-manager
role: symbol
role_heading: Structure
path: swift-package-manager/documentation/packagedescription/context
---

# Context

The context information for a Swift package.

## Declaration

```swift
struct Context
```

## Overview

Overview The context encapsulates states that are known when Swift Package Manager interprets the package manifest, for example the location in the file system where the current package resides.

## Topics

### Type Properties

- [environment](swift-package-manager/documentation/packagedescription/context/environment.md)
- [gitInformation](swift-package-manager/documentation/packagedescription/context/gitinformation.md)
- [packageDirectory](swift-package-manager/documentation/packagedescription/context/packagedirectory.md)

## Relationships

### Conforms To

- Swift.Sendable
- Swift.SendableMetatype

## See Also

### Creating a Package

- [Package](swift-package-manager/documentation/packagedescription/package.md)
