Skip to content

Commit

Permalink
Patch 2.7.1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
FulcrumOne authored Sep 11, 2024
1 parent eee37c2 commit 60ebc93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/Internal/Views/PopupBottomStackView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
4 changes: 2 additions & 2 deletions Sources/Internal/Views/PopupTopStackView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 60ebc93

Please sign in to comment.