Skip to content

fix(ios): guard safe-area helpers against detached NS subtrees - #11325

Open
NathanWalker wants to merge 1 commit into
mainfrom
fix/ios-safe-area-detached-subtrees
Open

fix(ios): guard safe-area helpers against detached NS subtrees#11325
NathanWalker wants to merge 1 commit into
mainfrom
fix/ios-safe-area-detached-subtrees

Conversation

@NathanWalker

Copy link
Copy Markdown
Contributor

Views attached to UIKit but without an NS parent (e.g. a view passed to TabView's iosBottomAccessory, hosted in UITabAccessory.contentView) have no viewController/scrollView ancestor to derive safe-area bounds from. Guard IOSHelper.getAvailableSpaceFromParent against a null parent and have expandBeyondSafeArea return the frame as-is when no reference rect exists, instead of crashing the layout pass.

Views attached to UIKit but without an NS parent (e.g. a view passed to
TabView's `iosBottomAccessory`, hosted in UITabAccessory.contentView) have no
viewController/scrollView ancestor to derive safe-area bounds from. Guard
IOSHelper.getAvailableSpaceFromParent against a null parent and have
expandBeyondSafeArea return the frame as-is when no reference rect exists,
instead of crashing the layout pass.
@nx-cloud

nx-cloud Bot commented Aug 1, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 3a79266

Command Status Duration Result
nx test apps-automated -c=android ✅ Succeeded 3m 36s View ↗
nx run-many --target=test --configuration=ci --... ✅ Succeeded <1s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-08-01 18:15:35 UTC

@NathanWalker NathanWalker added this to the 9.1 milestone Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant