Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from scsinke/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernson authored Jun 3, 2022
2 parents 9ca3736 + ccaa95a commit 45ab109
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/RefreshableScrollView/RefreshableScrollView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ struct ScrollViewControllerRepresentable<Content: View>: UIViewControllerReprese

func updateUIViewController(_ viewController: ScrollViewController<Content>, context: Context) {
viewController.hostingController.rootView = content()
viewController.hostingController.view.setNeedsUpdateConstraints()

if isRefreshing {
viewController.refreshControl.beginRefreshing()
Expand Down

0 comments on commit 45ab109

Please sign in to comment.