Update of tracked @AppStorage properties is not working when the View is wrapped in WithPerceptionTracking #69
Unanswered
thomas-sempf
asked this question in
Q&A
Replies: 1 comment
-
This is sadly a SwiftUI bug in which We also recommend filing feedback with Apple if you'd like this bug to be fixed! Since this is a bug with SwiftUI and not the library, I'm going to convert to a discussion. |
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
-
Description
The bug occurs in Views which are using WithPerceptionTracking and have one or more properties defined via @AppStorage. In this case a view update is not triggered when one of the @AppStorage properties changes.
PerceptionBug.zip
Checklist
@Observable
macro or another tool from theObservation
framework, please file it directly with Apple.main
branch of this package.Expected behavior
View updates are still happening when @AppStorage properties changes
Actual behavior
No update is triggered
Steps to reproduce
Perception version information
1.1.6
Destination operating system
iOS 16
Xcode version information
15.3
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions