---
title: SizeCalculationMethod.allocated
framework: Background Assets
role: symbol
role_heading: Case
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, macOS 27.2+, tvOS 27.2+, visionOS 27.2+]
path: backgroundassets/sizecalculationmethod/allocated
---

# SizeCalculationMethod.allocated

A calculation method that counts the number of bytes that the file system allocated for a file.

## Declaration

```swift
case allocated
```

## Discussion

Discussion The result of an “allocated” size calculation for a file roughly corresponds to the number of bytes that would newly be made available if the file were removed.
