---
title: "MTPackStats | Mobile sdk | Mobile sdk ios | Ios"
description: "Statistics about an offline map pack."
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTPackStats

```
public struct MTPackStats
```

Statistics about an offline map pack.

-   `[expectedSize](#/s:11MapTilerSDK11MTPackStatsV12expectedSizes5Int64Vvp)`
    
    Expected total size in bytes.
    
    #### Declaration
    
    Swift
    
    ```
    public let expectedSize: Int64
    ```
    
-   `[resourceCount](#/s:11MapTilerSDK11MTPackStatsV13resourceCountSivp)`
    
    Expected total number of resources (tiles, glyphs, sprites, style).
    
    #### Declaration
    
    Swift
    
    ```
    public let resourceCount: Int
    ```
    
-   `[tilesPerSource](#/s:11MapTilerSDK11MTPackStatsV14tilesPerSourceSDySSSiGvp)`
    
    Expected number of tiles per source.
    
    #### Declaration
    
    Swift
    
    ```
    public let tilesPerSource: [String : Int]
    ```
    
-   `[init(expectedSize:resourceCount:tilesPerSource:)](#/s:11MapTilerSDK11MTPackStatsV12expectedSize13resourceCount14tilesPerSourceACs5Int64V_SiSDySSSiGtcfc)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public init(expectedSize: Int64, resourceCount: Int, tilesPerSource: [String : Int] = [:])
    ```
