<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ShazamKit",
  "identifier" : "/documentation/ShazamKit/SHLibrary",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ShazamKit"
    ],
    "preciseIdentifier" : "s:9ShazamKit9SHLibraryC"
  },
  "title" : "SHLibrary"
}
-->

# SHLibrary

An object that represents a user’s synced Shazam library.

```
final class SHLibrary
```

## Topics

### Managing the items in the library

[`static let `default`: SHLibrary`](/documentation/ShazamKit/SHLibrary/default)

An instance of the default Shazam library.

[`func addItems([SHMediaItem]) async throws`](/documentation/ShazamKit/SHLibrary/addItems(_:))

Adds an array of media items to the user’s Shazam library.

[`func removeItems([SHMediaItem]) async throws`](/documentation/ShazamKit/SHLibrary/removeItems(_:))

Removes an array of media items from the user’s Shazam library.

[`var items: [SHMediaItem]`](/documentation/ShazamKit/SHLibrary/items)

The list of synced items in the Media Library.

## Relationships

### Conforms To

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

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

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

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

[`Observable`](/documentation/Observation/Observable)

---

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)