<!--
{
  "availability" : [
    "SwiftPM: 5.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/SupportedPlatform/custom(_:versionString:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription17SupportedPlatformV6custom_13versionStringACSS_SStFZ"
  },
  "title" : "custom(_:versionString:)"
}
-->

# custom(_:versionString:)

Configures the minimum deployment target version for custom platforms.

```
static func custom(_ platformName: String, versionString: String) -> SupportedPlatform
```

## Parameters

`platformName`

The name of the platform.

`versionString`

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

## Return Value

A `SupportedPlatform` instance.

## Discussion> Since: First available in PackageDescription 5.6

---

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)