From 60ebc93bbcf06d78b0123389e641c3a451c80f65 Mon Sep 17 00:00:00 2001 From: "Tomasz K." Date: Wed, 11 Sep 2024 23:24:46 +0200 Subject: [PATCH] Patch 2.7.1 KNOWN ISSUES: - There are certain problems with the smoothness of animations in iOS 18. We are working to fix them as soon as possible. fix: - Fixed animations when resizing the popup with a drag gesture --- Sources/Internal/Views/PopupBottomStackView.swift | 4 ++-- Sources/Internal/Views/PopupTopStackView.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Internal/Views/PopupBottomStackView.swift b/Sources/Internal/Views/PopupBottomStackView.swift index 5354201af4..230a2076f6 100644 --- a/Sources/Internal/Views/PopupBottomStackView.swift +++ b/Sources/Internal/Views/PopupBottomStackView.swift @@ -157,9 +157,9 @@ private extension PopupBottomStackView { func calculateTargetDragHeight(_ targetHeight: CGFloat, _ lastPopupHeight: CGFloat) -> CGFloat { targetHeight - lastPopupHeight } - func updateDragHeight(_ targetDragHeight: CGFloat) { if let id = items.last?.id { + func updateDragHeight(_ targetDragHeight: CGFloat) { if let id = items.last?.id { DispatchQueue.main.async { dragHeights[id] = targetDragHeight - }} + }}} func resetGestureTranslation() { let resetAfter = items.count == 1 && shouldDismissPopup() ? 0.25 : 0 DispatchQueue.main.asyncAfter(deadline: .now() + resetAfter) { gestureTranslation = 0 } diff --git a/Sources/Internal/Views/PopupTopStackView.swift b/Sources/Internal/Views/PopupTopStackView.swift index 8f4a831cec..081639509f 100644 --- a/Sources/Internal/Views/PopupTopStackView.swift +++ b/Sources/Internal/Views/PopupTopStackView.swift @@ -153,9 +153,9 @@ private extension PopupTopStackView { func calculateTargetDragHeight(_ targetHeight: CGFloat, _ lastPopupHeight: CGFloat) -> CGFloat { targetHeight - lastPopupHeight } - func updateDragHeight(_ targetDragHeight: CGFloat) { if let id = items.last?.id { + func updateDragHeight(_ targetDragHeight: CGFloat) { if let id = items.last?.id { DispatchQueue.main.async { dragHeights[id] = targetDragHeight - }} + }}} func resetGestureTranslation() { let resetAfter = items.count == 1 && shouldDismissPopup() ? 0.25 : 0 DispatchQueue.main.asyncAfter(deadline: .now() + resetAfter) { gestureTranslation = 0 }