Skip to content

Commit

Permalink
Merge pull request #6 from OrynaPanchenko/hotfix-ui-changes-update
Browse files Browse the repository at this point in the history
fixed publishing ui changes on the main thread
  • Loading branch information
gh123man authored Aug 1, 2023
2 parents afb1734 + cdf91d7 commit 0d27521
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Refresher/Refresher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ public struct RefreshableScrollView<Content: View, RefreshView: View>: View {
}
}
.introspectScrollView { scrollView in
uiScrollView = scrollView
DispatchQueue.main.async {
uiScrollView = scrollView
}
}
.onChange(of: globalGeometry.frame(in: .global)) { val in
headerInset = val.minY
Expand Down

0 comments on commit 0d27521

Please sign in to comment.