An error that provides information about local asset pack availability, distinguishing between successes and failures.
Inspect the ``successes`` property to determine the asset packs for which the system successfully ensured availability. The ``failures`` property provides a dictionary that maps from asset packs to errors that detail why the system couldn’t ensure their local availability.
Members (4)
get · iOS 27.0+
description
TypeScript
get description(): string
Swift declaration
var description: String { get }
A textual representation of this instance.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the `String(describing:)`
initializer. This initializer works with any type, and uses the custom
`description` property for types that conform to
`CustomStringConvertible`:
struct Point: CustomStringConvertible {
let x: Int, y: Int
var description: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(describing: p)
print(s)
// Prints "(21, 30)"
The conversion of `p` to a string in the assignment to `s` uses the
`Point` type's `description` property.
get · iOS 27.0+
errorDescription
TypeScript
get errorDescription(): (string) | null
Swift declaration
var errorDescription: String? { get }
A localized message describing what error occurred.
get · iOS 27.0+
failures
TypeScript
get failures(): NativeMap<AssetPack, NativeError>
Swift declaration
let failures: [AssetPack : any Error]
A dictionary that maps asset packs to errors describing why the system couldn’t ensure their local availability.
get · iOS 27.0+
successes
TypeScript
get successes(): Array<AssetPack>
Swift declaration
let successes: Set<AssetPack>
A set of asset packs for which the system successfully ensured local availability.