From ffa090e1c6e630bf397bdcf7ea1e62c9a31ad90c Mon Sep 17 00:00:00 2001 From: Tomasz Kurylik Date: Thu, 7 Nov 2024 22:59:31 +0100 Subject: [PATCH] 1 --- Tests/Tests+ViewModel+PopupCentreStack.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Tests+ViewModel+PopupCentreStack.swift b/Tests/Tests+ViewModel+PopupCentreStack.swift index b15a24662..8326e726b 100644 --- a/Tests/Tests+ViewModel+PopupCentreStack.swift +++ b/Tests/Tests+ViewModel+PopupCentreStack.swift @@ -252,9 +252,9 @@ private extension PopupCentreStackViewModelTests { popupPadding: popupPadding, cornerRadius: cornerRadius )} - func recalculatePopupHeights(_ viewModel: ViewModel) -> [AnyPopup] { viewModel.popups.map { - $0.settingHeight(viewModel.t_calculateHeight(heightCandidate: $0.height!)) - }} + func updatePopups(_ viewModel: ViewModel) async { + for popup in viewModel.popups { await viewModel.recalculateAndUpdatePopupHeight(popup.height!, popup) } + } } // MARK: Screen