At a glance it appears Getting KeyPaths to members automatically using Mirror describes how. I haven't tested it, though, to see if it still works with current Swift versions.
At a glance it appears Getting KeyPaths to members automatically using Mirror describes how. I haven't tested it, though, to see if it still works with current Swift versions.