Group Group Group Group Group Group Group Group Group

Question about ignored properties

#1

First of all, great book! Really enjoying it so far.
My question is regarding different types of ignoring properties.

What is the difference between a dynamic property stored in ignoredProperties() and a non-dynamic property? Neither the first, nor the second should be persisted, right?

If so, then what is the point of setting a non-persistent property as dynamic in the first place, considering it is going to be ignored anyway?

Thanks for the help.

#2

Neat question :slight_smile: This is mostly because the @dynamic behavior has changed across swift versions and the same API also serves Objective-C. Ignoring properties via ignoredProperties() is the consistent cross-language behavior; ignoring properties via not making them dynamic is a side-effect of the Swift specifics. If you only use the API in Swift - you can use either :slight_smile:

1 Like
#3

Cool!
Thanks for clearing that up.