<!--
{
  "availability" : [
    "iOS: 27.2.0 -",
    "iPadOS: 27.2.0 -",
    "macCatalyst: 27.2.0 -",
    "macOS: 27.2.0 -",
    "tvOS: 27.2.0 -",
    "visionOS: 27.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BackgroundAssets",
  "identifier" : "/documentation/BackgroundAssets/AssetPackManager/localVersion(ofAssetPackWithID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Background Assets"
    ],
    "preciseIdentifier" : "s:16BackgroundAssets16AssetPackManagerC12localVersion02ofcD6WithIDSiSS_tKF"
  },
  "title" : "localVersion(ofAssetPackWithID:)"
}
-->

# localVersion(ofAssetPackWithID:)

Returns a locally available asset pack’s version number.

```
nonisolated func localVersion(ofAssetPackWithID assetPackID: String) throws -> Int
```

## Parameters

`assetPackID`

The asset pack’s ID.

## Return Value

The asset pack’s version number.

## Discussion> Throws: ``doc://com.apple.backgroundassets/documentation/BackgroundAssets/ManagedBackgroundAssetsError/assetPackNotFound(withID:)`` when no asset pack with the specified ID is available locally.

---

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)