$ 0 0 Swift 4.2 added a new easy to use dynamic member lookup attribute to give your classes dot syntax access for custom subscript calls.