본문 바로가기

Weekoding

검색하기
Weekoding
프로필사진 Still Coding In After Hours...   iOS / Swift

  • 분류 전체보기 (32)
    • 공부 노트(Swift) (28)
    • 개발 노트 (0)
    • 그 외 (1)
Guestbook
Recent Posts
Tags
  • CALayer
  • property
  • Enterprise
  • cgrect
  • Structure
  • CAGradientLayer
  • Swift
  • UIView
  • CornerRadius
  • property observer
  • SNS로그인
  • 프로퍼티옵저버
  • NSAttributedString
  • AppleLogin
  • SignInWithApple
  • SnapKit
  • ios
  • 모바일개발
  • oauth
  • Assets
  • Inheritance
  • CGColor
  • xcode
  • TextView
  • Lazy
  • SceneDelegate
  • lifecycle
  • Console
  • Label
  • Debugging
more
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Lazy (1)

Weekoding

[Swift] lazy Variable

공부하던 중 lazy 키워드를 발견했다. Bruno Mars의 'The Lazy Song'이 먼저 생각나는 걸 보니 아직 많이 부족한가보다^^ 농담은 그만하고 바로 알아보도록 하자! 📂 ' lazy ' : 게으른, 여유로운 : "A lazy stored property is a property whose initial value is not calculated until the first time it is used" → 처음 호출되기 전 까지는 초기화 값이 계산되지 않는 프로퍼티. -Swift Programming Guide 호출 시에 생성이 되면서 메모리에 올라가고, 이후 같은 변수 사용 시엔 이전에 생성된 프로퍼티를 이용한다. 이름 값 하는 키워드이다! lazy 키워드를 갖는 프로퍼티가 어떤 상황에..

공부 노트(Swift) 2022. 5. 4. 19:38
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바