We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee0a4c6 commit c4f0c1bCopy full SHA for c4f0c1b
Sources/PopupView/PopupView.swift
@@ -451,10 +451,12 @@ public struct Popup<PopupContent: View>: ViewModifier {
451
}
452
453
.onChange(of: sheetContentRect.size) { sheetContentRect in
454
+ #if os(iOS)
455
// check if scrollView has already calculated its height, otherwise sheetContentRect is already non-zero but yet incorrect
456
if case .scroll(_) = type, scrollViewRect.height == 0 {
457
return
458
459
+ #endif
460
positionIsCalculatedCallback()
461
if shouldShowContent.wrappedValue { // already displayed but the size has changed
462
actualCurrentOffset = targetCurrentOffset
0 commit comments