Quantcast
Viewing latest article 18
Browse Latest Browse All 36

Swift optional variable assignment with ??

Old way: [crayon-5a2dca8f3a5eb128770197/] Pretty nifty. I saw this online someplace. The ?? is called a nil coalescing operator. It’s used to provide a default value when unwrapping an optional type. [crayon-5a2dca8f3a5fb680217597/]  

Viewing latest article 18
Browse Latest Browse All 36

Trending Articles