Merge pull request #6381 from vector-im/ismail/fix_vectorhostingcontroller_loop

This commit is contained in:
ismailgulek
2022-07-07 10:50:24 +03:00
committed by GitHub
3 changed files with 27 additions and 96 deletions
@@ -86,9 +86,8 @@ final class TimelinePollCoordinator: Coordinator, Presentable, PollAggregatorDel
}
func toPresentable() -> UIViewController {
let controller = VectorHostingController(rootView: TimelinePollView(viewModel: viewModel.context))
controller.forceZeroSafeAreaInsets = true
return controller
return VectorHostingController(rootView: TimelinePollView(viewModel: viewModel.context),
forceZeroSafeAreaInsets: true)
}
func canEndPoll() -> Bool {