Skip to content

[codex] Hook intrinsic content size invalidation#67

Draft
muukii wants to merge 1 commit intomainfrom
muukii/hook-invalidation
Draft

[codex] Hook intrinsic content size invalidation#67
muukii wants to merge 1 commit intomainfrom
muukii/hook-invalidation

Conversation

@muukii
Copy link
Copy Markdown
Collaborator

@muukii muukii commented Apr 24, 2026

Summary

  • Observe UIView.invalidateIntrinsicContentSize() for Rideau content descendants.
  • Schedule a debounced self-sizing update when .autoPointsFromBottom content invalidates its intrinsic size.
  • Enable the observer only when the Rideau configuration contains .autoPointsFromBottom.

Why

SwiftUI hosted content can change intrinsic size without an explicit requestRideauSelfSizingUpdate(). Hooking intrinsic invalidation lets auto snap points follow those updates automatically while keeping explicit requests as a fallback.

Validation

  • Built RideauDemo for iOS Simulator with XcodeBuildMCP.
  • Verified the SwiftUI autoPoints demo expands/shrinks without an explicit sizing request.

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