Using key paths in switch statements
Jan 05, 2020
One of Swift’s lesser known, but incredibly powerful language features is how the ~= operator lets us implement custom pattern matching variants between different types.
#Tips#key path#Switch