Explicitly pass the context into the cell's environment. (#539)

This commit is contained in:
Doug
2023-02-06 15:55:00 +00:00
committed by GitHub
parent 1cac46b11e
commit 1fbb285576
2 changed files with 2 additions and 0 deletions

View File

@@ -197,6 +197,7 @@ class TimelineTableViewController: UIViewController {
.id(timelineItem.id)
.frame(maxWidth: .infinity, alignment: .leading)
.opacity(opacity)
.environmentObject(coordinator.context) // Attempted fix at a crash in TimelineItemContextMenu
.onAppear {
coordinator.send(viewAction: .itemAppeared(id: timelineItem.id))
}

1
changelog.d/532.bugfix Normal file
View File

@@ -0,0 +1 @@
Context Menu Crash: Attempted fix by explicitly passing in the context to each cell.