---
title: subpartCount
framework: hvf
role: symbol
role_heading: Instance Property
platforms: [iOS 18.4+, iPadOS 18.4+, Mac Catalyst 18.4+, macOS 15.4+, tvOS 18.4+, visionOS 2.4+, watchOS 11.4+]
path: hvf/compositewriter/subpartcount
---

# subpartCount

The number of subparts the part has

## Declaration

```swift
var subpartCount: Int { get set }
```
