Skip to content

Commit 4d1e40e

Browse files
Updated the docs for more actions view
1 parent a24ef27 commit 4d1e40e

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

docusaurus/docs/iOS/swiftui/components/swipe-actions-channels.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,22 @@ If the user interface or logic don't match your app's requirements, you can easi
8181
```swift
8282
func makeMoreChannelActionsView(
8383
for channel: ChatChannel,
84+
swipedChannelId: Binding<String?>,
8485
onDismiss: @escaping () -> Void,
85-
onError: @escaping (Error) -> Void) -> some View {
86-
VStack {
87-
Text("This is our custom view")
88-
Spacer()
89-
HStack {
90-
Button {
91-
onDismiss()
92-
} label: {
93-
Text("Action")
94-
}
95-
86+
onError: @escaping (Error) -> Void
87+
) -> some View {
88+
VStack {
89+
Text("This is our custom view")
90+
Spacer()
91+
HStack {
92+
Button {
93+
onDismiss()
94+
} label: {
95+
Text("Action")
9696
}
97-
.padding()
9897
}
98+
.padding()
99+
}
99100
}
100101
```
101102

0 commit comments

Comments
 (0)