---
title: "MTOfflineEstimator | Mobile sdk | Mobile sdk ios | Ios"
description: "Provides estimation for offline pack size and resource counts."
---

> 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.

# MTOfflineEstimator

```
public struct MTOfflineEstimator : Sendable
```

Provides estimation for offline pack size and resource counts.

-   `[init()](#/s:11MapTilerSDK18MTOfflineEstimatorVACycfc)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public init()
    ```
    
-   `[estimatePack(region:)](#/s:11MapTilerSDK18MTOfflineEstimatorV12estimatePack6regionAA11MTPackStatsVAA0D16RegionDefinitionV_tYaKF)` Asynchronous
    
    Estimates the size and resource count for a given region definition.
    
    This method may fetch the style JSON and other metadata if needed to provide a more accurate estimate.
    
    Throws
    
    An error if style fetching or parsing fails.
    
    #### Declaration
    
    Swift
    
    ```
    public func estimatePack(region: MTOfflineRegionDefinition) async throws -> MTPackStats
    ```
    
    #### Parameters
    
    <table class="graybox"><tbody><tr><td><code><em>region</em></code></td><td><div><p>The definition of the region to estimate.</p></div></td></tr></tbody></table>
    
    #### Return Value
    
    An `[MTPackStats](https://docs.maptiler.com/mobile-sdk/ios/api/Structs/MTPackStats/)` object containing the estimates.
