Skip to content

fix(ios): latch clipping container to prevent overflow-toggle crash on mounted views#29

Open
aljadan wants to merge 1 commit into
fbeccaceci:mainfrom
aljadan:main
Open

fix(ios): latch clipping container to prevent overflow-toggle crash on mounted views#29
aljadan wants to merge 1 commit into
fbeccaceci:mainfrom
aljadan:main

Conversation

@aljadan

@aljadan aljadan commented Jun 26, 2026

Copy link
Copy Markdown

Fix for #28

Comment thread ios/FastSquircleView.mm
if (_props->getClipsContentToBounds()) {
_forcesClippingContainer = YES;
}
return _forcesClippingContainer || [super styleWouldClipOverflowInk];

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could just always return true, but then every squircle gets a backing UIView even when it never clips (not great for perf)
the latch flips on the first time we actually clip and then just stays put so it doesn't toggle while mounted

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