mardi 23 février 2016

why is the value of a child from Mirror.children prepended with the Xcode Project name?

I am printing the reflected properties of a struct instance by looping over the "children" of the Mirror of the struct, and I am seeing something I didn't expect. For the "store1" and "store" constants of the "Bookmark" structure (see screenshot), I see that the reflected values are "MirrorTest.BookmarkStore" for both (on the console log). Now, the prefix "MirrorTest" is the name of my Xcode project. I was expecting the value of to be just "BookmarkStore", not sure why the Xcode project name is being prepended. Any thoughts?

thanks

enter image description here





Aucun commentaire:

Enregistrer un commentaire