Skip to content

Commit 2cf25f1

Browse files
Updated the docs
1 parent c63c2a8 commit 2cf25f1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docusaurus/docs/iOS/swiftui/components/list-tap-events.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,15 @@ var body: some Scene {
5656
}
5757
```
5858

59-
You can keep the state in the view container that has the `ChatChannelListView` in its body. Also, you can attach alerts and sheets on the `ChatChannelListView` itself, to customize the tap behaviour.
59+
You can keep the state in the view container that has the `ChatChannelListView` in its body. Also, you can attach alerts and sheets on the `ChatChannelListView` itself, to customize the tap behaviour.
60+
61+
## Deep linking
62+
63+
The SwiftUI SDK supports deep linking. For example, when you receive a push notification for a new message, you want to be navigated directly to the channel where the message was sent. In order to do this, you can initalize the `ChatChannelListView` with additional parameter `selectedChannelId`, which can be extracted from the push notification's payload.
64+
65+
```swift
66+
ChatChannelListView(
67+
viewFactory: DemoAppFactory.shared,
68+
selectedChannelId: "someChannelId"
69+
)
70+
```

0 commit comments

Comments
 (0)