![](http://i1.daumcdn.net/thumb/C148x148.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/ble98y/btrmzj4P65u/oNiOjbyeBZnVuB3FtO8Wh0/img.png)
private lazy var dateFormatter: DateFormatter = { let formatter = DateFormatter() formatter.dateFormat = "yyyy-MM-dd" return formatter }() 코드를 보다보면 lazy 라는걸 한번쯤 보셨을거에요. 오늘은 Lazy Property에 대해 알아 보려고해요 ! 단어뜻으로 보면 게으르다는 뜻인데 어떤 뜻인지 같이 알아보겠습니다 :) Lazy Stored Properties (지연 저장 프로퍼티 ) 값이 사용되기 전에는 계산되지 않는 프로퍼티입니다. 불려지기 전에는 가만히 있는 애인가 보네요. 선언 프로퍼티의 선언 앞에 lazy 키워드를 붙이면 됩니다. 아래처럼 말이죠. // lazy var 변수명: 타입 =..
iOS
2021. 11. 30. 09:10
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Swift init
- CS 네트워크
- ios
- swift reduce
- Swift 알고리즘
- Swift final
- Swift joined()
- Swift Error Handling
- swift programmers
- RIBs tutorial
- RTCCameraVideoCapturer
- Swift RIBs
- 2023년 회고
- swift 고차함수
- Class
- swift (programmers)
- iOS error
- swift protocol
- swift property
- Swift inout
- Swift Leetcode
- 원티드 프리온보딩
- removeLast()
- Swift joined
- Swift 프로그래머스
- Swift
- Swift 내림차순
- Swift 프로퍼티
- Swift ModernRIBs
- Combine: Asynchronous Programming with Swift
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함