Skip to content

Strange delay when opening a view #2993

Discussion options

You must be logged in to vote

@Paul-Svetlichny If you support <iOS 17 and are using observation tools, you must install WithPerceptionTracking views for iOS 16 and less to actually update the UI when state changes are observed.

In Debug builds, we emit runtime warnings when we detect access to observable state in a view that is not using WithPerceptionTracking. These runtime warnings are meant to help you catch bugs in your app before releasing it to your users. While we do our best to make these checks speedy, it is still quite an expensive thing to analyze at runtime, and involves demangling Swift symbols in the stack. So these are just trade-offs to back-porting observation and making it easy to catch moments where W…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Paul-Svetlichny
Comment options

@Paul-Svetlichny
Comment options

@Paul-Svetlichny
Comment options

@stephencelis
Comment options

Answer selected by Paul-Svetlichny
@mbrandonw
Comment options

@Paul-Svetlichny
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants