well, it is not as simple as possible, as you included assumptions out of nowhere. also the identity operator is a code smell in swift — as huge parts of swift dont know about it — as you remarked. you introduce complexity. what you show here is not swift. it is rather java in swift.
Of course I dont suggest you have to go to function level, as I do — simply because it give me the tighter code for my needs — but omitting structs here is not swifty in any style. Structs are and should be the first choice and if one dont show that, it should be explained, why.
It just appears as if the author just has transferred his java code to swift without considerations what is good swift and what not — and that Java's "everything is an (class-)object" is not a motto shared by swift — it is my understanding, even java has loosen that sentiment.