-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime warnings #49
Comments
@arnauddorgans I can't seem to reproduce this on 1.1.3 / |
Ah never mind, I couldn't reproduce it in our unit test suite but I was able to reproduce it in an app. Very strange! Will look into it! |
Any update? Same problem. |
Hi @m430, no update on our end. If someone has time to look into the issue we would happily accept a PR! |
@m430 I used a workaround by using a SwiftUI State @State private var searchText: String
var body: some View {
WithPerceptionTracking {
TextField("", text: $searchText)
.bind($store.searchText, to: $searchText)
}
} |
Description
This code snippet produces 3 runtime warnings on appear about
Perceptible state was accessed but is not being tracked. Track changes to state by wrapping your view in a 'WithPerceptionTracking' view.
Checklist
@Observable
macro or another tool from theObservation
framework, please file it directly with Apple.main
branch of this package.Expected behavior
No runtime warning
Actual behavior
Runtime warning
Steps to reproduce
Full app code
Perception version information
1.1.2
Destination operating system
iOS 14.0
Xcode version information
Xcode 15.3
Swift Compiler version information
The text was updated successfully, but these errors were encountered: