<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DiskImageKit",
  "identifier" : "/documentation/DiskImageKit/DiskImage/size",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "DiskImageKit"
    ],
    "preciseIdentifier" : "s:12DiskImageKit0aB0C4sizeSivp"
  },
  "title" : "size"
}
-->

# size

The logical size of the disk image in bytes.

```
var size: Int { get }
```

## Discussion

This is equivalent to [`blockCount`](/documentation/DiskImageKit/DiskImage/blockCount) × [`blockSize`](/documentation/DiskImageKit/DiskImage/blockSize-swift.property).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)