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 b3dd08d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/EpoxyCore/SwiftUI/EpoxySwiftUIHostingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ 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 b3dd08d

Please sign in to comment.