<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntentsTesting",
  "identifier" : "/documentation/AppIntentsTesting/DynamicPropertyPathCollection",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents Testing"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting29DynamicPropertyPathCollectionV"
  },
  "title" : "DynamicPropertyPathCollection"
}
-->

# DynamicPropertyPathCollection

Indexed result items from an intent value query.

```
struct DynamicPropertyPathCollection
```

## Overview

Access query results by index and navigate their properties using dynamic
member lookup:

```swift
let result = try await searchQuery.values(for: "Arizona")

XCTAssertEqual(result.items.count, 3)
XCTAssertEqual(try result.items[0].name, "Botanical Garden")
```

## Topics

### Instance Properties

[`var count: Int`](/documentation/AppIntentsTesting/DynamicPropertyPathCollection/count)

The number of items in the collection.

[`var isEmpty: Bool`](/documentation/AppIntentsTesting/DynamicPropertyPathCollection/isEmpty)

A Boolean value that indicates whether the collection is empty.

### Subscripts

[`subscript<T>(Int) -> T`](/documentation/AppIntentsTesting/DynamicPropertyPathCollection/subscript(_:)-6t8mq)

Accesses typed properties from the intent value at the given index.

[`subscript(Int) -> DynamicPropertyPath`](/documentation/AppIntentsTesting/DynamicPropertyPathCollection/subscript(_:)-700kp)

Creates a dynamic path for navigating into the item’s properties.

[`subscript(Int) -> (any IntentValueExpressing)?`](/documentation/AppIntentsTesting/DynamicPropertyPathCollection/subscript(_:)-8h9mv)

Accesses an item for nil checking and assigning to intent parameters without casting.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)