---
title: "content(for:)"
framework: proximityreader
role: symbol
role_heading: Instance Method
path: "proximityreader/proximityreaderdiscovery/content(for:)"
---

# content(for:)

Fetches the content for the specified topic.

## Declaration

```swift
final func content(for topic: ProximityReaderDiscovery.Topic) async throws -> ProximityReaderDiscovery.Content
```

## Parameters

- `topic`: The topic you want to display.

## Return Value

Return Value The requested content, when successful.

## Discussion

Discussion note: The method throws a ProximityReaderDiscovery.ContentError if it fails to get the content. Call this method to get the content definition for the specified topic. The discovery interface uses the specified identifier to determine what to display.

## See Also

### Fetching the content to display

- [ProximityReaderDiscovery.Topic](proximityreader/proximityreaderdiscovery/topic.md)
- [ProximityReaderDiscovery.Content](proximityreader/proximityreaderdiscovery/content.md)
- [contentList](proximityreader/proximityreaderdiscovery/contentlist.md)
