diff --git a/Sources/ScrollViewProxy/ScrollViewProxy.swift b/Sources/ScrollViewProxy/ScrollViewProxy.swift index e596e0d..ba69c56 100644 --- a/Sources/ScrollViewProxy/ScrollViewProxy.swift +++ b/Sources/ScrollViewProxy/ScrollViewProxy.swift @@ -156,8 +156,10 @@ public struct ScrollViewReader: View { // https://stackoverflow.com/a/61765994/3019595 } .introspectScrollView { - self.proxy.coordinator.scrollView = $0 - self.proxy.offset = $0.offsetPublisher + if self.proxy.coordinator.scrollView != $0 { + self.proxy.coordinator.scrollView = $0 + self.proxy.offset = $0.offsetPublisher + } } } }