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.
When using the backport outside of the context of
UICollectionViewCell
, I noticed that the result ofmakeContentView()
is an empty view. After settingconfiguration
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.