---
title: Context
framework: packagedescription
role: symbol
role_heading: Structure
path: 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](packagedescription/context/environment.md)
- [gitInformation](packagedescription/context/gitinformation.md)
- [packageDirectory](packagedescription/context/packagedirectory.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating a Package

- [Package](packagedescription/package.md)
