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

# SizeCalculationMethod

Methods for calculating a file’s size.

## Declaration

```swift
enum SizeCalculationMethod
```

## Topics

### Enumeration Cases

- [SizeCalculationMethod.allocated](backgroundassets/sizecalculationmethod/allocated.md)
- [SizeCalculationMethod.logical](backgroundassets/sizecalculationmethod/logical.md)

### Initializers

- [init(rawValue:)](backgroundassets/sizecalculationmethod/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
