<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/SupportedPlatform/watchOS(_:)-4lrx0",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription17SupportedPlatformV7watchOSyACSSFZ"
  },
  "title" : "watchOS(_:)"
}
-->

# watchOS(_:)

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

```
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

A `SupportedPlatform` instance.

## Discussion

The version string must be a series of two or three dot-separated integers, such as `2.0` or `2.0.1`.

> Since: First available in PackageDescription 5.0

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)