You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will appear to be OK based on sample code, and will work for initial values, but the observer will not be called on future updates unless you add the “dynamic” modifier. Swift should warn the programmer of this case when a non-dynamic keypath is used.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 0e60bc79f1b873cdf0036caba5347770
duplicates:
Issue Description:
Using the keypath-based KVO in Swift 4, you can write something like this:
This will appear to be OK based on sample code, and will work for initial values, but the observer will not be called on future updates unless you add the “dynamic” modifier. Swift should warn the programmer of this case when a non-dynamic keypath is used.
The text was updated successfully, but these errors were encountered: