Going π with ternary operator.
Swift values clarity over brevity. Itβs 2/3 of the Swift fundamentals.
So stop writing code like this snippet I just found:
let height: CGFloat = hide == true ? 42 : 74
let errorAlpha: CGFloat = hide == true ? 0 : 1