Enumeration

Target.TargetType

The different types of a target.

Declaration

enum Target.TargetType : String, Encodable

Topics

Enumeration Cases

case regular

A target that contains code for the Swift package’s functionality.

case system

A target that adapts a library on the system to work with Swift packages.

case test

A target that contains tests for the Swift package’s other targets.

Encoding and Decoding

func encode(to: Encoder)

Encodes this value into the given encoder, when the type’s RawValue is String.

Hashing

func hash(into: inout Hasher)

Hashes the target type by feeding the item into the given hasher.

var hashValue: Int

The target type’s hash value.

Operator Functions

static func != (Target.TargetType, Target.TargetType) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Instance Properties

Relationships

Conforms To

See Also

Describing the Target Type

var isTest: Bool

A boolean value that indicates if this is a test target.

let type: Target.TargetType

The type of the target.