Contents

assetPack(withID:)

Returns the asset pack with the given ID.

Declaration

func assetPack(withID id: String) async throws -> AssetPack

Parameters

  • id:

    The asset pack’s ID.

Mentioned in

Return Value

The asset pack.

Discussion

This method may attempt to get the latest asset-pack information from the server if the system hasn’t cached that information locally. To force the system to get the latest information from the server unconditionally, call checkForUpdates().

See Also

Accessing asset packs