---
title: SizeCalculationMethod.logical
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/logical
---

# SizeCalculationMethod.logical

A calculation method that counts the number of bytes in a file.

## Declaration

```swift
case logical
```

## Discussion

Discussion The result of a “logical” size calculation for a file may be greater or less than the actual number of bytes that a file takes up on disk due to file-system features like alignment or compression.
