본문 바로가기 메뉴 바로가기

ZeddiOS

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

ZeddiOS

검색하기 폼
  • 전체 보기 (841)
    • iOS (278)
    • Swift (126)
      • Concurrency (9)
    • SwiftUI (26)
    • Combine (17)
    • watchOS (2)
    • iPadOS (2)
    • Xcode (3)
      • Xcode Cloud (2)
    • Flutter (12)
    • 공부 (205)
    • 피아노 (39)
    • 요리 (2)
    • 시 (25)
    • 일상 (91)
  • 방명록

if let shorthand (1)
[Swift 5.7] if let shorthand

안녕하세요 :) Zedd입니다. Swift 5.7 변경사항 중 하나인 if let shorthand를 보려고 합니다. if let foo = foo { .. } 를 사용하여 기존 optional variable를 "숨기는" optional binding은 굉장히 일반적인 패턴인데요. if let foo = foo 같이 식별자를 두번 써줘야해서 let someLengthyVariableName: Foo? = ... let anotherImportantVariable: Bar? = ... if let someLengthyVariableName = someLengthyVariableName, let anotherImportantVariable = anotherImportantVariable { ... } 이렇..

Swift 2022. 7. 9. 17:04
이전 1 다음
이전 다음
TAG
  • Xcode
  • Git
  • np-complete
  • iOS delegate
  • swift 공부
  • swift tutorial
  • 스위프트 문법
  • SwiftUI
  • swift delegate
  • actor
  • swift array
  • swift sort
  • IOS
  • Swift
  • 제이슨 파싱
  • Accessibility
  • ios 13
  • 회고
  • WidgetKit
  • WWDC
  • UIBezierPath
  • 스위프트
  • fastlane
  • np-hard
  • FLUTTER
  • swift3
  • Combine
  • WKWebView
  • github
  • 피아노
more
글 보관함
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바