Skip to content

Fix bug where the content is not visible initially#4

Open
benlenarts wants to merge 2 commits intowoxtu:mainfrom
Q42:fix/initial-content-configuration
Open

Fix bug where the content is not visible initially#4
benlenarts wants to merge 2 commits intowoxtu:mainfrom
Q42:fix/initial-content-configuration

Conversation

@benlenarts
Copy link

When using the backport outside of the context of UICollectionViewCell, I noticed that the result of makeContentView() is an empty view. After setting configuration on that view the SwiftUI content appears.

This behavior is different from UIHostingConfiguration, which shows the SwiftUI content immediately.

This seems to be an oversight, because all it takes to fix this is to trigger the didSet block in the initializer.

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

Comments