search: use lazyvstack
we're gonna need this when expanding search results Changelog-Changed: Use LazyVStack in text search results Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -24,6 +24,7 @@ struct NDBSearchView: View {
|
|||||||
.padding()
|
.padding()
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
|
|
||||||
|
LazyVStack {
|
||||||
ForEach(results, id: \.self) { note in
|
ForEach(results, id: \.self) { note in
|
||||||
EventView(damus: damus_state, event: note)
|
EventView(damus: damus_state, event: note)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
@@ -35,6 +36,7 @@ struct NDBSearchView: View {
|
|||||||
|
|
||||||
ThiccDivider()
|
ThiccDivider()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else if results.count == 0 {
|
} else if results.count == 0 {
|
||||||
HStack {
|
HStack {
|
||||||
|
|||||||
Reference in New Issue
Block a user