Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
FulcrumOne committed Nov 7, 2024
1 parent 96163e0 commit 6032833
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Internal/View Models/ViewModel+VerticalStack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ private extension VM.VerticalStack {

// MARK: Recalculate Popup Height
private extension VM.VerticalStack {
func _recalculatePopupHeight(_ heightCandidate: CGFloat, _ popup: AnyPopup) -> CGFloat {
guard gestureTranslation.isZero, heightCandidate != popup.height else { return popup.height ?? 0 }
nonisolated func _recalculatePopupHeight(_ heightCandidate: CGFloat, _ popup: AnyPopup) async -> CGFloat {
guard await gestureTranslation.isZero, heightCandidate != popup.height else { return popup.height ?? 0 }

let popupHeight = calculateNewPopupHeight(heightCandidate, popup.config)
let popupHeight = await calculateNewPopupHeight(heightCandidate, popup.config)
return popupHeight
}
}
Expand Down

0 comments on commit 6032833

Please sign in to comment.