---
title: "exact(_:)"
framework: swift-package-manager
role: symbol
role_heading: Type Method
path: "swift-package-manager/documentation/packagedescription/package/dependency/requirement-swift.enum/exact(_:)"
---

# exact(_:)

Returns a requirement for the given exact version.

## Declaration

```swift
static func exact(_ version: Version) -> Package.Dependency.Requirement
```

## Parameters

- `version`: The exact version of the dependency for this requirement.

## Discussion

Discussion Specifying exact version requirements are not recommended as they can cause conflicts in your dependency graph when multiple other packages depend on a package. As Swift packages follow the semantic versioning convention, think about specifying a version range instead. The following example defines a version requirement that requires version 1.2.3 of a package. .exact(“1.2.3”)
