You use where in Swift to filter things, kinda like a conditional . In various places throughout Swift, the “where” clause provides a constraint and a clear indicator of the data or types you want to work with. What’s so special about where – as you’ll soon see – is its flexible syntax.