<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/Product/Library",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription7ProductC7LibraryC"
  },
  "title" : "Product.Library"
}
-->

# Product.Library

The library product of a Swift package.

```
final class Library
```

## Topics

### Describing a Library Product

[`let targets: [String]`](/documentation/PackageDescription/Product/Library/targets)

The names of the targets in this product.

[`let type: Product.Library.LibraryType?`](/documentation/PackageDescription/Product/Library/type)

The type of the library.

[`enum LibraryType`](/documentation/PackageDescription/Product/Library/LibraryType)

The different types of a library product.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

### Inherits From

[`Product`](/documentation/PackageDescription/Product)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)