[ Swift ] Grammar
2020. 11. 4. 13:40ㆍSwift
??
Double question mark is a nil-coalescing operator.
In plain terms, it is just a shorthand for saying
!= nil
First it checks if the return value is nil,
if it is indeed nil, then the left value is presented,
and if it is nil then the right value is presented.
'Swift' 카테고리의 다른 글
[ Swift ] Keyboard 제어 (0) | 2020.12.21 |
---|---|
[ Swift ] Table View Cell 에 stack View 를 추가해보자. (0) | 2020.11.19 |
[ Swift ] font 바꾸기 (0) | 2020.11.04 |
[ Swift ] Protocol ? Extension ? (0) | 2020.10.30 |
[ Swift ] 단축키 (0) | 2020.10.27 |