The ternary operator is a very handy notation to simply abbreviate if else constructs. And often it’s seen nested - one, two or three times. The compiler has no problems with such code. But we, as human beings, reach the limits.
I wrote a short article about it:
https://woodbytes.me/en/blog/don-t-use-nested-ternary-operators-in-swift