Swift does allow the definition and overload of custom operators, but it only allows certain characters to be considered operators.
Operators are made up of one or more of the following characters: /,
=, -, +, !, *, %, <, >, &, |, ^, ~, and .. That said, the tokens =, ->, //, /*, */, ., and the unary prefix operator & are reserved. These tokens can’t be overloaded, nor can they be used to define custom
operators.
It is therefore illegal to try to overload the period operator, though it can be used as part of another custom operator.