Documentation Language: Swift

Method

getSubpackage(_:)

Retrieves a subpackage by its name.

func getSubpackage(_ name: String) -> EPackage?

Parameters

name

The name of the subpackage to find.

Return Value

The matching subpackage, or nil if not found.

Discussion

Searches only the direct subpackages, not nested subpackages.