ScrollViewReader does not update correctly with @Perceptible on iOS 16 #140
maja0270558
started this conversation in
General
Replies: 1 comment
-
|
Hi @maja0270558, it's mentioned int he docs, but anytime there is an escaping trailing closure in a SwiftUI view (such as ScrollViewReader { proxy in
WithPerceptionTracking {
…
}
}Since this isn't an issue with the library I am going to convert it to a discussion. Please feel free to continue the conversation over there! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When using
@Perceptiblefor state tracking inside a ViewModel, views that rely onScrollViewReaderdo not update correctly on iOS 16.4 .The same code works as expected if switch to using an
ObservableObjectwith@Published.Thank you for your great work on Perception! ❤️
Checklist
@Observablemacro or another tool from theObservationframework, please file it directly with Apple.mainbranch of this package.Expected behavior
No response
Actual behavior
No response
Steps to reproduce
No response
Perception version information
1.6.0
Destination operating system
iOS 16.4
Xcode version information
16.2
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions