iOS double question marks in Swift ??
??
is Nil-Coalescing Operator (a ?? b)
unwraps an optional a
if it contains a value, or returns a default value b
if a
is nil. The expression a
is always of an optional type.
Example:
The shorthand code is
Let's grow together 🌱
Cheers 🍻