Skip to content

Commit

Permalink
fix(ios): footer blocking gesture
Browse files Browse the repository at this point in the history
  • Loading branch information
lodev09 committed Mar 25, 2024
1 parent e0dcda4 commit cd21d00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/TrueSheetView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,15 @@ class TrueSheetView: UIView, RCTInvalidating, TrueSheetViewControllerDelegate {

// Pin footer at the bottom
if let footerView {
containerView.bringSubviewToFront(footerView)
if let footerContent = footerView.subviews.first {
containerView.bringSubviewToFront(footerView)
footerView.pinTo(
view: viewController.view,
from: [.bottom, .left, .right],
with: footerContent.bounds.height
)
} else {
containerView.sendSubviewToBack(footerView)
footerView.removeConstraints(footerView.constraints)
}
}
Expand Down

0 comments on commit cd21d00

Please sign in to comment.