# swift

{% dynamic setvar source_file "src/main/java/com/google/devtools/build/lib/starlarkbuildapi/apple/SwiftConfigurationApi.java" %} {% dynamic setvar version "7.5.0" %} {% dynamic setvar original_path "/rules/lib/fragments/swift" %} {% include "_buttons.html" %} A configuration fragment for Swift tools.

## Members

- copts

## copts

    list swift.copts()

A list of compiler options that should be passed to `swiftc` when compiling Swift code.