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

# subscript(dynamicMember:)

Gets or sets custom duration properties.

## Declaration

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

## Parameters

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

## Overview

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