---
title: dataSize
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phassetresource/datasize-5lxva
---

# dataSize

The size of the resource in bytes if known, nil if unavailable (may not be available until resource download/processing is complete)

## Declaration

```swift
var dataSize: Int? { get }
```
