Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Shengqi Zhu committed Aug 15, 2024
1 parent 19bc7df commit c781f04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/EpoxyCore/SwiftUI/EpoxySwiftUIHostingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ public final class EpoxySwiftUIHostingView<RootView: View>: 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()
Expand Down

0 comments on commit c781f04

Please sign in to comment.