This commit is contained in:
parent
5317b3de65
commit
a72743ac45
|
@ -156,11 +156,13 @@ public struct ScrollViewReader<Content: View>: View {
|
||||||
// https://stackoverflow.com/a/61765994/3019595
|
// https://stackoverflow.com/a/61765994/3019595
|
||||||
}
|
}
|
||||||
.introspectScrollView {
|
.introspectScrollView {
|
||||||
|
if self.proxy.coordinator.scrollView != $0 {
|
||||||
self.proxy.coordinator.scrollView = $0
|
self.proxy.coordinator.scrollView = $0
|
||||||
self.proxy.offset = $0.offsetPublisher
|
self.proxy.offset = $0.offsetPublisher
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: ScrollViewProxy
|
// MARK: ScrollViewProxy
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue