|
@ -15,15 +15,17 @@ struct TimelineView: View { |
|
|
|
|
|
|
|
|
var body: some View { |
|
|
var body: some View { |
|
|
ScrollView { |
|
|
ScrollView { |
|
|
ForEach(events, id: \.id) { (ev: NostrEvent) in |
|
|
LazyVStack { |
|
|
let evdet = EventDetailView(event: ev, pool: pool) |
|
|
ForEach(events, id: \.id) { (ev: NostrEvent) in |
|
|
.navigationBarTitle("Thread") |
|
|
let evdet = EventDetailView(event: ev, pool: pool) |
|
|
.padding([.leading, .trailing], 6) |
|
|
.navigationBarTitle("Thread") |
|
|
.environmentObject(profiles) |
|
|
.padding([.leading, .trailing], 6) |
|
|
NavigationLink(destination: evdet) { |
|
|
.environmentObject(profiles) |
|
|
EventView(event: ev, highlight: .none, has_action_bar: true) |
|
|
NavigationLink(destination: evdet) { |
|
|
|
|
|
EventView(event: ev, highlight: .none, has_action_bar: true) |
|
|
|
|
|
} |
|
|
|
|
|
.buttonStyle(PlainButtonStyle()) |
|
|
} |
|
|
} |
|
|
.buttonStyle(PlainButtonStyle()) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.padding([.leading, .trailing], 6) |
|
|
.padding([.leading, .trailing], 6) |
|
|