Contents

sources

The source files in this target.

Declaration

final var sources: [String]?

Discussion

If this property is nil, Swift Package Manager includes all valid source files in the target’s path and treats specified paths as relative to the target’s path.

A path can be a path to a directory or an individual source file. In case of a directory, Swift Package Manager searches for valid source files recursively inside it.

See Also

Configuring File Locations