---
title: "watchOS(_:)"
framework: swift-package-manager
role: symbol
role_heading: Type Method
path: "swift-package-manager/documentation/packagedescription/supportedplatform/watchos(_:)-4lrx0"
---

# watchOS(_:)

Configure the minimum deployment target version for the watchOS platform using a custom version string.

## Declaration

```swift
static func watchOS(_ versionString: String) -> SupportedPlatform
```

## Parameters

- `versionString`: The minimum deployment target as a string representation of two or three dot-separated integers, such as 2.0.1.

## Return Value

Return Value A SupportedPlatform instance.

## Discussion

Discussion The version string must be a series of two or three dot-separated integers, such as 2.0 or 2.0.1. note: First available in PackageDescription 5.0

## See Also

### Supporting watchOS

- [watchOS(_:)](swift-package-manager/documentation/packagedescription/supportedplatform/watchos(_:)-t998.md)
- [watchOS](swift-package-manager/documentation/packagedescription/platform/watchos.md)
- [SupportedPlatform.WatchOSVersion](swift-package-manager/documentation/packagedescription/supportedplatform/watchosversion.md)
