Comment Comment by austinz Swift has "if case let" for that use case. (Admittedly, the syntax is a bit esoteric.) parent austinz 10 years ago