The ternary operator in Swift provides a concise way to write conditional expressions using the format `condition ? valueIfTrue : valueIfFalse`. It's particularly useful for simple property assignments and SwiftUI view modifiers, but can become hard to read with complex conditions. Swift also offers if expressions as an
Table of contents
What is a ternary?When should you use ternaries?Replacing ternaries with if expressionsSort: