From b3dd08d535117fdc9224f12e3bd112e687456da2 Mon Sep 17 00:00:00 2001 From: Shengqi Zhu Date: Thu, 15 Aug 2024 09:09:22 +0800 Subject: [PATCH] Add comments --- Sources/EpoxyCore/SwiftUI/EpoxySwiftUIHostingView.swift | 2 ++ 1 file changed, 2 insertions(+) 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()