diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-04-22 21:49:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-22 11:49:20 -0700 |
commit | b1550f9c0296704df5f3fcf73b869f0f7cc55f73 (patch) | |
tree | 67fa06c2afdebfa4d030494824f721b8ba23610d /modules/bottom-sheet/ios/SheetView.swift | |
parent | dba0bd83799275fb5ced42f9f938233a4385ff0d (diff) | |
download | voidsky-b1550f9c0296704df5f3fcf73b869f0f7cc55f73.tar.zst |
fix first sheet height change not registering (#8267)
Diffstat (limited to 'modules/bottom-sheet/ios/SheetView.swift')
-rw-r--r-- | modules/bottom-sheet/ios/SheetView.swift | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/bottom-sheet/ios/SheetView.swift b/modules/bottom-sheet/ios/SheetView.swift index 2223a5a8c..b6df8d7d2 100644 --- a/modules/bottom-sheet/ios/SheetView.swift +++ b/modules/bottom-sheet/ios/SheetView.swift @@ -144,7 +144,8 @@ class SheetView: ExpoView, UISheetPresentationControllerDelegate { } func updateLayout() { - if self.prevLayoutDetentIdentifier == self.selectedDetentIdentifier, + // Allow updates either when identifiers match OR when prevLayoutDetentIdentifier is nil (first real content update) + if (self.prevLayoutDetentIdentifier == self.selectedDetentIdentifier || self.prevLayoutDetentIdentifier == nil), let contentHeight = self.innerView?.subviews.first?.frame.size.height { self.sheetVc?.updateDetents(contentHeight: self.clampHeight(contentHeight), preventExpansion: self.preventExpansion) |