Skip to content

Conversation

MarkVillacampa
Copy link
Member

@MarkVillacampa MarkVillacampa commented Jun 14, 2025

Sometimes the size of the parent view can change after the initial layout. This can happen more often when using PaywallViewController because the UIHostingController can change size after being added to the parent VC and having its AutoLayout constrains set.

With this change, we still only show the image after we've received an initial max width, but we update it when it changes.

Should fix #5285

Copy link
Member

@ajpallares ajpallares left a comment

Choose a reason for hiding this comment

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

Nice trick! Hopefully this will get fixed once and for all! 🙏
The code change makes a lot of sense to me! 👍

@MarkVillacampa MarkVillacampa merged commit c19a847 into main Jun 17, 2025
12 checks passed
@MarkVillacampa MarkVillacampa deleted the image-component-size-change branch June 17, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RevenueCat iOS SDK 5.27.1 and later change paywall v2 configuration resulting in misaligned images
2 participants