diff --git a/Sources/EpoxyCore/SwiftUI/EpoxySwiftUIHostingView.swift b/Sources/EpoxyCore/SwiftUI/EpoxySwiftUIHostingView.swift index 0378ee8..c9a7924 100644 --- a/Sources/EpoxyCore/SwiftUI/EpoxySwiftUIHostingView.swift +++ b/Sources/EpoxyCore/SwiftUI/EpoxySwiftUIHostingView.swift @@ -241,6 +241,8 @@ public final class EpoxySwiftUIHostingView: UIView, EpoxyableVie } } + /// Force relayout the UIHostingView and invalidate its intrinsic content size. + /// This is used for updating the view size manually. public func forceLayout() { viewController.view.setNeedsLayout() viewController.view.layoutIfNeeded()