# Interface SwiftPlatform

public interface SwiftPlatform
A target platform for building Swift binaries.

Since:
  4.5

- ## Method Summary

  Modifier and Type
  Method
  Description
  `SwiftVersion`
  `getSourceCompatibility()`
  Returns the Swift language level to use to compile the source files.
  `TargetMachine`
  `getTargetMachine()`
  Returns the target machine for this platform.

- ## Method Details

  - ### getTargetMachine

    TargetMachine getTargetMachine()
    Returns the target machine for this platform.
    Since:
      5.2

  - ### getSourceCompatibility

    SwiftVersion getSourceCompatibility()
    Returns the Swift language level to use to compile the source files.
    Since:
      5.2