Skip to content

Commit 16b54fe

Browse files
committed
Update documentation about custom views
1 parent ffb94bc commit 16b54fe

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

Sources/PulseUI/PulseUI.docc/PulseUI.md

+17-6
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,31 @@ struct AnalyticsLogsView: View {
5858

5959
var body: some View {
6060
List(messages, id: \.objectID) { message in
61-
VStack(alignment: .leading) {
62-
Text(timeFormatter.string(from: message.createdAt))
63-
.font(.footnote)
64-
.foregroundColor(.secondary)
65-
Text(message.text)
66-
.lineLimit(2)
61+
NavigationLink {
62+
Text("TOOD: your details view here")
63+
} label: {
64+
VStack(alignment: .leading) {
65+
HStack {
66+
Text(timeFormatter.string(from: message.createdAt))
67+
.font(.footnote)
68+
.foregroundColor(.secondary)
69+
Spacer()
70+
ListDisclosureIndicator()
71+
}
72+
Text(message.text)
73+
.lineLimit(2)
74+
}
6775
}
6876
}
77+
.listStyle(.plain)
6978
}
7079
}
7180

7281
private let timeFormatter = DateFormatter(format: "HH:mm:ss.SSS")
7382
```
7483

84+
> tip: For a complete example, see the [Integrations](https://github.com/kean/Pulse/tree/main/Demo/Integrations) demo.
85+
7586
## PulseUI on watchOS
7687

7788
## Topics

0 commit comments

Comments
 (0)