Use a view controller for the timeline. (#359)

This exposes lifecycle methods and tidies up the Coordinator.
This commit is contained in:
Doug
2022-12-12 11:21:43 +00:00
committed by GitHub
parent cd40da6c3f
commit 1791993560
6 changed files with 541 additions and 488 deletions
@@ -63,12 +63,6 @@ struct RoomScreenViewState: BindableState {
}
let scrollToBottomPublisher = PassthroughSubject<Void, Never>()
/// Returns the opacity that the supplied timeline item's cell should be.
func opacity(for item: RoomTimelineViewProvider) -> CGFloat {
guard case let .reply(selectedItemID, _) = composerMode else { return 1.0 }
return selectedItemID == item.id ? 1.0 : 0.5
}
}
struct RoomScreenViewStateBindings {