---
title: "subscript(dynamicMember:)"
framework: foundation
role: symbol
role_heading: Instance Subscript
path: "foundation/progressreporter/subscript(dynamicmember:)-9pcsi"
---

# subscript(dynamicMember:)

Gets or sets custom integer properties.

## Declaration

```swift
final subscript<P>(dynamicMember key: KeyPath<ProgressManager.Properties, P.Type>) -> Int where P : ProgressManager.Property, P.Summary == Int, P.Value == Int { get }
```

## Parameters

- `key`: A key path to the custom integer property type.

## Overview

Overview This subscript provides read-write access to custom progress properties where both the value and summary types are Int. If the property has not been set, the getter returns the property’s default value.
