Add changelog.d file

This commit is contained in:
Alfonso Grillo
2023-01-13 10:54:56 +01:00
parent b549f5e4d8
commit bd85e7aa20
3 changed files with 1 additions and 21 deletions
@@ -26,9 +26,6 @@ final class PollHistoryCoordinator: Coordinator, Presentable {
private let pollHistoryHostingController: UIViewController
private var pollHistoryViewModel: PollHistoryViewModelProtocol
private var indicatorPresenter: UserIndicatorTypePresenterProtocol
private var loadingIndicator: UserIndicator?
// Must be used only internally
var childCoordinators: [Coordinator] = []
var completion: (() -> Void)?
@@ -41,8 +38,6 @@ final class PollHistoryCoordinator: Coordinator, Presentable {
let view = PollHistory(viewModel: viewModel.context)
pollHistoryViewModel = viewModel
pollHistoryHostingController = VectorHostingController(rootView: view)
indicatorPresenter = UserIndicatorTypePresenter(presentingViewController: pollHistoryHostingController)
}
// MARK: - Public
@@ -57,19 +52,4 @@ final class PollHistoryCoordinator: Coordinator, Presentable {
func toPresentable() -> UIViewController {
pollHistoryHostingController
}
// MARK: - Private
/// Show an activity indicator whilst loading.
/// - Parameters:
/// - label: The label to show on the indicator.
/// - isInteractionBlocking: Whether the indicator should block any user interaction.
private func startLoading(label: String = VectorL10n.loading, isInteractionBlocking: Bool = true) {
loadingIndicator = indicatorPresenter.present(.loading(label: label, isInteractionBlocking: isInteractionBlocking))
}
/// Hide the currently displayed activity indicator.
private func stopLoading() {
loadingIndicator = nil
}
}