---
title: "custom(_:)"
framework: swift-package-manager
role: symbol
role_heading: Type Method
path: "swift-package-manager/documentation/packagedescription/platform/custom(_:)"
---

# custom(_:)

Creates a custom platform.

## Declaration

```swift
static func custom(_ platformName: String) -> Platform
```

## Parameters

- `platformName`: The name of the platform.

## Return Value

Return Value A Platform instance.

## Discussion

Discussion Use this function if none of the predefined platform names match the platform you are targeting.
