Static Methodswift-package-manager 6.0.1PackageDescription
custom(_:)
Creates a custom platform.
SupportedPlatforms.swift:29- SwiftPM
- 5.6+
static func custom(_ platformName: String) -> Platform
Parameters
- platformName
The name of the platform.
Returns
A Platform
instance.
Use this function if none of the predefined platform names match the platform you are targeting.
Other members in extension
Type members
static let android: Platform
The Android platform.
static let driverKit: Platform
The DriverKit platform
static let iOS: Platform
The iOS platform.
static let linux: Platform
The Linux platform.
static let macCatalyst: Platform
The Mac Catalyst platform.
static let macOS: Platform
The macOS platform.
static let openbsd: Platform
The OpenBSD platform.
static let tvOS: Platform
The tvOS platform.
static let visionOS: Platform
The visionOS platform.
static let wasi: Platform
The WebAssembly System Interface platform.
static let watchOS: Platform
The watchOS platform.
static let windows: Platform
The Windows platform.