swiftui-notes
swiftui-notes copied to clipboard
map can be used to explicitly extract on a keypath
A detail that I think got missed in my writing - there's a series of methods for explicitly extracting values via a KeyPath using map.
There are variants for accepting 1, 2 and 3 keypaths. (multiple keypaths return as a tuple)